Java swing doesn't show changes to source

Posted by out_sider on Stack Overflow See other posts from Stack Overflow or by out_sider
Published on 2010-05-06T22:39:45Z Indexed on 2010/05/06 22:48 UTC
Read the original article Hit count: 162

Filed under:
|

I'm using Java Swing graphical editor with netbeans to make my project...but using it brings some limitations like I can't add to a jpanel an image,using java swing options. So i'll need to code it, implementing a new jPanel.

My problem is that the code generated by the java swing graphical editor can't be edited so instead of adding the new JPanel code in the initComponents() section I'm doing it after this function is called in the constructor of my main JPanel.

But any code I add is not recognized by the "Designer" which means that after making my coded objects I can't use them in the "Designer" and everything must be coded, which is a pain considering how much easier is previewing and moving elements in the "Designer" tool.

How can I code what I want but steel appear in the "DEsigner"?

Thx in advance

© Stack Overflow or respective owner

Related posts about java

Related posts about swing