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.
I took what I found in "org.eclipse.wb.tests.designer.swing.CustomizeTest" and modified it a bit:
( 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.
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.