Package org.jitterbit.ui.layout

Examples of org.jitterbit.ui.layout.BoxBuilder.withEmptyBorder()


    }

    private JComponent createButtonBox() {
        BoxBuilder buttons = BoxBuilder.horizontal();
        buttons.add(selectAllAction).strut(5).add(unselectAllAction).strut(25).add(deleteAction).glue();
        return buttons.withEmptyBorder(5, 5, 5, 5).container();
    }

    @Override
    public void requestFocus() {
        table.requestFocusInWindow();
View Full Code Here


    }

    private JComponent createButtonBox() {
        BoxBuilder buttons = BoxBuilder.horizontal();
        buttons.add(selectAllAction).strut(5).add(unselectAllAction).strut(25).add(deleteAction).glue();
        return buttons.withEmptyBorder(5, 5, 5, 5).container();
    }

    @Override
    public void requestFocus() {
        displayer.requestFocus();
View Full Code Here

        }

        private void layoutButtons() {
            BoxBuilder row = BoxBuilder.horizontal();
            row.glue().add(createRestoreDefaultsButton()).strut(10).add(applyButton);
            row.withEmptyBorder(0, 0, 10, 10);
            row.addToParent(panel, BorderLayout.SOUTH);
        }

        private JButton createApplyButton() {
            JButton btn = new KongaButton("&Apply");
View Full Code Here

        BoxBuilder row = BoxBuilder.horizontal();
        KongaButton testButton = createTestButton();
        row.add(clientHelpButton).strut(10).add(testButton).glue().addAllWithSpace(10, ok, cancel);
        // HACK for bug 1978511:
        int rightBorder = SystemUtils.IS_OS_WINDOWS_VISTA ? 0 : 1;
        return row.withEmptyBorder(10, 0, 10, rightBorder).container();
    }

    private KongaButton createTestButton() {
        Action action = getUi().getTestAction();
        return new KongaButton(action).setUseSmallActionIcon(true);
View Full Code Here

            JButton saveAll = getSaveAllButton();
            JButton saveNone = getSaveNoneButton();
            JButton cancel = getCancelSaveButton();
            BoxBuilder row = BoxBuilder.horizontal();
            row.glue().strut(60).addAllWithSpace(10, saveAll, saveNone, cancel);
            return row.withEmptyBorder(10, 0, 10, 0).container();
        }

        private JButton getSaveAllButton() {
            JButton b = new KongaButton(PackageResources.SavePrompt.SAVE_ALL);
            b.addActionListener(new ActionListener() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.