Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Broken GUI Editor after adding field to frame.
Broken GUI Editor after adding field to frame. [message #617335] Wed, 18 March 2009 22:21
JC is currently offline JCFriend
Messages: 10
Registered: July 2009
Junior Member
Hi,

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?

Thanks,
MB
Previous Topic:Visual Editor for Eclipse 3.4
Next Topic:Editing Layouts
Goto Forum:
  


Current Time: Tue Apr 16 04:11:28 GMT 2024

Powered by FUDForum. Page generated in 0.61853 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top