NetBeans Gui Builder by Existing Code

I use Eclipse from time to time to maintain some Java code for my employer and crack some OSS locally for my needs.

Until I updated my Eclipse distribution with version 3.5, I was recently hit by the WindowBuilder function when I upgraded to 3.7. WindowBuilder has an interesting ability to parse existing code and display the corresponding graphical interface. If it is not automatic, I can try to force the rendering using the right-click / open with / WindowBuilder editor .

Recently, I also decided to test the NetBeans IDE (the latest version available at that time: 7.0.1), which I found visually appealing, and I think it should be less bloated than my Eclipse + bunch of plugins (NSIS + mylyn + integration CDT + ...) for development java stricto sensu only.

My problem is that for some code (in my test example, it is in a jomic project). The NetBeans GUI Builder does not render the (fairly simple) Jframe class, and I did not find if / how to say it try. The same class can be rendered by WindowBuilder if I open with / WindowBuilder editor .

Is there a trick I can use to render GUI code? Thanks for helping NetBeans newbie :)

+4
source share
1 answer

GUI Builder only works with code generated by GUI Builder.

The NetBeans form editor cannot restore a missing .form file for GUI classes or generate a .form file for GUI classes, but not originally created in NetBeans .

However, there are some external tools trying to solve this problem, such as FormGenerator . Check out contrib.netbeans.org for the latest version. A source

+8
source

Source: https://habr.com/ru/post/1369136/


All Articles