User Tools

Site Tools


swing:labels

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
swing:labels [2016/05/25 07:36]
gthanos
swing:labels [2017/04/04 15:55]
gthanos
Line 18: Line 18:
      
   public static void main(String[] args) {   public static void main(String[] args) {
-    LabelGreeting lg = new LabelGreeting(); +    javax.swing.SwingUtilities.invokeLater(new Runnable() { 
-    lg.setVisible(true);+      public void run() { 
 +       LabelGreeting lg = new LabelGreeting(); 
 +       lg.setVisible(true); 
 +      } 
 +    });
   }   }
 } }
swing/labels.txt · Last modified: 2018/03/27 19:37 (external edit)