public void run() { sp.setDividerLocation(height); // sp.setDividerLocation(sp.getMaximumDividerLocation() - height); } });
public void run() { sp.setDividerLocation(height); // sp.setDividerLocation(sp.getMaximumDividerLocation() - height); } });
/** * Advices the the panel to restore its properties from the argument */ public IFuture<Void> setProperties(Properties props) { cbshowchars.setSelected(props.getBooleanProperty("showchars")); ((JTabbedPane)inner).setSelectedIndex(props.getIntProperty("selected_tab")); if(props.getProperty("sph")!=null) sph.setDividerLocation(props.getDoubleProperty("sph")); if(props.getProperty("spv")!=null) spv.setDividerLocation(props.getDoubleProperty("spv")); return IFuture.DONE; }
/** * Advices the the panel to restore its properties from the argument */ public IFuture<Void> setProperties(Properties props) { cbshowchars.setSelected(props.getBooleanProperty("showchars")); ((JTabbedPane)inner).setSelectedIndex(props.getIntProperty("selected_tab")); if(props.getProperty("sph")!=null) sph.setDividerLocation(props.getDoubleProperty("sph")); if(props.getProperty("spv")!=null) spv.setDividerLocation(props.getDoubleProperty("spv")); return IFuture.DONE; }
/** * Load the properties. */ public IFuture setProperties(Properties props) { double dl = props.getDoubleProperty("leftsplit_location"); if(dl>0) { lsplit.setDividerLocation(dl); lsplit.setResizeWeight(dl); } dl = props.getDoubleProperty("mainsplit_location"); if(dl>0) { csplit.setDividerLocation(dl); csplit.setResizeWeight(dl); } // SGUI.setDividerLocation(lsplit, props.getIntProperty("leftsplit_location")); // SGUI.setDividerLocation(csplit, props.getIntProperty("mainsplit_location")); return IFuture.DONE; }
/** * Load the properties. */ public IFuture setProperties(Properties props) { double dl = props.getDoubleProperty("leftsplit_location"); if(dl!=0) { lsplit.setDividerLocation(dl); lsplit.setResizeWeight(dl); } dl = props.getDoubleProperty("mainsplit_location"); if(dl!=0) { csplit.setDividerLocation(dl); csplit.setResizeWeight(dl); } // SGUI.setDividerLocation(lsplit, props.getIntProperty("leftsplit_location")); // SGUI.setDividerLocation(csplit, props.getIntProperty("mainsplit_location")); return IFuture.DONE; }
if(lp!=0) listpan.setDividerLocation(lp); horsplit.setDividerLocation(hs);
if(lp!=0) listpan.setDividerLocation(lp); horsplit.setDividerLocation(hs);
/** * Create a new control center window. */ public PlatformControlCenterPanel(PlatformControlCenter controlcenter) { super(new BorderLayout()); this.controlcenter = controlcenter; this.consoleheights = new HashMap(); clayout = new CardLayout(); content = new JPanel(clayout); this.console = new ConsolePanel(controlcenter.getPlatformAccess(), controlcenter.getJCCAccess()); console.setConsoleEnabled(false); this.sp = new JSplitPanel(JSplitPane.VERTICAL_SPLIT); sp.setOneTouchExpandable(true); sp.setDividerLocation(0.0); // sp.setDividerLocation(200); content.setMinimumSize(new Dimension(0,0)); console.setMinimumSize(new Dimension(0,0)); sp.add(content); sp.add(console); this.add("Center", sp); sp.setResizeWeight(1.0); }
/** * Create a new control center window. */ public PlatformControlCenterPanel(PlatformControlCenter controlcenter) { super(new BorderLayout()); this.controlcenter = controlcenter; this.consoleheights = new HashMap(); clayout = new CardLayout(); content = new JPanel(clayout); this.console = new ConsolePanel(controlcenter.getPlatformAccess(), controlcenter.getJCCAccess()); console.setConsoleEnabled(false); this.sp = new JSplitPanel(JSplitPane.VERTICAL_SPLIT); sp.setOneTouchExpandable(true); sp.setDividerLocation(0.0); // sp.setDividerLocation(200); content.setMinimumSize(new Dimension(0,0)); console.setMinimumSize(new Dimension(0,0)); sp.add(content); sp.add(console); this.add("Center", sp); sp.setResizeWeight(1.0); }
up.setDividerLocation(0.5); tmp.setDividerLocation(0.7); tmp.add(up); tmp.add(down); tmp.setDividerLocation(200); // Hack?! tmp.setOneTouchExpandable(true); up.setDividerLocation(0.5); up.setOneTouchExpandable(true); tmp.setDividerLocation(1.0); tmp.add(up); tmp.add(down);
splitpanel.setDividerLocation(0); splitpanel.setDividerLocation(lastdivloc); closed = false;
splitpanel.setDividerLocation(0); splitpanel.setDividerLocation(lastdivloc); closed = false;
sp.setDividerLocation(0.5); final VirtualNamesPanel vnp1 = new VirtualNamesPanel(ea, jccaccess, secser, cmshandler, false); final VirtualNamesPanel vnp2 = new VirtualNamesPanel(ea, jccaccess, secser, cmshandler, true);
sp.setDividerLocation(newloc); sp.setLastDividerLocation(currentloc);
sp.setDividerLocation(newloc); sp.setLastDividerLocation(currentloc);
lsplit.setDividerLocation(0.7); csplit.setDividerLocation(0.3);
lsplit.setDividerLocation(0.7); csplit.setDividerLocation(0.3);
mainpanel.setOneTouchExpandable(true); mainpanel.setResizeWeight(0.3); mainpanel.setDividerLocation(0.3);
mainpanel.setOneTouchExpandable(true); mainpanel.setResizeWeight(0.3); mainpanel.setDividerLocation(0.3);