org.jdesktop.swingx.JXTitledSeparator Java Examples
The following examples show how to use
org.jdesktop.swingx.JXTitledSeparator.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ConfEGTaskEditPanel.java From BART with MIT License | 4 votes |
/** * @return the title */ public JXTitledSeparator getTitle() { return title; }
Example #2
Source File: ConfVioGenQEditPanel.java From BART with MIT License | 4 votes |
/** * @return the title */ public JXTitledSeparator getTitle() { return title; }
Example #3
Source File: SelectChartColumnsWizardPanel.java From nextreports-designer with Apache License 2.0 | 4 votes |
private void init() { setLayout(new BorderLayout()); for (int i=0; i<no; i++) { more[i] = new JComboBox(); } JPanel panel = new JPanel(new GridBagLayout()); panel.add(new JLabel(I18NSupport.getString("chart.xcolumn")), new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 0, 0)); panel.add(xComboBox, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); panel.add(new JLabel(I18NSupport.getString("chart.ycolumn")), new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 0), 0, 0)); panel.add(yComboBox, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); JXCollapsiblePane cp = new JXCollapsiblePane(); cp.setCollapsed(true); // get the built-in toggle action Action toggleAction = cp.getActionMap().get(JXCollapsiblePane.TOGGLE_ACTION); // use the collapse/expand icons from the JTree UI toggleAction.putValue(JXCollapsiblePane.COLLAPSE_ICON, UIManager.getIcon("Tree.expandedIcon")); toggleAction.putValue(JXCollapsiblePane.EXPAND_ICON, UIManager.getIcon("Tree.collapsedIcon")); JButton toggle = new JButton(toggleAction); toggle.setText(""); toggle.setBorder(BorderFactory.createEmptyBorder()); cp.setLayout(new GridBagLayout()); for (int i=0; i<no; i++) { cp.add(more[i], new GridBagConstraints(0, i, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 35, 5, 5), 0, 0)); } cp.add(new JXTitledSeparator(""), new GridBagConstraints(0, no, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(10, 0, 5, 140), 0, 0)); JPanel headerPanel = new JPanel(); headerPanel.setLayout(new BoxLayout(headerPanel, BoxLayout.X_AXIS)); headerPanel.add(toggle); headerPanel.add(Box.createHorizontalStrut(5)); headerPanel.add(new JXTitledSeparator(I18NSupport.getString("chart.ycolumn.more"))); panel.add(headerPanel, new GridBagConstraints(0, 2, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 140), 0, 0)); panel.add(cp, new GridBagConstraints(0, 3, 2, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 0), 0, 0)); panel.add(new JLabel(""), new GridBagConstraints(3, 9, 1, 3, 1.0, 1.0, GridBagConstraints.WEST, GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0)); add(panel, BorderLayout.CENTER); }