I have a problem with Netbeans. It has a very nice GUI builder for java swing, but the generated code is not changeable. To solve this issue I tried to first make the GUI in a panel let's call it Asset
class which has a JTabbedPane jTabbedPane1;
.
Then I extends a new class from it, so i have all the GUI in the asset class and then i can change it, as i wish.
public class AssetHandler extends Asset{
public AssetHandler(){
System.out.println("Here is the asset");
JFrame frame = new JFrame("FrameDemo");
frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
frame.getContentPane().add(jTabbedPane1);
frame.pack();
frame.setVisible(true);
}
}
But it complains in the with:
jTabbedPane1 has private access in Asset
Actually, the error does not make sense for me, because i inherited it.
So, how can i use manipulate the generated code ?