Index: NbMainExplorer.java =================================================================== RCS file: /cvs/core/src/org/netbeans/core/NbMainExplorer.java,v retrieving revision 1.99 diff -c -r1.99 NbMainExplorer.java *** NbMainExplorer.java 15 May 2002 15:09:51 -0000 1.99 --- NbMainExplorer.java 15 May 2002 17:09:52 -0000 *************** *** 535,552 **** ideSettings = (IDESettings)IDESettings.findObject(IDESettings.class, true); setConfirmDelete(ideSettings.getConfirmDelete ()); - //initializes gui of this component - view = initGui(); - // attach listener to the changes of IDE settings weakIdeL = WeakListener.propertyChange(rcListener(), ideSettings); - view.getAccessibleContext().setAccessibleName(NbBundle.getBundle(NbMainExplorer.class).getString("ACSN_ExplorerBeanTree")); - view.getAccessibleContext().setAccessibleDescription(NbBundle.getBundle(NbMainExplorer.class).getString("ACSD_ExplorerBeanTree")); - // enhancement 9940, add MiniStatusBarListener a status bar's state ideSettings.addPropertyChangeListener (new MiniStatusBarStateListener ()); } /** Initializes gui of this component. Subclasses can override * this method to install their own gui. --- 535,565 ---- ideSettings = (IDESettings)IDESettings.findObject(IDESettings.class, true); setConfirmDelete(ideSettings.getConfirmDelete ()); // attach listener to the changes of IDE settings weakIdeL = WeakListener.propertyChange(rcListener(), ideSettings); // enhancement 9940, add MiniStatusBarListener a status bar's state ideSettings.addPropertyChangeListener (new MiniStatusBarStateListener ()); } + + public java.awt.Dimension getPreferredSize() { + Thread.dumpStack(); + + return super.getPreferredSize (); + } + + protected void componentShowing () { + Thread.dumpStack(); + + super.componentShowing (); + + if (view == null) { + view = initGui (); + + view.getAccessibleContext().setAccessibleName(NbBundle.getBundle(NbMainExplorer.class).getString("ACSN_ExplorerBeanTree")); + view.getAccessibleContext().setAccessibleDescription(NbBundle.getBundle(NbMainExplorer.class).getString("ACSD_ExplorerBeanTree")); + } + } /** Initializes gui of this component. Subclasses can override * this method to install their own gui. *************** *** 603,614 **** } void focusView() { ! view.requestFocus(); } /** Ensures that component is valid before opening */ public void open (Workspace workspace) { performCommand(null); super.open(workspace); } --- 616,633 ---- } void focusView() { ! if (view != null) { ! view.requestFocus(); ! } } /** Ensures that component is valid before opening */ public void open (Workspace workspace) { performCommand(null); + + // with this line everything works ok + // componentShowing (); + super.open(workspace); }