Created
April 15, 2013 17:20
-
-
Save sivabudh/5389726 to your computer and use it in GitHub Desktop.
The code that should work
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.*; | |
import javax.swing.*; | |
public class CustomizeWindow extends JFrame{ | |
/** | |
* | |
*/ | |
private static final long serialVersionUID = 1L; | |
public static void main(String[]args){ | |
JFrame mainFrame = new JFrame(); | |
Customize c = new Customize(); | |
c.setGUI(); // <-------------- The code forgot to call this line. | |
JPanel panel = new JPanel(); | |
panel.add(c); | |
mainFrame.getContentPane().add(panel); | |
// mainFrame.setPreferredSize(new Dimension(1000,1000)); | |
mainFrame.setSize(new Dimension(1000,1000)); | |
mainFrame.setVisible(true); | |
mainFrame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment