This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 22110
Collapse All | Expand All

(-)WebContextObject.java (-22 / +19 lines)
Lines 984-1017 Link Here
984
    }
984
    }
985
985
986
    private void showNotifyDialog (){
986
    private void showNotifyDialog (){
987
        final Dialog[] d = new Dialog [1];
988
        final ServletSettings setting = (ServletSettings)
987
        final ServletSettings setting = (ServletSettings)
989
                org.openide.options.SystemOption.findObject (ServletSettings.class);
988
                org.openide.options.SystemOption.findObject (ServletSettings.class);
990
        final MountMessagePanel panel = new MountMessagePanel ();
989
        final MountMessagePanel panel = new MountMessagePanel ();
991
        DialogDescriptor descriptor = new DialogDescriptor (
990
	
992
        panel,
991
	class Supp implements ActionListener, Runnable {
993
        NbBundle.getMessage (WebContextObject.class, "CTL_TITLE"),
992
	    Dialog d;
994
        false,
993
995
        // NotifyDescriptor.OK_CANCEL_OPTION,
996
        NotifyDescriptor.DEFAULT_OPTION,
997
        null,
998
        new ActionListener (){
999
            public void actionPerformed (ActionEvent e) {
994
            public void actionPerformed (ActionEvent e) {
1000
                // System.out.println ("## notify oked");
995
                setting.setShowMessageDialog (panel.getShowDialog ());
1001
                setting.setShowMessageDialog (
996
                d.dispose ();
1002
                    panel.getShowDialog ());
1003
                d[0].dispose ();
1004
            }
997
            }
1005
        });
1006
        descriptor.setOptions (new Object[] {NotifyDescriptor.OK_OPTION});
1007
        descriptor.setMessageType (NotifyDescriptor.INFORMATION_MESSAGE);
1008
        // descriptor.setOptionsAlign (DialogDescriptor.BOTTOM_ALIGN);
1009
        d[0] = TopManager.getDefault ().createDialog (descriptor);
1010
        d[0].setSize (580, 180);
1011
        SwingUtilities.invokeLater(new Runnable() {
1012
            public void run() {
998
            public void run() {
1013
                d[0].show ();
999
    		DialogDescriptor desc = new DialogDescriptor (
1014
            }});
1000
    		    panel,
1001
    		    NbBundle.getMessage (WebContextObject.class, "CTL_TITLE"),
1002
    		    false, NotifyDescriptor.DEFAULT_OPTION, null, this);
1003
    		desc.setOptions (new Object[] {NotifyDescriptor.OK_OPTION});
1004
    		desc.setMessageType (NotifyDescriptor.INFORMATION_MESSAGE);
1005
    		d = TopManager.getDefault ().createDialog (desc);
1006
    		d.setSize (580, 180);
1007
                d.show ();
1008
            }
1009
	}
1010
	
1011
        SwingUtilities.invokeLater(new Supp());
1015
    }
1012
    }
1016
1013
1017
     public String getURIParameter() {
1014
     public String getURIParameter() {

Return to bug 22110