This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 191545 - Make it possible to set the initial window size in the layer.xml
Summary: Make it possible to set the initial window size in the layer.xml
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 7.0
Hardware: PC Other
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-02 02:55 UTC by simpatico
Modified: 2013-09-17 12:50 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description simpatico 2010-11-02 02:55:49 UTC
Using NB platform is all about not plumbing. But the current way to resize a window, as described here[1], has made the simple setSize(int width,
                    int height) used in JFrames in all there is there:

http://wiki.netbeans.org/DevFaqInitialMainWindowSize#How_do_I_adjust_the_initial_size.2Fposition_of_the_main_window.3F

Beside that, after 2 hours of trying I'm not seeing the window being resized, although I followed instructions, I believe.
Comment 1 Jesse Glick 2010-11-12 21:49:48 UTC
*** Bug 191869 has been marked as a duplicate of this bug. ***
Comment 2 Jesse Glick 2010-11-16 20:13:58 UTC
*** Bug 191869 has been marked as a duplicate of this bug. ***
Comment 3 Stanislav Aubrecht 2013-09-17 12:50:35 UTC
.setSize() is also available, e.g.


public class Installer extends ModuleInstall {

    @Override
    public void restored() {
        WindowManager.getDefault().invokeWhenUIReady( new Runnable() {

            @Override
            public void run() {
                WindowManager.getDefault().getMainWindow().setSize( 100, 100);
            }
        });
    }
}