4

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

While I did not upgraded my Eclipse distro since the 3.5 release, I was recently amazed by the WindowBuilder feature when I upgraded to 3.7. WindowBuilder has the interesting possibility to parse some existing code and render the corresponding GUI. When it is not automagical, I can try to force the rendering by a right-click / open with / WindowBuilder editor.

I also recently decided to test the NetBeans IDE (latest release available at this time : 7.0.1) that I found visually appealing and that I guess it should be less bloated than my Eclipse + a bunch of plugins (NSIS integration + mylyn + CDT + ...) for just some java development stricto sensu.

My problem is that for some code (in my test case, it is on the jomic project) NetBeans GUI Builder makes no rendering of a (quite simple) Jframe derived class, and I did not found if / how to tell it to try. The same class can be rendered by WindowBuilder if I open with / WindowBuilder editor.

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

2
  • +1 for latin ... and I'm interested in the question too. By the way, which version of Netbeans? Commented Aug 26, 2011 at 10:57
  • @GregS Thanks :) It is the latest at this moment : 7.0.1 in its Java SE bundle and no additional plugin (yet). I have edited my question to give the release version. Commented Aug 26, 2011 at 11:12

1 Answer 1

7

The GUI Builder only works on code that the GUI Builder made.

NetBeans form editor is not able to regenerate a missing .form file for GUI classes, or to generate a .form file for GUI classes not originally created in NetBeans.

However, there are some external tools trying to address this problem, e.g. FormGenerator. Check contrib.netbeans.org for newest version. Source

Sign up to request clarification or add additional context in comments.

1 Comment

Well, oh, too bad. I did not noticed that the Gui Builder was relying on additional files to keep the layout of the gui components. So Eclipse WindowBuilder gets the point for now on existing UI maintaining. Thanks for the faq pointer. I have now some doc to crunch to try the FormGenerator. :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.