public static void gogui() you do not realy need this method as you can set L&F before in the main method. Your code would work if you called yay.GUIpart() . Bellow is simpler solution. Remove public static void gogui() and replace main method with code bellow
public static void main(String[] args)
{
JFrame.setDefaultLookAndFeelDecorated(true);
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
GUIpart gui = new GUIpart();
gui.GUIpart();
}
});
}
peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902