Netbeans: JPanel in designer mode with code behind.

I wanted to add a JPanel to my palette so I could easily include it into a JFrame, in designer mode that is. This was the constructor of my JPanel: /** Creates new form SetupPanel */ public SetupPanel() { super(); this.initComponents(); this.jTextFieldDataDirectory.setText(Main.getProperties().getProperty(Settings.DATADIRECTORY)); this.jTextFieldOpenSSLLocation.setText(Main.getProperties().getProperty(Settings.OPENSSLLOCATION)); } This gave me a nice error when I added it to […]