Examples of DialogDescriptor


Examples of org.openide.DialogDescriptor

                } else {
                    dialogPtr[0].setVisible(false);
                }
            }
        };
        DialogDescriptor descriptor = new DialogDescriptor (
            c,
            NbBundle.getMessage (
                BreakpointsActionsProvider.class,
                "CTL_Breakpoint_Customizer_Title" // NOI18N
            ),
            true,
            DialogDescriptor.OK_CANCEL_OPTION,
            DialogDescriptor.OK_OPTION,
            DialogDescriptor.DEFAULT_ALIGN,
            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

Examples of org.openide.DialogDescriptor

    public static boolean showCustomizer (ScalaPlatform platform) {
        org.netbeans.modules.scala.platform.ui.PlatformsCustomizer  customizer =
                new org.netbeans.modules.scala.platform.ui.PlatformsCustomizer (platform);
        javax.swing.JButton close = new javax.swing.JButton(NbBundle.getMessage(PlatformsCustomizer.class,"CTL_Close"));
        close.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(PlatformsCustomizer.class,"AD_Close"));
        DialogDescriptor descriptor = new DialogDescriptor (customizer,NbBundle.getMessage(PlatformsCustomizer.class,
                "TXT_PlatformsManager"), true, new Object[] {close},close,DialogDescriptor.DEFAULT_ALIGN, new HelpCtx (PlatformsCustomizer.class),null); // NOI18N
        Dialog dlg = null;
        try {
            dlg = DialogDisplayer.getDefault().createDialog (descriptor);
            dlg.setVisible(true);
View Full Code Here

Examples of org.openide.DialogDescriptor

        parameters.setHighlightTextColor(SparklineParameters.DEFAULT_TEXT_COLOR);
        parameters.setHighlightTextBoxColor(SparklineParameters.DEFAULT_TEXT_BOX_COLOR);
        SparklineComponent sparklineUI = new SparklineComponent(xValues, yValues, parameters, true);//True makes it interactive to mouse
        sparklineUI.setPreferredSize(new Dimension(200, 20));//Initial size
        //Using Netbeans RCP Dialogs API:       
        DialogDescriptor dd = new DialogDescriptor(sparklineUI, column.getTitle());
        dd.setModal(false);
        dd.setOptions(new Object[0]);//No buttons
        DialogDisplayer.getDefault().createDialog(dd).setVisible(true);
    }
View Full Code Here

Examples of org.openide.DialogDescriptor

        final SQLiteDatabaseExporter exporter = new SQLiteDatabaseExporter();

        //Create the settings panel
        SQLiteDatabaseSettingsPanel settingPanel = new SQLiteDatabaseSettingsPanel();
        settingPanel.setup(exporter);
        final DialogDescriptor dd = new DialogDescriptor(settingPanel, "SQLite Database Export");
        Object result = DialogDisplayer.getDefault().notify(dd);
        if (result == NotifyDescriptor.OK_OPTION) {
            //This line will write the file path from the panel to the exporter's <code>setPath()<code> method.
            settingPanel.unsetup(true);
View Full Code Here

Examples of org.openide.DialogDescriptor

        NotifyDescriptor d = new NotifyDescriptor.Message("Hello...now trying to display a dialog", NotifyDescriptor.INFORMATION_MESSAGE);
        DialogDisplayer.getDefault().notify(d);

        //Do something - for instance display a dialog
        //Dialogs API documentation: http://bits.netbeans.org/dev/javadoc/org-openide-dialogs/index.html?overview-summary.html
        DialogDescriptor dd = new DialogDescriptor(new JPanel(), "My Dialog", false, null);
        DialogDisplayer.getDefault().notify(dd);
    }
View Full Code Here

Examples of org.openide.DialogDescriptor

        catch (IOException ioe) {
            ErrorManager.getDefault().notify(ioe);
            return false;
        }

        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();
            }
            catch (Exception e) {
View Full Code Here

Examples of org.openide.DialogDescriptor

        catch (IOException ioe) {
            ErrorManager.getDefault().notify(ioe);
            return false;
        }

        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();
            }
            catch (Exception e) {
View Full Code Here

Examples of org.openide.DialogDescriptor

            }
        }
    }//GEN-LAST:event_jButtonAddInterfaceActionPerformed
   
    boolean display() {
        DialogDescriptor dialogdescriptor = new DialogDescriptor( this,
        "Interfaces to implement by your Service", true, 2,
        NotifyDescriptor.OK_OPTION, 0, null, null);
       
        TopManager.getDefault().notify( dialogdescriptor );
        return dialogdescriptor.getValue() == NotifyDescriptor.OK_OPTION;
    }
View Full Code Here

Examples of org.openide.DialogDescriptor

        add(idlName, gridbagconstraints);
    }

    public boolean display()
    {   status = false;
        DialogDescriptor dialogdescriptor = new DialogDescriptor(this,"Choose the IDL file which defines your new interface", true, 2, NotifyDescriptor.OK_OPTION, 0, null, null);
        dialogdescriptor.setButtonListener( new ActionListener() {
           
       
           public void actionPerformed(ActionEvent actionevent)
            {
                if(actionevent.getActionCommand().equals("OK"))
View Full Code Here

Examples of org.openide.DialogDescriptor

    public void createStructMember()
    {
        TopManager topmanager = TopManager.getDefault();
        final AliasPanel aliaspanel = new AliasPanel();
        DialogDescriptor exdialogdescriptor = new DialogDescriptor(aliaspanel, ResourceBundle.getBundle("org/netbeans/modules/openoffice/wizard/nodes/Bundle").getString("TXT_CreateMember"));
        exdialogdescriptor.setButtonListener( new ActionListener() {

            public void actionPerformed(ActionEvent actionevent)
            {
                if(actionevent.getActionCommand().equals("OK"))
                {
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.