List of usage examples for javax.swing JSplitPane JSplitPane
@ConstructorProperties({ "orientation" }) public JSplitPane(int newOrientation)
JSplitPane
configured with the specified orientation. From source file:net.sourceforge.msscodefactory.cfgcash.v2_0.CFGCashSwing.CFGCashSwingSecGroupMemberViewEditJPanel.java
public CFGCashSwingSecGroupMemberViewEditJPanel(ICFGCashSwingSchema argSchema, ICFGCashSecGroupMemberObj argFocus) { super();/*w ww . j av a2 s . co m*/ final String S_ProcName = "construct-schema-focus"; if (argSchema == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1, "argSchema"); } // argFocus is optional; focus may be set later during execution as // conditions of the runtime change. swingSchema = argSchema; setSwingFocus(argFocus); setSize(1024, 480); splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT); attrJPanel = argSchema.getSecGroupMemberFactory().newAttrJPanel(argFocus); attrScrollPane = new CFHSlaveJScrollPane(attrJPanel); eltJTabbedPane = argSchema.getSecGroupMemberFactory().newEltJTabbedPane(argFocus); splitPane.setTopComponent(attrScrollPane); splitPane.setBottomComponent(eltJTabbedPane); add(splitPane); splitPane.setBounds(0, 0, 1024, 455); splitPane.setDividerLocation(200); if (getSwingFocus() != null) { setPanelMode(CFJPanel.PanelMode.View); } doLayout(); }
From source file:net.sourceforge.msscodefactory.cfensyntax.v2_1.CFEnSyntaxSwing.CFEnSyntaxSwingISOCountryCurrencyViewEditJPanel.java
public CFEnSyntaxSwingISOCountryCurrencyViewEditJPanel(ICFEnSyntaxSwingSchema argSchema, ICFEnSyntaxISOCountryCurrencyObj argFocus) { super();//from w w w . java2 s . c o m final String S_ProcName = "construct-schema-focus"; if (argSchema == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1, "argSchema"); } // argFocus is optional; focus may be set later during execution as // conditions of the runtime change. swingSchema = argSchema; setSwingFocus(argFocus); setSize(1024, 480); splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT); attrJPanel = argSchema.getISOCountryCurrencyFactory().newAttrJPanel(argFocus); attrScrollPane = new CFHSlaveJScrollPane(attrJPanel); eltJTabbedPane = argSchema.getISOCountryCurrencyFactory().newEltJTabbedPane(argFocus); splitPane.setTopComponent(attrScrollPane); splitPane.setBottomComponent(eltJTabbedPane); add(splitPane); splitPane.setBounds(0, 0, 1024, 455); splitPane.setDividerLocation(200); if (getSwingFocus() != null) { setPanelMode(CFJPanel.PanelMode.View); } doLayout(); }
From source file:net.sourceforge.msscodefactory.cfensyntax.v2_1.CFEnSyntaxSwing.CFEnSyntaxSwingISOCountryLanguageViewEditJPanel.java
public CFEnSyntaxSwingISOCountryLanguageViewEditJPanel(ICFEnSyntaxSwingSchema argSchema, ICFEnSyntaxISOCountryLanguageObj argFocus) { super();/* ww w .j a va2 s .c o m*/ final String S_ProcName = "construct-schema-focus"; if (argSchema == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1, "argSchema"); } // argFocus is optional; focus may be set later during execution as // conditions of the runtime change. swingSchema = argSchema; setSwingFocus(argFocus); setSize(1024, 480); splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT); attrJPanel = argSchema.getISOCountryLanguageFactory().newAttrJPanel(argFocus); attrScrollPane = new CFHSlaveJScrollPane(attrJPanel); eltJTabbedPane = argSchema.getISOCountryLanguageFactory().newEltJTabbedPane(argFocus); splitPane.setTopComponent(attrScrollPane); splitPane.setBottomComponent(eltJTabbedPane); add(splitPane); splitPane.setBounds(0, 0, 1024, 455); splitPane.setDividerLocation(200); if (getSwingFocus() != null) { setPanelMode(CFJPanel.PanelMode.View); } doLayout(); }
From source file:net.sourceforge.msscodefactory.cfgcash.v2_0.CFGCashSwing.CFGCashSwingSecGroupIncludeViewEditJPanel.java
public CFGCashSwingSecGroupIncludeViewEditJPanel(ICFGCashSwingSchema argSchema, ICFGCashSecGroupIncludeObj argFocus) { super();/*from w w w.j ava 2 s.c om*/ final String S_ProcName = "construct-schema-focus"; if (argSchema == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1, "argSchema"); } // argFocus is optional; focus may be set later during execution as // conditions of the runtime change. swingSchema = argSchema; setSwingFocus(argFocus); setSize(1024, 480); splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT); attrJPanel = argSchema.getSecGroupIncludeFactory().newAttrJPanel(argFocus); attrScrollPane = new CFHSlaveJScrollPane(attrJPanel); eltJTabbedPane = argSchema.getSecGroupIncludeFactory().newEltJTabbedPane(argFocus); splitPane.setTopComponent(attrScrollPane); splitPane.setBottomComponent(eltJTabbedPane); add(splitPane); splitPane.setBounds(0, 0, 1024, 455); splitPane.setDividerLocation(200); if (getSwingFocus() != null) { setPanelMode(CFJPanel.PanelMode.View); } doLayout(); }
From source file:net.sourceforge.msscodefactory.cfgcash.v2_0.CFGCashSwing.CFGCashSwingTSecGroupMemberViewEditJPanel.java
public CFGCashSwingTSecGroupMemberViewEditJPanel(ICFGCashSwingSchema argSchema, ICFGCashTSecGroupMemberObj argFocus) { super();//ww w . j ava2s . c o m final String S_ProcName = "construct-schema-focus"; if (argSchema == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1, "argSchema"); } // argFocus is optional; focus may be set later during execution as // conditions of the runtime change. swingSchema = argSchema; setSwingFocus(argFocus); setSize(1024, 480); splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT); attrJPanel = argSchema.getTSecGroupMemberFactory().newAttrJPanel(argFocus); attrScrollPane = new CFHSlaveJScrollPane(attrJPanel); eltJTabbedPane = argSchema.getTSecGroupMemberFactory().newEltJTabbedPane(argFocus); splitPane.setTopComponent(attrScrollPane); splitPane.setBottomComponent(eltJTabbedPane); add(splitPane); splitPane.setBounds(0, 0, 1024, 455); splitPane.setDividerLocation(200); if (getSwingFocus() != null) { setPanelMode(CFJPanel.PanelMode.View); } doLayout(); }
From source file:net.sourceforge.msscodefactory.cffreeswitch.v2_0.CFFswSwing.CFFswSwingFSSFConferenceProfileViewEditJPanel.java
public CFFswSwingFSSFConferenceProfileViewEditJPanel(ICFFswSwingSchema argSchema, ICFFswFSSFConferenceProfileObj argFocus) { super();//ww w . ja v a 2 s . c o m final String S_ProcName = "construct-schema-focus"; if (argSchema == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1, "argSchema"); } // argFocus is optional; focus may be set later during execution as // conditions of the runtime change. swingSchema = argSchema; setSwingFocus(argFocus); setSize(1024, 480); splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT); attrJPanel = argSchema.getFSSFConferenceProfileFactory().newAttrJPanel(argFocus); attrScrollPane = new CFHSlaveJScrollPane(attrJPanel); eltJTabbedPane = argSchema.getFSSFConferenceProfileFactory().newEltJTabbedPane(argFocus); splitPane.setTopComponent(attrScrollPane); splitPane.setBottomComponent(eltJTabbedPane); add(splitPane); splitPane.setBounds(0, 0, 1024, 455); splitPane.setDividerLocation(200); if (getSwingFocus() != null) { setPanelMode(CFJPanel.PanelMode.View); } doLayout(); }
From source file:net.sourceforge.msscodefactory.cfgcash.v2_0.CFGCashSwing.CFGCashSwingISOCountryCurrencyViewEditJPanel.java
public CFGCashSwingISOCountryCurrencyViewEditJPanel(ICFGCashSwingSchema argSchema, ICFGCashISOCountryCurrencyObj argFocus) { super();// w w w. j ava2 s .co m final String S_ProcName = "construct-schema-focus"; if (argSchema == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1, "argSchema"); } // argFocus is optional; focus may be set later during execution as // conditions of the runtime change. swingSchema = argSchema; setSwingFocus(argFocus); setSize(1024, 480); splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT); attrJPanel = argSchema.getISOCountryCurrencyFactory().newAttrJPanel(argFocus); attrScrollPane = new CFHSlaveJScrollPane(attrJPanel); eltJTabbedPane = argSchema.getISOCountryCurrencyFactory().newEltJTabbedPane(argFocus); splitPane.setTopComponent(attrScrollPane); splitPane.setBottomComponent(eltJTabbedPane); add(splitPane); splitPane.setBounds(0, 0, 1024, 455); splitPane.setDividerLocation(200); if (getSwingFocus() != null) { setPanelMode(CFJPanel.PanelMode.View); } doLayout(); }
From source file:net.sourceforge.msscodefactory.cfgcash.v2_0.CFGCashSwing.CFGCashSwingISOCountryLanguageViewEditJPanel.java
public CFGCashSwingISOCountryLanguageViewEditJPanel(ICFGCashSwingSchema argSchema, ICFGCashISOCountryLanguageObj argFocus) { super();//from w w w . j a v a 2s. c om final String S_ProcName = "construct-schema-focus"; if (argSchema == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1, "argSchema"); } // argFocus is optional; focus may be set later during execution as // conditions of the runtime change. swingSchema = argSchema; setSwingFocus(argFocus); setSize(1024, 480); splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT); attrJPanel = argSchema.getISOCountryLanguageFactory().newAttrJPanel(argFocus); attrScrollPane = new CFHSlaveJScrollPane(attrJPanel); eltJTabbedPane = argSchema.getISOCountryLanguageFactory().newEltJTabbedPane(argFocus); splitPane.setTopComponent(attrScrollPane); splitPane.setBottomComponent(eltJTabbedPane); add(splitPane); splitPane.setBounds(0, 0, 1024, 455); splitPane.setDividerLocation(200); if (getSwingFocus() != null) { setPanelMode(CFJPanel.PanelMode.View); } doLayout(); }
From source file:com.k42b3.sacmis.Sacmis.java
public Sacmis(String path, String file, int exitCode, boolean writerStdIn) throws Exception { this.path = path; this.file = file; this.exitCode = exitCode; this.writerStdIn = writerStdIn; this.setTitle("sacmis (version: " + ver + ")"); this.setLocation(100, 100); this.setSize(600, 500); this.setMinimumSize(this.getSize()); // arguments/*from ww w .ja va2 s . c om*/ JPanel panelArgs = new JPanel(); panelArgs.setLayout(new BorderLayout()); panelArgs.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4)); this.args = new Args(); this.args.setText(file); panelArgs.add(this.args, BorderLayout.CENTER); this.add(panelArgs, BorderLayout.NORTH); // main panel JSplitPane sp = new JSplitPane(JSplitPane.VERTICAL_SPLIT); this.in = new In(); JScrollPane scrIn = new JScrollPane(this.in); scrIn.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4)); scrIn.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrIn.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED); sp.add(scrIn); this.out = new Out(); JScrollPane scrOut = new JScrollPane(this.out); scrOut.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4)); scrOut.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); scrOut.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED); sp.add(scrOut); this.add(sp, BorderLayout.CENTER); // toolbar this.toolbar = new Toolbar(); this.toolbar.getRun().addActionListener(new runHandler()); this.toolbar.getReset().addActionListener(new resetHandler()); this.toolbar.getAbout().addActionListener(new aboutHandler()); this.toolbar.getExit().addActionListener(new exitHandler()); this.getContentPane().add(this.toolbar, BorderLayout.SOUTH); this.setVisible(true); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.loadFile(); }
From source file:events.ListSelectionDemo.java
public ListSelectionDemo() { super(new BorderLayout()); String[] listData = { "one", "two", "three", "four", "five", "six", "seven" }; String[] columnNames = { "French", "Spanish", "Italian" }; list = new JList(listData); listSelectionModel = list.getSelectionModel(); listSelectionModel.addListSelectionListener(new SharedListSelectionHandler()); JScrollPane listPane = new JScrollPane(list); JPanel controlPane = new JPanel(); String[] modes = { "SINGLE_SELECTION", "SINGLE_INTERVAL_SELECTION", "MULTIPLE_INTERVAL_SELECTION" }; final JComboBox comboBox = new JComboBox(modes); comboBox.setSelectedIndex(2);//from www. j a v a 2 s .c om comboBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { String newMode = (String) comboBox.getSelectedItem(); if (newMode.equals("SINGLE_SELECTION")) { listSelectionModel.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); } else if (newMode.equals("SINGLE_INTERVAL_SELECTION")) { listSelectionModel.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION); } else { listSelectionModel.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); } output.append("----------" + "Mode: " + newMode + "----------" + newline); } }); controlPane.add(new JLabel("Selection mode:")); controlPane.add(comboBox); //Build output area. output = new JTextArea(1, 10); output.setEditable(false); JScrollPane outputPane = new JScrollPane(output, ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED); //Do the layout. JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT); add(splitPane, BorderLayout.CENTER); JPanel topHalf = new JPanel(); topHalf.setLayout(new BoxLayout(topHalf, BoxLayout.LINE_AXIS)); JPanel listContainer = new JPanel(new GridLayout(1, 1)); listContainer.setBorder(BorderFactory.createTitledBorder("List")); listContainer.add(listPane); topHalf.setBorder(BorderFactory.createEmptyBorder(5, 5, 0, 5)); topHalf.add(listContainer); //topHalf.add(tableContainer); topHalf.setMinimumSize(new Dimension(100, 50)); topHalf.setPreferredSize(new Dimension(100, 110)); splitPane.add(topHalf); JPanel bottomHalf = new JPanel(new BorderLayout()); bottomHalf.add(controlPane, BorderLayout.PAGE_START); bottomHalf.add(outputPane, BorderLayout.CENTER); //XXX: next line needed if bottomHalf is a scroll pane: //bottomHalf.setMinimumSize(new Dimension(400, 50)); bottomHalf.setPreferredSize(new Dimension(450, 135)); splitPane.add(bottomHalf); }