JFrame f = toolbar.getJFrame(); Dimension gs = f.getGlassPane().getSize(); Dimension ts = f.getSize();
frame = toolbar.getJFrame(); Dimension gs = frame.getGlassPane().getSize(); Dimension ts = frame.getSize();
	private void setupInitialMenuBar(JToolBar tb) {	    if (invisible != null) { // MacUtils.isMac()		selected = invisible.getJFrame();		selected.setJMenuBar(Actions.createMenuBar(JSLDesktop.this)); // XXX		selected.setSize(0,0);		selected.setUndecorated(true);		//selected.setLocation(0,0x7FFFFFFF);		selected.pack();		selected.setVisible(true);		//selected.addWindowListener(this);	    }	    //toolbar.addJSLFrameListener(this);	    toolbar.setJMenuBar(Actions.createMenuBar(JSLDesktop.this)); // XXX	    tb.setFloatable(false);	    toolbar.getContentPane().add(tb);	    toolbar.pack();	    JFrame f = toolbar.getJFrame();	    Dimension gs = f.getGlassPane().getSize();	    Dimension ts = f.getSize();	    xdecoration = (int)(ts.getWidth() - gs.getWidth());	    ydecoration = (int)(ts.getHeight() - gs.getHeight());	    toolbar.setLocation(xdecoration/2, ydecoration);	    add(toolbar);	    toolbar.setVisible(true);	}