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;
}
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;
}
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();
}
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);
}
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();
}
}
Aggregations