Package java.awt

Examples of java.awt.Dialog$AccessibleAWTDialog


    /*
     * 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


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

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

        }
        WizardDescriptor wiz = new WizardDescriptor(new WizardDescriptor.ArrayIterator<WizardDescriptor>(panels));
        // {0} will be replaced by WizardDesriptor.Panel.getComponent().getName()
        wiz.setTitleFormat(new MessageFormat("{0}"));
        wiz.setTitle("Add Grass");
        Dialog dialog = DialogDisplayer.getDefault().createDialog(wiz);
        dialog.setVisible(true);
        dialog.toFront();
        boolean cancelled = wiz.getValue() != WizardDescriptor.FINISH_OPTION;
        if (!cancelled) {
            return wiz;
        }
        return null;
View Full Code Here

  Dialog D;

  public Outro2(){
    Frame F = new Frame();    //uj frame
     D = new Dialog(F, "Outro")//uj dialogus ablak
   
    D.setLayout(bl1);
    D.add(new Label("Nyertel!"), BorderLayout.NORTH);    //label szovege �s ablakhoz hozzaadasa
   
   
View Full Code Here

  Dialog D;

  public Outro(){
    Frame F = new Frame();    //uj frame
     D = new Dialog(F, "Outro");    //uj dialogus ablak

    D.setLayout(bl1);
    D.add(new Label("Vesztettel!"), BorderLayout.NORTH);    //label szoveget hozzadni a dialogus ablakhoz

   
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

     * @param window the activating window
     */
    public void setActivationWindow(Window window) {
  debug("setActivationWindow");
  if (window != null && window instanceof Dialog) {
      Dialog tmpDialog = (Dialog) window;
      if (tmpDialog.isModal()) {
    ownerWindow = window;
    modallyActivated = true;
      } else {
    ownerWindow = null;
    modallyActivated = false;
View Full Code Here

  // Dialog.
        boolean inModalDialog = inModalDialog();

        /** Workaround for modal dialogs. See also JPopupMenu.java **/
        if ( inModalDialog ) {
            Dialog dlg = getDialog();
            if ( dlg instanceof JDialog ) {
                JRootPane rp = ((JDialog)dlg).getRootPane();
                p = rp.getLocationOnScreen();
                absBounds = rp.getBounds();
                absBounds.x = p.x;
                absBounds.y = p.y;
            } else {
                absBounds = dlg.getBounds();
      }
        } else {
            Dimension scrSize = Toolkit.getDefaultToolkit().getScreenSize();
            absBounds = new Rectangle(0, 0, scrSize.width, scrSize.height);
        }
View Full Code Here

            wiz.putProperty("WizardPanel_autoWizardStyle", Boolean.TRUE); // NOI18N
            wiz.putProperty("WizardPanel_contentDisplayed", Boolean.TRUE); // NOI18N
            wiz.putProperty("WizardPanel_contentNumbered", Boolean.TRUE); // NOI18N
            wiz.setTitle(NbBundle.getMessage(PlatformsCustomizer.class,"CTL_AddPlatformTitle"));
            wiz.setTitleFormat(new java.text.MessageFormat("{0}")); // NOI18N
            Dialog dlg = DialogDisplayer.getDefault().createDialog(wiz);
            try {
                dlg.setVisible(true);
                if (wiz.getValue() == WizardDescriptor.FINISH_OPTION) {
                    this.getChildren().refreshPlatforms();
                    Set result = wiz.getInstantiatedObjects();
                    this.expandPlatforms (result.size() == 0 ? null : (ScalaPlatform)result.iterator().next());
                }
            } finally {
                dlg.dispose();
            }
        } catch (DataObjectNotFoundException dfne) {
            ErrorManager.getDefault().notify (dfne);
        }
        catch (IOException ioe) {
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.