Raizekas

Untitled

Mar 19th, 2021
40
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package gui.formos.frame;
  2.  
  3. import gui.formos.paneles.LoginPanele;
  4. import gui.formos.paneles.MeniuPanele;
  5.  
  6. import javax.swing.*;
  7. import java.awt.*;
  8.  
  9. public class MainFrame
  10. {
  11. private JFrame mainFrame;
  12.  
  13. private LoginPanele loginPanele;
  14. private MeniuPanele meniuPanele;
  15.  
  16.  
  17. public MainFrame()
  18. {
  19. mainFrame = new JFrame();
  20.  
  21. loginPanele = new LoginPanele();
  22. loginPanele.setMainFrame(mainFrame);
  23. loginPanele.nustatytiPanele();
  24.  
  25. meniuPanele = new MeniuPanele();
  26. meniuPanele.nustatytiPanele();
  27.  
  28. loginPanele.setMeniuPanele(meniuPanele);
  29.  
  30. mainFrame.add(loginPanele);
  31. mainFrame.setSize(new Dimension(500, 500));
  32. mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  33. mainFrame.setLocationRelativeTo(null);
  34. mainFrame.setTitle("Logistikos imones programa");
  35. mainFrame.setVisible(true);
  36. }
  37.  
  38.  
  39. public static void main(String[] args)
  40. {
  41. new MainFrame();
  42. }
  43. }
  44.  
RAW Paste Data