Skip to main content



      Home
Home » Eclipse Projects » WindowBuilder » Customizer window size
Customizer window size [message #856026] Wed, 25 April 2012 05:50 Go to next message
Eclipse UserFriend
My customizer should always pop up with a certain minimum size.
setPreferredSize() and setBounds() both don't work. Is there any other way?
Whenever someome opens the customizer for the first time, they get a relatively small window which confuses people because they do not expect that they have to resize the window to see every option.
Re: Customizer window size [message #856216 is a reply to message #856026] Wed, 25 April 2012 09:28 Go to previous messageGo to next message
Eclipse UserFriend
No idea.
Post example and I will check.
Re: Customizer window size [message #858754 is a reply to message #856216] Fri, 27 April 2012 05:27 Go to previous messageGo to next message
Eclipse UserFriend
I took what I found in "org.eclipse.wb.tests.designer.swing.CustomizeTest" and modified it a bit:

pastebin.com/r9HZqCwN
pastebin.com/y4sR4dtm
pastebin.com/141YpwZa
pastebin.com/ng6fYGtv
( sorry for the inconvenient links, the message board gave me an error saying "You cannot use links until you have posted more than 25 messages." )

I've noticed that, when I open MyButtonTestPanel in WindowBuilder for the first time, a blank panel shows up. No Button.
After running MyButtonTestPanel, closing it and refreshing the design view, the button shows up in WindowBuilder. After cleaning the project and refreshing the designer, the panel is blank again.
( edit: But that might be because I've disabled automatic build )

If the designer is opened with rightclick->customize, a small panel shows up. It should be at least big enough to show all labels.

[Updated on: Fri, 27 April 2012 05:33] by Moderator

Re: Customizer window size [message #860873 is a reply to message #856026] Sat, 28 April 2012 04:46 Go to previous messageGo to next message
Eclipse UserFriend
hi, i'm also new to windowbuilder but i believe that if you resize the customizer, it should remember that size even if you close the ide. again, not an expert
Re: Customizer window size [message #860874 is a reply to message #856026] Sat, 28 April 2012 04:48 Go to previous messageGo to next message
Eclipse UserFriend
sorry, im new Smile

[Updated on: Sat, 28 April 2012 05:07] by Moderator

Re: Customizer window size [message #861522 is a reply to message #860874] Sat, 28 April 2012 12:07 Go to previous messageGo to next message
Eclipse UserFriend
Yes, when you resize or move customizer dialog, it will remember new size and location, and next time will use the same.

I see that initial size is set to 450x300.
I don't remember already why this was done so (may be this was done not by me), because in general org.eclipse.wb.internal.swing.customize.AwtComponentDialog looks as it was supposed to use customizer getPreferredSize(). So,when if I remove this forced size, then I see of dialog is same as required by customizer.

Fixed in trunk.
Re: Customizer window size [message #865253 is a reply to message #861522] Mon, 30 April 2012 06:03 Go to previous message
Eclipse UserFriend
Quote:
hi, i'm also new to windowbuilder but i believe that if you resize the customizer, it should remember that size even if you close the ide.

Yes, but the issue was that people did not know they have to resize the customizer to see all options.

Quote:
Fixed in trunk.

Thanks!
Previous Topic:VB refugee seeks equivalent to application.doevents()
Next Topic:ExpressionConverter null - assertionException
Goto Forum:
  


Current Time: Wed Jul 23 14:01:44 EDT 2025

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

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

Back to the top