Advertisement
makispaiktis

App (Swing)

Feb 19th, 2019 (edited)
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.48 KB | None | 0 0
  1. import javax.swing.JFrame;              // by pressing Control+Shift+O
  2. import javax.swing.SwingUtilities;
  3.  
  4. public class App {
  5.    
  6.     public static void main(String[] args) {
  7.        
  8.         SwingUtilities.invokeLater(new Runnable() {                         // The programme runs better with this function
  9.  
  10.             @Override
  11.             public void run() {
  12.                 new MainFrame();
  13.            
  14.            
  15.             }           // End of function run
  16.            
  17.            
  18.         });             // End of function invokeLater
  19.                
  20.        
  21.        
  22.     }                   // End of main
  23.  
  24. }                       // End of class App
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement