I'm making a graphical interface to a program that I have. It asks for several data to the user, he / she fills them, and with that data uses a function that registers the data in a file. I have no problem to see how the JPanel is from the Designer:
I have already done the actionlistener and everything, but when from the main I call the JPanel, nothing comes out. My JPanel class is:
public class Menu extends JPanel implements ActionListener
What you use:
public Menu() {
And there is everything. But when from the main I do:
Menu algo = new Menu();
algo.setVisible(true);
Compile without problems, start, but nothing comes out at all ... and in the console it says "application finished" ...
Ideas?