Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » Design and Test/Preview smaller than when running application
Design and Test/Preview smaller than when running application [message #730633] Wed, 28 September 2011 18:39 Go to next message
mathew.rowley is currently offline mathew.rowleyFriend
Messages: 7
Registered: April 2010
Junior Member
I have been noticing that when designing GUIs with WindowBuilder, the Design pane and when previewing the window, the text is not the same size as when actually running the application. Please refer to the attached screenshot as an example:

Left dialog is preview
Middle is in the WindowBuilder Design pane
Right is the actual application running

notice the 'Create AVD" is cut off on the button..
Re: Design and Test/Preview smaller than when running application [message #730647 is a reply to message #730633] Wed, 28 September 2011 19:07 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
I don't know why text is bigger on run.
This may be some feature of OSX, when you can change default font for application.
But in any case, I don't recommend you design your GUI in the way which depends on exact font size.
Even if at runtime you see same font as under design, user may be has bigger font and will have same problem.

So, you real layouts, like GridLayout.
Don't use absolute layouts.


Konstantin Scheglov,
Google, Inc.
Re: Design and Test/Preview smaller than when running application [message #730650 is a reply to message #730647] Wed, 28 September 2011 19:09 Go to previous messageGo to next message
mathew.rowley is currently offline mathew.rowleyFriend
Messages: 7
Registered: April 2010
Junior Member
The man issue with this is buttons and text boxes. Layout configurations typically dont make a difference in this case (ie: you dont want to have an "ok" button expand with your window)...
Re: Design and Test/Preview smaller than when running application [message #730652 is a reply to message #730650] Wed, 28 September 2011 19:12 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
In absolute layout you fix size of the button.

GridLayout by default will make button wide enough to show full text.
You don't have to expand button with window to achieve this.


Konstantin Scheglov,
Google, Inc.
Re: Design and Test/Preview smaller than when running application [message #730657 is a reply to message #730652] Wed, 28 September 2011 19:35 Go to previous messageGo to next message
mathew.rowley is currently offline mathew.rowleyFriend
Messages: 7
Registered: April 2010
Junior Member
ok, tried that, now there becomes an issue with a window that is not resizable... how do you determine its width/height when all of its contents depend upon it? it looks very small within the design window, and cut off during run.
Re: Design and Test/Preview smaller than when running application [message #730730 is a reply to message #730657] Thu, 29 September 2011 02:35 Go to previous message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 886
Registered: July 2009
Location: Boston, MA
Senior Member
I would suggest providing example code at this point.

As Konstantin stated, you should never use absolute layout for a UI like the one in your screen shot. SWT GridLayout would be the best choice for something like that. It is also the primary layout used in all of Eclipse itself.
Previous Topic:EMFEditDataBinding
Next Topic:WindowBuilder newbie wonders how to wake it up
Goto Forum:
  


Current Time: Thu Dec 18 00:47:44 GMT 2014

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

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