|Broken GUI Editor after adding field to frame. [message #617335]
||Wed, 18 March 2009 22:21
Registered: July 2009
I used VE to create a new JFrame. I then added a custom private member
field (just after serialVersionUID), and added a parameter to the
constructor to initialize it (initialized between super() and initialize()
call in constructor).
When I did that, the frame in the editor shrunk to 0 size. Figuring I
broke something I undid my changes, restoring the file to it's state
before I added the custom field.
Now, the frame is blank in the visual editor; none of my components are on
it. The title is set to "(no title set for window in visual editor)". The
tool tip that displays when I hover over the frame is "Round Tripping is
stopped". The only item in the JavaBeans view is labeled "this"; there are
no other components in the tree. However, the code for all the components
is still in the file, and when I run the application the actual form with
all the components displays correctly.
The editor seems to no longer be aware of what's on the frame. Closing and
reopening the editor did not fix the problem. Restarting Eclipse did not
fix the problem. I can now no longer edit the GUI in visual editor, and am
dead in the water and have to stop working early today. How do I fix this?
Also, in the future, how do I add custom fields to the frame class?
Powered by FUDForum
. Page generated in 0.12204 seconds