Advertisement
lemansky

Untitled

Oct 29th, 2021
1,101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.70 KB | None | 0 0
  1. String name = JOptionPane.showInputDialog(this, "Въведете име на нов потребител", "Нов потребител", 1);
  2.        String phone = JOptionPane.showInputDialog(this, "Въведете телефонен номер", "Нов потребител", 1);
  3.        JLabel nameLabel = new JLabel();
  4.        jPanel1.add(nameLabel);
  5.        nameLabel.setLocation(50, 50 + 30*labelSession);
  6.        nameLabel.setSize(200, 20);
  7.        nameLabel.setText(name);
  8.        JLabel phoneLabel = new JLabel();
  9.        jPanel1.add(phoneLabel);
  10.        phoneLabel.setLocation(250, 50 + 30*labelSession);
  11.        phoneLabel.setSize(200, 20);
  12.        phoneLabel.setText(phone);
  13.        labelSession++;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement