Professional Documents
Culture Documents
مستند نصي جديد
مستند نصي جديد
JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class Product extends JFrame {
private string name, barcode ;
private int barcode
}(( public void set_name(String name
this.name=name;
this.quantity=quantity;
{
button.setToolTipText("find");
panel.add(button);
JButton button = new JButton("Button");
button.setBounds(30, 60, 60,30);
button.setToolTipText("update");
panel.add(button);