Package java.awt

Examples of java.awt.Dialog


        okButton.setEnabled(false);
        DialogDescriptor desc = new DialogDescriptor(panel,
                NbBundle.getMessage(MainClassWarning.class, "CTL_MainClassWarning_Title", ProjectUtils.getInformation(project).getDisplayName()), // NOI18N
                true, options, options[0], DialogDescriptor.BOTTOM_ALIGN, null, null);
        desc.setMessageType(DialogDescriptor.INFORMATION_MESSAGE);
        Dialog dlg = DialogDisplayer.getDefault().createDialog(desc);
        dlg.setVisible(true);
        if (desc.getValue() != options[0]) {
            canceled = true;
        } else {
            mainClass = panel.getSelectedMainClass();
            canceled = false;
            ep.put(J2SEProjectProperties.MAIN_CLASS, mainClass == null ? "" : mainClass);
        }
        dlg.dispose();

        return canceled;
    }
View Full Code Here


        });
        DialogDescriptor desc = new DialogDescriptor(panel,
                NbBundle.getMessage(MainClassWarning.class, "CTL_FileMainClass_Title"), // NOI18N
                true, options, options[0], DialogDescriptor.BOTTOM_ALIGN, null, null);
        desc.setMessageType(DialogDescriptor.INFORMATION_MESSAGE);
        Dialog dlg = DialogDisplayer.getDefault().createDialog(desc);
        dlg.setVisible(true);
        if (desc.getValue() == options[0]) {
            mainClass = panel.getSelectedMainClass();
        }
        dlg.dispose();
        return mainClass;
    }
View Full Code Here

                closeOption,
                DialogDescriptor.DEFAULT_ALIGN,
                null,
                null);
        dd.setMessageType(DialogDescriptor.WARNING_MESSAGE);
        final Dialog dlg = DialogDisplayer.getDefault().createDialog(dd);
        dlg.setVisible(true);
    }
View Full Code Here

            helpCtx,
            buttonsActionListener
       
        );
        descriptor.setClosingOptions(new Object[] {});
        Dialog d = DialogDisplayer.getDefault ().createDialog (descriptor);
        d.pack ();
        descriptorPtr[0] = descriptor;
        dialogPtr[0] = d;
        d.setVisible (true);
    }
View Full Code Here

            public void run() {

                OptionListener optionListener = new OptionListener();
                StoreListener storeListener = new StoreListener();
                Lookup context = Lookups.fixed(project);
                Dialog dialog = ProjectCustomizer.createCustomizerDialog(CUSTOMIZER_FOLDER_PATH, context, preselectedCategory,
                        optionListener, storeListener, null);
                dialog.addWindowListener(optionListener);
                dialog.setTitle("Properties");
                dialog.setVisible(true);
            }
        });
    }
View Full Code Here

        }

        DialogDescriptor dd = new DialogDescriptor(configuror,
            ConfigurePanel.DIALOG_TITLE);
       
        Dialog dialog = TopManager.getDefault().createDialog(dd);
        dialog.show();
       
        if (dd.getValue() == DialogDescriptor.OK_OPTION) {
            try {
                ParcelDescriptor descriptor = configuror.getConfiguration();
                descriptor.write();
View Full Code Here

     * @return java.awt.Dialog
     */
    private Dialog getAboutDialog() {
        if (iAboutDialog == null) {
            try {
                iAboutDialog = new Dialog(this);
                iAboutDialog.setName("AboutDialog");
                iAboutDialog.setResizable(false);
                iAboutDialog.setLayout(new java.awt.BorderLayout());
                iAboutDialog.setBounds(550, 14, 383, 142);
                iAboutDialog.setModal(true);
View Full Code Here

    /*
     * Class under test for void JDialog(Dialog, String, boolean, GraphicsConfiguration)
     */
    public void testJDialogDialogStringbooleanGraphicsConfiguration() {
        Dialog owner = new Dialog(new Frame());
        final GraphicsConfiguration gc = GraphicsEnvironment.getLocalGraphicsEnvironment()
                .getDefaultScreenDevice().getDefaultConfiguration();
        // test with corrent owner, correct title, modal == true, correct gc
        dialog = new JDialog(owner, "Test JDialog", true, gc);
        // title is set, isModal() == true
View Full Code Here

    /*
     * Class under test for void JDialog(Dialog, String, boolean)
     */
    public void testJDialogDialogStringboolean() {
        Dialog owner = new Dialog(new Frame());
        // test with corrent owner, correct title, modal == false
        dialog = new JDialog(owner, "Test JDialog", false);
        // title is set, isModal() == false
        checkDialogCorrectness(dialog, "Test JDialog", false);
        assertTrue("owner is set", dialog.getOwner() == owner);
View Full Code Here

    /*
     * Class under test for void JDialog(Dialog, String)
     */
    public void testJDialogDialogString() {
        Dialog owner = new Dialog(new Frame());
        // test with corrent owner, correct title
        dialog = new JDialog(owner, "Test JDialog");
        // title is set, isModal() == false
        checkDialogCorrectness(dialog, "Test JDialog", false);
        assertTrue("owner is set", dialog.getOwner() == owner);
View Full Code Here

TOP

Related Classes of java.awt.Dialog

Copyright © 2018 www.massapicom. 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.