Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String name = JOptionPane.showInputDialog(this, "Въведете име на нов потребител", "Нов потребител", 1);
- String phone = JOptionPane.showInputDialog(this, "Въведете телефонен номер", "Нов потребител", 1);
- JLabel nameLabel = new JLabel();
- jPanel1.add(nameLabel);
- nameLabel.setLocation(50, 50 + 30*labelSession);
- nameLabel.setSize(200, 20);
- nameLabel.setText(name);
- JLabel phoneLabel = new JLabel();
- jPanel1.add(phoneLabel);
- phoneLabel.setLocation(250, 50 + 30*labelSession);
- phoneLabel.setSize(200, 20);
- phoneLabel.setText(phone);
- labelSession++;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement