Search in sources :

Example 81 with JSplitPane

use of javax.swing.JSplitPane in project ACS by ACS-Community.

the class LoggingClient method getStatusAreaHrPane.

/**
	 * Returns the JSplitPane1 property value.
	 * @return javax.swing.JSplitPane
	 */
private JSplitPane getStatusAreaHrPane() {
    if (statusAreaHrSplitP == null) {
        try {
            statusAreaHrSplitP = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
            statusAreaHrSplitP.setName("JSplitPane1");
            statusAreaHrSplitP.setLastDividerLocation(350);
            statusAreaHrSplitP.setDividerLocation(350);
            statusAreaHrSplitP.add(getStatusAreaPanel(), "bottom");
            statusAreaHrSplitP.add(getJPanel2(), "top");
        } catch (Throwable ivjExc) {
            handleException(ivjExc);
        }
    }
    return statusAreaHrSplitP;
}
Also used : JSplitPane(javax.swing.JSplitPane)

Example 82 with JSplitPane

use of javax.swing.JSplitPane in project ACS by ACS-Community.

the class ErrorTreeCellRenderer method getJSplitPane2.

/**
	 * This method initializes jSplitPane2	
	 * 	
	 * @return javax.swing.JSplitPane	
	 */
private JSplitPane getJSplitPane2() {
    if (jSplitPane2 == null) {
        jSplitPane2 = new JSplitPane();
        jSplitPane2.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
        jSplitPane2.setDividerLocation(180);
        jSplitPane2.setOneTouchExpandable(false);
        jSplitPane2.setBottomComponent(getJPanel4());
        jSplitPane2.setTopComponent(getJScrollPane3());
    }
    return jSplitPane2;
}
Also used : JSplitPane(javax.swing.JSplitPane)

Example 83 with JSplitPane

use of javax.swing.JSplitPane in project ACS by ACS-Community.

the class CDBBrowser method init.

/**
	 * @see java.applet.Applet#init()
	 */
public void init() {
    // try to get context of the CDB server
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.cosylab.cdb.jdal.JNDIContextFactory");
    if (strIOR == null)
        env.put(Context.PROVIDER_URL, "corbaloc::" + ACSPorts.getIP() + ":" + ACSPorts.getCDBPort() + "/CDB");
    else
        env.put(Context.PROVIDER_URL, strIOR);
    Context context = null;
    try {
        context = new InitialContext(env);
    } catch (NamingException e) {
        e.printStackTrace();
    }
    if (context == null) {
        return;
    }
    cdbTree = new JTree(new CDBTreeNode("root", null, context));
    cdbTree.addTreeSelectionListener(this);
    jTextArea = new JTextArea();
    jSplitPane = new JSplitPane();
    jSplitPane.setOrientation(JSplitPane.HORIZONTAL_SPLIT);
    jSplitPane.setLeftComponent(new JScrollPane(cdbTree));
    jSplitPane.setRightComponent(new JScrollPane(jTextArea));
    // add it to container
    Container cp = getContentPane();
    cp.setLayout(new BorderLayout());
    cp.add(jSplitPane, java.awt.BorderLayout.CENTER);
    validate();
}
Also used : InitialContext(javax.naming.InitialContext) Context(javax.naming.Context) JScrollPane(javax.swing.JScrollPane) JTree(javax.swing.JTree) Container(java.awt.Container) JTextArea(javax.swing.JTextArea) BorderLayout(java.awt.BorderLayout) Hashtable(java.util.Hashtable) NamingException(javax.naming.NamingException) JSplitPane(javax.swing.JSplitPane) InitialContext(javax.naming.InitialContext)

Example 84 with JSplitPane

use of javax.swing.JSplitPane in project adempiere by adempiere.

the class VCRPDetail method jbInit.

