Suggestion for GridBagLayout insets

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

Suggestion for GridBagLayout insets

Postby mcmillan » Thu Jul 21, 2005 2:15 pm

It is really nice to have the (blue) handles to move the top/left/bottom/right insets on a component in a GridBagLayout rather than typing the values into the constraints fields.

However, we have standard UI spacings we need to achieve. For example, 5 pixels between a control and the left/right edges of a dialog. Dragging the handles is nice, but you cannot tell until you let go what the inset value is going to be. It is impossible to tell the difference between 3, 4, 5, or 6 pixles from an edge. Only by checking the constraints value after dragging can you be sure you got "5" instead of "4" or "6".

My suggestion is that a tooltip window appear when you start dragging a handle that shows what the value will be if you let go (e.g. "left: 5"). As you drag this would continuously update. Likewise, the tooltips that appear when you hover over a handle should show the current value of that setting so it can be checked without opening the constraints and without starting a drag.

Just a thought...
mcmillan
 

Re: Suggestion for GridBagLayout insets

Postby Eric Clayberg » Thu Jul 21, 2005 2:27 pm

mcmillan wrote:My suggestion is that a tooltip window appear when you start dragging a handle that shows what the value will be if you let go (e.g. "left: 5"). As you drag this would continuously update. Likewise, the tooltips that appear when you hover over a handle should show the current value of that setting so it can be checked without opening the constraints and without starting a drag.

I think that is a great idea. We'll add it to our list.

Now that I think about it, having insets and GBL widget sizing snap to the defined grid might be a good idea as well.
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: Suggestion for GridBagLayout insets

Postby Eric Clayberg » Tue Jul 26, 2005 12:57 pm

Eric Clayberg wrote:
mcmillan wrote:My suggestion is that a tooltip window appear when you start dragging a handle that shows what the value will be if you let go (e.g. "left: 5"). As you drag this would continuously update. Likewise, the tooltips that appear when you hover over a handle should show the current value of that setting so it can be checked without opening the constraints and without starting a drag.

I think that is a great idea. We'll add it to our list.

Now that I think about it, having insets and GBL widget sizing snap to the defined grid might be a good idea as well.

This is now available in the latest v4.1.1 build.
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: No registered users and 1 guest