use of org.jdesktop.swingx.JXTitledPanel in project jgnash by ccavanaugh.
the class BudgetPeriodPanel method buildHeader.
private void buildHeader(final JTableHeader header) {
periodHeader = new JXTitledPanel(model.getPeriodDescription(), header);
periodHeader.setBorder(ShadowBorder.getCompondShadowBorder());
}
use of org.jdesktop.swingx.JXTitledPanel in project jgnash by ccavanaugh.
the class AccountRowHeaderPanel method getTableHeader.
JPanel getTableHeader() {
JTableHeader header = table.getTableHeader();
header.setReorderingAllowed(false);
header.setResizingAllowed(false);
JPanel panel = new JXTitledPanel(" ", header);
panel.setBorder(ShadowBorder.getCompondShadowBorder());
return panel;
}
use of org.jdesktop.swingx.JXTitledPanel in project jgnash by ccavanaugh.
the class AccountRowFooterPanel method buildHeader.
private static JComponent buildHeader(final JTableHeader tableHeader) {
final JXTitledPanel panelHeader = new JXTitledPanel(ResourceUtils.getString("Title.Summary"), tableHeader);
panelHeader.setBorder(ShadowBorder.getCompondShadowBorder());
return panelHeader;
}
use of org.jdesktop.swingx.JXTitledPanel in project jgnash by ccavanaugh.
the class ReconcileDialog method buildTablePanel.
private static JPanel buildTablePanel(final String title, final JLabel label, final JTable table) {
JPanel p = new JPanel(new BorderLayout());
JPanel footer = new JPanel(new FlowLayout(FlowLayout.RIGHT));
footer.setBackground(SystemColor.inactiveCaptionBorder);
footer.add(label);
JScrollPane pane = new JScrollPane(table);
pane.setBorder(new EmptyBorder(0, 0, 0, 0));
pane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
JXTitledPanel panel = new JXTitledPanel(title, pane);
p.add(panel, BorderLayout.CENTER);
p.add(footer, BorderLayout.SOUTH);
return p;
}
use of org.jdesktop.swingx.JXTitledPanel in project jgnash by ccavanaugh.
the class MainViewPanel method addView.
void addView(final Container component, final String description, final String toolTip) {
Objects.requireNonNull(description);
Objects.requireNonNull(component);
JXTitledPanel p = new JXTitledPanel(toolTip, component);
component.setName(description);
p.setName(description);
JButton button = new Button(component, new VerticalTextIcon(description, false));
button.addActionListener(this);
button.setActionCommand(description);
button.setName(description);
if (toolTip != null) {
button.setToolTipText(toolTip);
} else {
button.setToolTipText(description);
}
buttonPanel.addButton(button);
if (contentPanel.getComponentCount() == 0) {
last = component;
}
contentPanel.add(p, description);
String lastComponent = pref.get(LAST_VIEW, "");
if (lastComponent.equals(description)) {
cardLayout.show(contentPanel, description);
last = component;
}
}
Aggregations