private void jbInit() {
    dateFrom = new VDate("DateFrom", true, false, true, DisplayType.Date, "DateFrom");
    dateTo = new VDate("DateTo", true, false, true, DisplayType.Date, "DateTo");
    CPanel northPanel = new CPanel();
    northPanel.setLayout(new java.awt.GridBagLayout());
    northPanel.add(new CLabel(Msg.translate(Env.getCtx(), "S_Resource_ID")), new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
    northPanel.add(resource, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0));
    northPanel.add(new CLabel(Msg.translate(Env.getCtx(), "DateFrom")), new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
    northPanel.add(dateFrom, new GridBagConstraints(3, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0));
    northPanel.add(new CLabel(Msg.translate(Env.getCtx(), "DateTo")), new GridBagConstraints(4, 1, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
    northPanel.add(dateTo, new GridBagConstraints(5, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0));
    ConfirmPanel confirmPanel = new ConfirmPanel(true);
    confirmPanel.addActionListener(new ActionHandler());
    contentPanel = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
    contentPanel.setPreferredSize(new Dimension(800, 600));
    m_form.getWindow().getContentPane().add(northPanel, BorderLayout.NORTH);
    m_form.getWindow().getContentPane().add(contentPanel, BorderLayout.CENTER);
    m_form.getWindow().getContentPane().add(confirmPanel, BorderLayout.SOUTH);
}
Also used : CLabel(org.compiere.swing.CLabel) GridBagConstraints(java.awt.GridBagConstraints) Insets(java.awt.Insets) ConfirmPanel(org.compiere.apps.ConfirmPanel) VDate(org.compiere.grid.ed.VDate) CPanel(org.compiere.swing.CPanel) Dimension(java.awt.Dimension) JSplitPane(javax.swing.JSplitPane)

Example 85 with JSplitPane

use of javax.swing.JSplitPane in project voltdb by VoltDB.

the class DatabaseManagerSwing method initGUI.

private void initGUI() {
    JPanel pCommand = new JPanel();
    pResult = new JPanel();
    nsSplitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, pCommand, pResult);
    // Added: (weconsultants@users)
    nsSplitPane.setOneTouchExpandable(true);
    pCommand.setLayout(new BorderLayout());
    pResult.setLayout(new BorderLayout());
    Font fFont = new Font("Dialog", Font.PLAIN, 12);
    txtCommand = new JTextArea(5, 40);
    txtCommand.setMargin(new Insets(5, 5, 5, 5));
    txtCommand.addKeyListener(this);
    txtCommandScroll = new JScrollPane(txtCommand);
    txtResult = new JTextArea(20, 40);
    txtResult.setMargin(new Insets(5, 5, 5, 5));
    txtResultScroll = new JScrollPane(txtResult);
    txtCommand.setFont(fFont);
    txtResult.setFont(new Font("Courier", Font.PLAIN, 12));
    pCommand.add(txtCommandScroll, BorderLayout.CENTER);
    gResult = new GridSwing();
    TableSorter sorter = new TableSorter(gResult);
    tableModel = sorter;
    gResultTable = new JTable(sorter);
    sorter.setTableHeader(gResultTable.getTableHeader());
    gScrollPane = new JScrollPane(gResultTable);
    gResultTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    gResult.setJTable(gResultTable);
    //getContentPane().setLayout(new BorderLayout());
    pResult.add(gScrollPane, BorderLayout.CENTER);
    // Set up the tree
    rootNode = new DefaultMutableTreeNode("Connection");
    treeModel = new DefaultTreeModel(rootNode);
    tTree = new JTree(treeModel);
    tScrollPane = new JScrollPane(tTree);
    tScrollPane.setPreferredSize(new Dimension(120, 400));
    tScrollPane.setMinimumSize(new Dimension(70, 100));
    txtCommandScroll.setPreferredSize(new Dimension(360, 100));
    txtCommandScroll.setMinimumSize(new Dimension(180, 100));
    gScrollPane.setPreferredSize(new Dimension(460, 300));
    ewSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, tScrollPane, nsSplitPane);
    // Added: (weconsultants@users)
    ewSplitPane.setOneTouchExpandable(true);
    fMain.getContentPane().add(ewSplitPane, BorderLayout.CENTER);
    // Added: (weconsultants@users)
    jStatusLine = new JLabel();
    iReadyStatus = new JButton(new ImageIcon(CommonSwing.getIcon("StatusReady")));
    iReadyStatus.setSelectedIcon(new ImageIcon(CommonSwing.getIcon("StatusRunning")));
    pStatus = new JPanel();
    pStatus.setLayout(new BorderLayout());
    pStatus.add(iReadyStatus, BorderLayout.WEST);
    pStatus.add(jStatusLine, BorderLayout.CENTER);
    fMain.getContentPane().add(pStatus, "South");
    doLayout();
    if (fMain instanceof java.awt.Window) {
        ((java.awt.Window) fMain).pack();
    } else {
        ((Container) fMain).validate();
    }
}
Also used : JScrollPane(javax.swing.JScrollPane) JPanel(javax.swing.JPanel) ImageIcon(javax.swing.ImageIcon) JTextArea(javax.swing.JTextArea) Insets(java.awt.Insets) DefaultMutableTreeNode(javax.swing.tree.DefaultMutableTreeNode) JButton(javax.swing.JButton) JLabel(javax.swing.JLabel) DefaultTreeModel(javax.swing.tree.DefaultTreeModel) Dimension(java.awt.Dimension) Font(java.awt.Font) JTree(javax.swing.JTree) Container(java.awt.Container) RootPaneContainer(javax.swing.RootPaneContainer) BorderLayout(java.awt.BorderLayout) JTable(javax.swing.JTable) JSplitPane(javax.swing.JSplitPane)

Aggregations

JSplitPane (javax.swing.JSplitPane)109 BorderLayout (java.awt.BorderLayout)69 JPanel (javax.swing.JPanel)64 JScrollPane (javax.swing.JScrollPane)54 Dimension (java.awt.Dimension)40 JLabel (javax.swing.JLabel)31 JButton (javax.swing.JButton)17 JTextArea (javax.swing.JTextArea)16 FlowLayout (java.awt.FlowLayout)15 Insets (java.awt.Insets)15 GridBagLayout (java.awt.GridBagLayout)14 GridBagConstraints (java.awt.GridBagConstraints)13 JTable (javax.swing.JTable)13 Container (java.awt.Container)10 GridLayout (java.awt.GridLayout)10 ArrayList (java.util.ArrayList)10 BoxLayout (javax.swing.BoxLayout)10 JComponent (javax.swing.JComponent)10 JTabbedPane (javax.swing.JTabbedPane)10 EmptyBorder (javax.swing.border.EmptyBorder)10