Guest User

Untitled

a guest
Jul 20th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. import javax.swing.*;
  2.  
  3. public class RobotRouteApp
  4. {
  5. /**
  6. * @param args
  7. */
  8. public static void main(String[] args)
  9. {
  10. try
  11. {
  12. // Set the look and feel.
  13. UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
  14. }
  15. catch (Exception e) {}
  16.  
  17. // Create the GUI.
  18. javax.swing.SwingUtilities.invokeLater(new Runnable() {
  19. public void run() {
  20. createGUI();
  21. }
  22. });
  23. }
  24.  
  25. /**
  26. * Create the user interface.
  27. */
  28. private static void createGUI()
  29. {
  30. RobotRouteFrame frmMain = new RobotRouteFrame("Robot Routeing");
  31.  
  32. // Create and display components.
  33. frmMain.pack();
  34. frmMain.setExtendedState(frmMain.getExtendedState() | JFrame.MAXIMIZED_BOTH);
  35. frmMain.setVisible(true);
  36. }
  37. }
Add Comment
Please, Sign In to add comment