Package org.jitterbit.ui.dialog

Examples of org.jitterbit.ui.dialog.KongaDialog.pack()


        private KongaDialog createDialog() {
            KongaDialog dlg = new KongaDialog(UiUtils.getActiveWindow(), "Potential Conflict");
            BorderLayoutBuilder layout = new BorderLayoutBuilder(0, 10).north(
                            createCaption()).south(createButtons(dlg));
            layout.withEmptyBorder(10, 10, 10, 10).asContentPaneFor(dlg);
            dlg.pack();
            dlg.setResizable(false);
            dlg.manageLocation(OperationGraphManager.class);
            return dlg;
        }
View Full Code Here


            dlg = new KongaDialog((Dialog) owner, title, null, false);
        } else {
            throw new IllegalArgumentException("Invalid dialog owner: " + (owner != null ? owner.getClass() : "null")); //$NON-NLS-1$ //$NON-NLS-2$
        }
        createContentPane(dlg);
        dlg.pack();
        dlg.setLocationRelativeTo(owner);
        dlg.manageLocation(MessagePropertiesDialog.class);
        dlg.addWindowListener(new WindowAdapter() {

            @Override
View Full Code Here

        BorderLayoutBuilder layout = createDialogLayout();
        layout.asContentPaneFor(dialog);
        dialog.setLocationRelativeTo(null);
        dialog.manageLocation(getClass());
        ActionKeyBinding.install(attachAction, dialog.getRootPane(), JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
        dialog.pack();
        return dialog;
    }

    private BorderLayoutBuilder createDialogLayout() {
        BorderLayoutBuilder layout = new BorderLayoutBuilder(0, 10);
View Full Code Here

   
    private void showDialog() {
        KongaDialog dlg = new KongaDialog(UiUtils.getActiveWindow(), Strings.get("ViewHostedWebServiceUrl.Title"));
        createContentPane(dlg);
        dlg.enableUndoRedoForTextComponents(UndoRedoControllers.textFactory());
        dlg.pack();
        dlg.setResizable(false);
        dlg.manageLocation();
        dlg.setVisible(true);
    }
   
View Full Code Here

            Window owner = (trigger != null ? SwingUtilities.getWindowAncestor(trigger) : null);
            if (owner == null) {
                owner = UiUtils.getActiveWindow();
            }
            KongaDialog dialog = createDialog(owner, table);
            dialog.pack();
            dialog.manageLocation(InvalidMappingsViewer.class);
            dialog.setOkButtonAsDefault();
            dialog.setVisible(true);
            if (dialog.wasOkPressed()) {
                applyChanges();
View Full Code Here

    private static KongaDialog createDialog(UiProvider content) {
        KongaDialog dialog = new KongaDialog(getOwner(), Strings.get("Deploy.Result.Dialog.Title"), true);
        layoutDialog(dialog, content);
        dialog.setCloseButtonAsDefault();
        dialog.pack();
        dialog.manageLocation(DeployWarningsDialog.class);
        return dialog;
    }

    private static JFrame getOwner() {
View Full Code Here

        buttons.setUseSmallSizedIconsForActions(true);
        buttons.addAllWithSpace(10, stopAction, continueAction).glue().add(cancelButton);
        layout.south(buttons);
        layout.setBorder(Empty.border(10));
        layout.asContentPaneFor(dialog);
        dialog.pack();
        dialog.setLocationRelativeTo(null);
        dialog.setResizable(false);
        dialog.manageLocation();
        dialog.setDefaultButton(stopAction);
        return dialog;
View Full Code Here

            KongaDialog dialog = new KongaDialog(UiUtils.getActiveWindow(), getString("Move.ConflictDialog.Title"));
            BorderLayoutBuilder content = new BorderLayoutBuilder(0, 10);
            content.northToSouth(createCaption(), selector, getButtons(dialog));
            content.setBorder(Empty.border(10));
            content.asContentPaneFor(dialog);
            dialog.pack();
            dialog.setResizable(false);
            dialog.manageLocation(DialogConflictResolver.class);
            dialog.setOkButtonAsDefault();
            return dialog;
        }
View Full Code Here

            dlg = new KongaDialog((Dialog) owner, title, null, false);
        } else {
            throw new IllegalArgumentException("Invalid dialog owner: " + (owner != null ? owner.getClass() : "null")); //$NON-NLS-1$ //$NON-NLS-2$
        }
        createContentPane(dlg);
        dlg.pack();
        dlg.setLocationRelativeTo(owner);
        dlg.manageLocation(MessagePropertiesDialog.class);
        dlg.addWindowListener(new WindowAdapter() {

            @Override
View Full Code Here

        dlg.getOKButton().setText(prompt.mode.continueLabel);
        dlg.getCancelButton().setText(prompt.mode.cancelLabel);
        cp.withEmptyBorder(10, 10, 10, 10).asContentPaneFor(dlg);
        dlg.setResizable(false);
        dlg.manageLocation(LogoutWhileDebuggingHandler.class);
        dlg.pack();
        dlg.setOkButtonAsDefault();
        return dlg;
    }
   
    private void stopCurrentSession(DebugSession session) {
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.