Search in sources :

Example 1 with ShadowBorder

use of jgnash.ui.components.ShadowBorder in project jgnash by ccavanaugh.

the class InvestmentTransactionPanel method layoutMainPanel.

private void layoutMainPanel() {
    initComponents();
    FormLayout layout = new FormLayout("d, 4dlu, m:g, 4dlu, m", "f:d, $ugap, f:d");
    CellConstraints cc = new CellConstraints();
    setBorder(new CompoundBorder(new ShadowBorder(), Borders.TABBED_DIALOG));
    setLayout(layout);
    add(cardPanel, cc.xyw(1, 1, 5));
    add(new JSeparator(), cc.xyw(1, 2, 5));
    add(new JLabel(rb.getString("Label.Action")), cc.xy(1, 3));
    add(actionCombo, cc.xy(3, 3));
    add(StaticUIMethods.buildOKCancelBar(enterButton, cancelButton), cc.xy(5, 3));
}
Also used : FormLayout(com.jgoodies.forms.layout.FormLayout) ShadowBorder(jgnash.ui.components.ShadowBorder) JLabel(javax.swing.JLabel) CompoundBorder(javax.swing.border.CompoundBorder) JSeparator(javax.swing.JSeparator) CellConstraints(com.jgoodies.forms.layout.CellConstraints)

Example 2 with ShadowBorder

use of jgnash.ui.components.ShadowBorder in project jgnash by ccavanaugh.

the class RegisterPanel method layoutMainPanel.

private void layoutMainPanel() {
    initComponents();
    FormLayout layout = new FormLayout("p:g", "");
    DefaultFormBuilder builder = new DefaultFormBuilder(layout, this);
    builder.border(Borders.DIALOG);
    builder.append(createTopPanel());
    builder.nextLine();
    builder.appendRelatedComponentsGapRow();
    builder.nextLine();
    builder.appendRow("fill:60dlu:g");
    JScrollPane s = new JScrollPane(table);
    s.setBorder(new ShadowBorder());
    builder.append(s);
    buttonPanel = createButtonPanel();
    builder.append(buttonPanel);
    builder.append(tabbedPane);
}
Also used : FormLayout(com.jgoodies.forms.layout.FormLayout) JScrollPane(javax.swing.JScrollPane) ShadowBorder(jgnash.ui.components.ShadowBorder) DefaultFormBuilder(com.jgoodies.forms.builder.DefaultFormBuilder)

Aggregations

FormLayout (com.jgoodies.forms.layout.FormLayout)2 ShadowBorder (jgnash.ui.components.ShadowBorder)2 DefaultFormBuilder (com.jgoodies.forms.builder.DefaultFormBuilder)1 CellConstraints (com.jgoodies.forms.layout.CellConstraints)1 JLabel (javax.swing.JLabel)1 JScrollPane (javax.swing.JScrollPane)1 JSeparator (javax.swing.JSeparator)1 CompoundBorder (javax.swing.border.CompoundBorder)1