Alright, so first off you will need to have a working JFrame, I suggest using XHarveyX's.
Now that you have done XHarveyX's tutorials;
Step 1:
Search for:
Code:
public static void main(String args[])
{
new Gui(args);
}
Replace with:
Code:
public static void main(String args[])
{
new Gui(args);
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
}
});
}
Step 2:
Now you must add this static void;
Code:
private static void createAndShowGUI() {
//Create and set up the window.
JFrame frame = new JFrame("PopUp");
//frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JLabel emptyLabel = new JLabel("");
emptyLabel.setPreferredSize(new Dimension(175, 100));
frame.getContentPane().add(emptyLabel, BorderLayout.CENTER);
//Display the window.
frame.pack();
frame.setVisible(true);
}
Now, exit save, and compile.
Wah lah, I will post a tutorial later on how to fix up the pop up.
Post any errors.