/** * 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); }
splitpanel.add(new JScrollPane(middle)); splitpanel.add(new JScrollPane(details)); splitpanel.setOneTouchExpandable(true); splitpanel.setDividerLocation(0.3);
splitpanel.add(new JScrollPane(middle)); splitpanel.add(new JScrollPane(details)); splitpanel.setOneTouchExpandable(true); splitpanel.setDividerLocation(0.3);
beldetails.add(new JScrollPane(new JTable(factmodel)), BorderLayout.CENTER); JSplitPanel spbel = new JSplitPanel(JSplitPanel.VERTICAL_SPLIT, new JScrollPane(belieftable), beldetails); spbel.setOneTouchExpandable(true); spbel.setDividerLocation(0.75); beliefpanel.add(spbel, BorderLayout.CENTER); sp1.setOneTouchExpandable(true); sp1.setDividerLocation(4.0/7.0); JSplitPanel sp2 = new JSplitPanel(JSplitPane.VERTICAL_SPLIT, sp1, planpanel); sp2.setOneTouchExpandable(true); sp2.setDividerLocation(0.7); this.setLayout(new BorderLayout());
beldetails.add(new JScrollPane(new JTable(factmodel)), BorderLayout.CENTER); JSplitPanel spbel = new JSplitPanel(JSplitPanel.VERTICAL_SPLIT, new JScrollPane(belieftable), beldetails); spbel.setOneTouchExpandable(true); spbel.setDividerLocation(0.75); beliefpanel.add(spbel, BorderLayout.CENTER); sp1.setOneTouchExpandable(true); sp1.setDividerLocation(4.0/7.0); JSplitPanel sp2 = new JSplitPanel(JSplitPane.VERTICAL_SPLIT, sp1, planpanel); sp2.setOneTouchExpandable(true); sp2.setDividerLocation(0.7); this.setLayout(new BorderLayout());
tmp.add(down); tmp.setDividerLocation(200); // Hack?! tmp.setOneTouchExpandable(true); up.setOneTouchExpandable(true); tmp.add(down); tmp.setOneTouchExpandable(true);
beldetails.add(new JScrollPane(new JTable(factmodel)), BorderLayout.CENTER); JSplitPanel spbel = new JSplitPanel(JSplitPanel.VERTICAL_SPLIT, new JScrollPane(belieftable), beldetails); spbel.setOneTouchExpandable(true); spbel.setDividerLocation(0.75); beliefpanel.add(spbel, BorderLayout.CENTER); sp1.setOneTouchExpandable(true); sp1.setDividerLocation(4.0/7.0); JSplitPanel sp2 = new JSplitPanel(JSplitPane.VERTICAL_SPLIT, sp1, planpanel); sp2.setOneTouchExpandable(true); sp2.setDividerLocation(0.7); this.setLayout(new BorderLayout()); sp3.setOneTouchExpandable(true);
sph.setOneTouchExpandable(true); sph.setDividerLocation(0.5); sph.add(pdetails); spv.setOneTouchExpandable(true); spv.setDividerLocation(0.5); spv.add(slocal);
sph.setOneTouchExpandable(true); sph.setDividerLocation(0.5); sph.add(pdetails); spv.setOneTouchExpandable(true); spv.setDividerLocation(0.5); spv.add(slocal);
listpan.setOneTouchExpandable(true); listpan.setResizeWeight(1); horsplit.setOneTouchExpandable(true); horsplit.setDividerLocation(0.3);
listpan.setOneTouchExpandable(true); listpan.setResizeWeight(1); horsplit.setOneTouchExpandable(true); horsplit.setDividerLocation(0.3);
tmp2.add(procp); tmp2.setDividerLocation(0.8); tmp2.setOneTouchExpandable(true); tmp2.setResizeWeight(1); sp.setOneTouchExpandable(true); sp.setResizeWeight(1);
sp.setOneTouchExpandable(true); sp.setDividerLocation(0.5); final VirtualNamesPanel vnp1 = new VirtualNamesPanel(ea, jccaccess, secser, cmshandler, false);
csplit.setOneTouchExpandable(true); lsplit.setOneTouchExpandable(true); lsplit.setResizeWeight(0.7);
csplit.setOneTouchExpandable(true); lsplit.setOneTouchExpandable(true); lsplit.setResizeWeight(0.7);
mainpanel.setOneTouchExpandable(true); mainpanel.setResizeWeight(0.3); mainpanel.setDividerLocation(0.3);
mainpanel.setOneTouchExpandable(true); mainpanel.setResizeWeight(0.3); mainpanel.setDividerLocation(0.3);