The designer is generating the code below:
When I check the size of MainWindow, using getInitialSize(), it indicates, 380 and 300.
when I test within the designer, the window appears the correct size (attachment 1). But when I run the application, it’s much larger (attachment 2).
/**
* Return the initial size of the window.
*/
@Override
protected Point getInitialSize() {
return new Point(380, 300);
}
Attachments:
You must be
logged in to view attached files.