Choose Panel problems

Swing Designer allows you to quickly create the frames, panels, dialogs, applets and other UI elements that comprise Java Swing applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Choose Panel problems

Postby Ray » Thu Oct 28, 2004 9:15 pm

Hi,

I create my JPanels and insert into a JFrame using the Choose Panel option.
First problem isthat sometimes the list comes empty and after I restart Eclipse it comes back if I'm lucky. (Same thing happens with the choose bean)

The second problem I'm having is that if I make changes on the Panels and insert them again to the Frame, it remembers the old version and does not refresh my changes until I run the JFrame. and com back to designer view.

I hope somebody has some answers. Because I already spent too much time.

Thanks
Ray
 

another 'choose panel' or 'choose bean' problem a small one

Postby Bronek » Thu Oct 28, 2004 10:39 pm

And - if you double click the class you managed to see - the form disapears (it should do so) but no class is selected (although the designer 'thinks' another way - the part of a panel where I want to put it is highlighted, put the mouse arrow looks like a road sign and clicking does nothing). It works fine if you click the 'OK' button. So - button good, double click - bad ;). The version is 2.1.1., build 2004.10.27
Bronek
 

Re: another 'choose panel' or 'choose bean' problem a small

Postby Eric Clayberg » Fri Oct 29, 2004 11:47 am

Bronek wrote:And - if you double click the class you managed to see - the form disapears (it should do so) but no class is selected (although the designer 'thinks' another way - the part of a panel where I want to put it is highlighted, put the mouse arrow looks like a road sign and clicking does nothing). It works fine if you click the 'OK' button. So - button good, double click - bad ;). The version is 2.1.1., build 2004.10.27

I could not reproduce this. I could select a custom panel by either double-clicking or by selecting it and clicking on the OK button.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Choose Panel problems

Postby Eric Clayberg » Fri Oct 29, 2004 12:01 pm

Ray wrote:I create my JPanels and insert into a JFrame using the Choose Panel option. First problem is that sometimes the list comes empty and after I restart Eclipse it comes back if I'm lucky. (Same thing happens with the choose bean)

Are any exceptions recorded to your Eclipse ".log" file?

Ray wrote:The second problem I'm having is that if I make changes on the Panels and insert them again to the Frame, it remembers the old version and does not refresh my changes until I run the JFrame. and com back to designer view.

I am guessing that the Eclipe classloader is caching the class. Simply making changes to the class does not cause it to be reloaded (although maybe it should). Running the class does cause Eclipse to reload it.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Choose Panel problems

Postby Ray » Sun Oct 31, 2004 12:59 am

Ray wrote:The second problem I'm having is that if I make changes on the Panels and insert them again to the Frame, it remembers the old version and does not refresh my changes until I run the JFrame. and com back to designer view.

I am guessing that the Eclipe classloader is caching the class. Simply making changes to the class does not cause it to be reloaded (although maybe it should). Running the class does cause Eclipse to reload it.

What should I do? Right now, I removing the panels that have changes and readding again.
Ray
 

Postby fredatwork » Mon Nov 01, 2004 7:23 am

Ray,

I experienced exactly the same problem when I started using the Designer.

The problem is due to your Eclipse memory settings. These settings are set by the command line arguments you are using to start Eclipse.

When the list was empty, I did not set any startup arguments for the JVM of Eclipse. Eclipse was running the 2 MB of memory only.

Then, on the adevice of David, I changed these settings with the following command line arguments :
eclipse.exe -vmargs -Xms128M -Xmx256M

The values of the -Xms and -Xmx arguments depend on your memory available on your workstation. Check java help for a full understanding of theses arguments.

Once these arguments were set, I never experienced an "empty" bean list anymore.

Fred
Fred
fredatwork
 
Posts: 13
Joined: Mon Sep 20, 2004 1:59 pm
Location: France

Re: Choose Panel problems

Postby Eric Clayberg » Mon Nov 01, 2004 11:37 am

Ray wrote:What should I do? Right now, I removing the panels that have changes and readding again.

The latest Swing Designer v2.1.1 build will now refresh the design view, if you edit any of the embedded panels.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to Swing Designer

Who is online

Users browsing this forum: Google [Bot] and 1 guest