Skip to content

Instantly share code, notes, and snippets.

@sivabudh
Created April 15, 2013 17:20
Show Gist options
  • Save sivabudh/5389726 to your computer and use it in GitHub Desktop.
Save sivabudh/5389726 to your computer and use it in GitHub Desktop.
The code that should work
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