Raizekas

Untitled

Mar 19th, 2021
33
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package gui.formos.paneles;
  2.  
  3. import javax.swing.*;
  4. import java.awt.*;
  5.  
  6. public class MeniuPanele extends JPanel
  7. {
  8. private JButton pridetiVartotojaButton;
  9. private JButton tempButton2;
  10. private JButton tempButton3;
  11. private JButton tempButton4;
  12.  
  13.  
  14. public MeniuPanele()
  15. {
  16. pridetiVartotojaButton = new JButton();
  17. tempButton2 = new JButton();
  18. tempButton3 = new JButton();
  19. tempButton4 = new JButton();
  20. }
  21.  
  22.  
  23. public void nustatytiPanele()
  24. {
  25. pridetiVartotojaButton.setText("Prideti vartotoja");
  26. tempButton2.setText("antrasm ygtukas");
  27. tempButton3.setText("trecias mygtukas");
  28. tempButton4.setText("ketvirtas mygtukas");
  29.  
  30. this.setLayout(new GridLayout(4, 1, 10, 10));
  31.  
  32. this.add(pridetiVartotojaButton);
  33. this.add(tempButton2);
  34. this.add(tempButton3);
  35. this.add(tempButton4);
  36.  
  37. }
  38. }
  39.  
RAW Paste Data