Create separate files for each JPanel
I'm new to NetBeans and trying to create a nice GUI with GUIBuilder Matisse.
One of the first things I want to do is to create separate files for each JPanel so that the code is easier to read. How can I do that?
What I can do is to design all panels in individual files and then add them together to a frame with a hand made java file with the base Jframe, but I rather use NetBeans Matisse and create the Jframe and then add my jpanels from there own java files.
I know that I can do this by creating a library jar and adding it the to the Beans palatte but thatâ€™s more work for every change a make.
Panel1.java <- includes all code for panel1;
Panel2.java <- includes all code for panel1;
Jframe.java <- is the main function and jframe that adds both Panel1 and Panel2.
Where in NetBeans do I put the code to create and add Panel1 and 2 to the Jframe?
Tried to use Custom Creation Code and so on you I canâ€™t see the panels.
Any suggestions or insight would be appreciated.