Package java.awt

Examples of java.awt.Dialog$AccessibleAWTDialog


                @Override
                public void run() {
                    // create dialog
                    YiiRunActionPanel panel = new YiiRunActionPanel(params);
                    DialogDescriptor descriptor = new DialogDescriptor(panel, Bundle.LBL_YiiRunActionAction(), true, null);
                    Dialog dialog = DialogDisplayer.getDefault().createDialog(descriptor);

                    dialog.pack();
                    dialog.validate();
                    dialog.setVisible(true);
                    // open browser
                    if (descriptor.getValue() == DialogDescriptor.OK_OPTION) {
                        Map<String, String> requests = panel.getGetRequest();
                        openBrowser(pm, controllerId, actionId, requests);
                    }
View Full Code Here


            )
       
        );
        bClose.setMnemonic(NbBundle.getMessage(ClojureBreakpointActionsProvider.class, "CTL_Close_MNEM").charAt(0));
        descriptor.setClosingOptions (null);
        Dialog d = DialogDisplayer.getDefault ().createDialog (descriptor);
        d.pack ();
        d.setVisible (true);
        if (descriptor.getValue () == bOk) {
            ((Controller) c).ok ();
        }
    }
View Full Code Here

            NbBundle.getMessage(ClojureWatchesActionsProvider.class, "CTL_Edit_Watch_Dialog_Title", // NOI18N
                                           w.getExpression()  )
       
        );
        dd.setHelpCtx(new HelpCtx("debug.add.watch"));
        Dialog dialog = DialogDisplayer.getDefault().createDialog(dd);
        dialog.setVisible(true);
        dialog.dispose();

        if (dd.getValue() != org.openide.DialogDescriptor.OK_OPTION) return;
        w.setExpression(wp.getExpression());
    }
View Full Code Here

            panel,
            NbBundle.getMessage(ClojureWatchesActionsProvider.class, "CTL_New_Watch_Dialog_Title") // NOI18N
         // NOI18N
        );
        dd.setHelpCtx (new HelpCtx ("debug.new.watch"));
        Dialog dialog = DialogDisplayer.getDefault ().createDialog (dd);
        dialog.setVisible (true);
        dialog.dispose ();

        if (dd.getValue () != org.openide.DialogDescriptor.OK_OPTION) return;
        DebuggerManager.getDebuggerManager ().createWatch (wp.getExpression ());
    }
View Full Code Here

      }
      Point convertedDragWindowOffset = SwingUtilities.convertPoint(w,
          dragWindowOffset, SubstanceRootPaneUI.this.getTitlePane());

      Frame f = null;
      Dialog d = null;

      if (w instanceof Frame) {
        f = (Frame) w;
      } else if (w instanceof Dialog) {
        d = (Dialog) w;
      }

      int frameState = (f != null) ? f.getExtendedState() : 0;

      if ((SubstanceRootPaneUI.this.getTitlePane() != null)
          && SubstanceRootPaneUI.this.getTitlePane().contains(
              convertedDragWindowOffset)) {
        if ((((f != null) && ((frameState & Frame.MAXIMIZED_BOTH) == 0)) || (d != null))
            && (dragWindowOffset.y >= SubstanceRootPaneUI.BORDER_DRAG_THICKNESS)
            && (dragWindowOffset.x >= SubstanceRootPaneUI.BORDER_DRAG_THICKNESS)
            && (dragWindowOffset.x < w.getWidth()
                - SubstanceRootPaneUI.BORDER_DRAG_THICKNESS)) {
          this.isMovingWindow = true;
          this.dragOffsetX = dragWindowOffset.x;
          this.dragOffsetY = dragWindowOffset.y;
        }
      } else if (((f != null) && f.isResizable() && ((frameState & Frame.MAXIMIZED_BOTH) == 0))
          || ((d != null) && d.isResizable())) {
        this.dragOffsetX = dragWindowOffset.x;
        this.dragOffsetY = dragWindowOffset.y;
        this.dragWidth = w.getWidth();
        this.dragHeight = w.getHeight();
        this.dragCursor = this.getCursor(this.calculateCorner(w,
View Full Code Here

      }

      Window w = (Window) ev.getSource();

      Frame f = null;
      Dialog d = null;

      if (w instanceof Frame) {
        f = (Frame) w;
      } else if (w instanceof Dialog) {
        d = (Dialog) w;
      }

      // Update the cursor
      int cursor = this.getCursor(this.calculateCorner(w, ev.getX(), ev
          .getY()));

      if ((cursor != 0)
          && (((f != null) && (f.isResizable() && ((f
              .getExtendedState() & Frame.MAXIMIZED_BOTH) == 0))) || ((d != null) && d
              .isResizable()))) {
        w.setCursor(Cursor.getPredefinedCursor(cursor));
      } else {
        w.setCursor(SubstanceRootPaneUI.this.lastCursor);
      }
View Full Code Here

                                }
                            }
                        });
                        dd.setOptions(new Object[]{okButton, DialogDescriptor.CANCEL_OPTION});
                        dd.setClosingOptions(null);//All options close
                        Dialog dialog = DialogDisplayer.getDefault().createDialog(dd);
                        dialog.addWindowListener(new WindowAdapter() {

                            @Override
                            public void windowClosing(WindowEvent e) {
                                ui.unSetup();
                            }
                        });
                        dialog.setVisible(true);
                    } else {
                        executeManipulatorInOtherThread(m);
                    }
                }
            });
View Full Code Here

                    }
                }
            });
            dd.setOptions(new Object[]{okButton, DialogDescriptor.CANCEL_OPTION});
            dd.setClosingOptions(null);//All options close
            Dialog dialog = DialogDisplayer.getDefault().createDialog(dd);
            dialog.setVisible(true);
            return true;
        }
        return false;
    }
View Full Code Here

                                }
                            }
                        });
                        dd.setOptions(new Object[]{okButton, DialogDescriptor.CANCEL_OPTION});
                        dd.setClosingOptions(null);//All options close
                        Dialog dialog = DialogDisplayer.getDefault().createDialog(dd);
                        dialog.addWindowListener(new WindowAdapter() {

                            @Override
                            public void windowClosing(WindowEvent e) {
                                ui.unSetup();
                            }
                        });
                        dialog.setVisible(true);
                    } else {
                        executeAttributeColumnsManipulatorInOtherThread(m, table, column);
                    }
                }
            });
View Full Code Here

     * @see #checkForModal(boolean)
     */
    public void makeVisible(ComponentOperator compOper) {
  try {
      if(modal) {
    Dialog modalDialog = JDialogOperator.getTopModalDialog();
    if(modalDialog != null &&
       compOper.getWindow() != modalDialog) {
        throw(new JemmyInputException("Component is not on top modal dialog.",
              compOper.getSource()));
    }
View Full Code Here

TOP

Related Classes of java.awt.Dialog$AccessibleAWTDialog

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.