Package javax.swing

Examples of javax.swing.JDialog.show()


    }
    static public JDialog CreateFormatDialog (XAccessibleContext xContext)
    {
        JDialog aDialog = new TextAttributeDialog (xContext);
        if (aDialog != null)
            aDialog.show();
        return aDialog;
    }
}
View Full Code Here


            optionPane.setMessage(this.getMessage());
            optionPane.setInputValue(null);
            optionPane.setInitialSelectionValue(null);

            JDialog dialog = optionPane.createDialog(parent, TITLE);
            dialog.show();

            selectedValue = optionPane.getInputValue();
            if (selectedValue == null) {
                // something other than
View Full Code Here

    // Mac seems to lock up when showing a JS confirm from Java.
    //return JOptionPane.showConfirmDialog(this, s, "doh.robot", JOptionPane.OK_CANCEL_OPTION)==JOptionPane.OK_OPTION);
    JOptionPane pane = new JOptionPane(s, JOptionPane.DEFAULT_OPTION, JOptionPane.OK_CANCEL_OPTION);
    JDialog dialog = pane.createDialog(this, "doh.robot");
    dialog.setLocationRelativeTo(this);
    dialog.show();
    return ((Integer)pane.getValue()).intValue()==JOptionPane.OK_OPTION;
  }

  // mouse discovery code
  public void setDocumentBounds(final double sec, final int x, final int y, final int w, final int h) throws Exception{
View Full Code Here

        JDialog dialog = new JDialog(DBAnnotationViewerDialog.this, "Annotation Results for "
                + fileName + " in " + inputDirPath); // JMP
        dialog.getContentPane().add(viewer);
        dialog.setSize(850, 630);
        dialog.pack();
        dialog.show();
      } else {
        CAS defaultView = cas.getView(CAS.NAME_DEFAULT_SOFA);
        if (defaultView.getDocumentText() == null) {
          displayError("The HTML and XML Viewers can only view the default text document, which was not found in this CAS.");
          return;
View Full Code Here

        JDialog dialog = new JDialog(this,
            "Annotation Results for Document ID " + documentID); // JMP
        dialog.getContentPane().add(viewer);
        dialog.setSize(850, 630);
        dialog.pack();
        dialog.show();
      } else {
        CAS defaultView = cas.getView(CAS.NAME_DEFAULT_SOFA);
        if (defaultView.getDocumentText() == null) {
          displayError("The HTML and XML Viewers can only view the default text document, which was not found in this CAS.");
          return;
View Full Code Here

        p.add(new JLabel("Please enter user: "));
        p.add(Box.createHorizontalGlue());
        final JOptionPane op = new JOptionPane(p, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION);
        op.setWantsInput(true);
        JDialog dlg = op.createDialog(this, prompt);
        dlg.show();
        dlg.dispose();
        Object value = op.getInputValue();
        if (value == JOptionPane.UNINITIALIZED_VALUE) {
            return null;
        }
View Full Code Here

        p.add(new JLabel("Please enter user: "));
        p.add(Box.createHorizontalGlue());
        final JOptionPane op = new JOptionPane(p, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION);
        op.setWantsInput(true);
        JDialog dlg = op.createDialog(this, prompt);
        dlg.show();
        dlg.dispose();
        Object value = op.getInputValue();
        if (value == JOptionPane.UNINITIALIZED_VALUE) {
            return null;
        }
View Full Code Here

        grandParent.show();
        parent.show();
        new Snooze(500);
        WindowMonitor windowMonitor = WindowMonitor.getInstance();
        WindowId parentId = WindowIdCreator.createWindowId(parent, windowMonitor);
        child.show();
        new Snooze(500);
        WindowId childId = WindowIdCreator.createWindowId(child, windowMonitor);
        WindowElement parentAction = new WindowElement(parentId);
        WindowElement childAction = new WindowElement(childId);
        Window w = windowMonitor.getWindow(parentId.getTitle());
View Full Code Here

        new Snooze(500);
        WindowId parentId = WindowIdCreator.createWindowId(parent, WindowMonitor.getInstance());
        parent.dispose();
        AWTSync.sync();
        new Snooze(500);
        child.show();
        AWTSync.sync();
        new Snooze(500);
        WindowId childId = WindowIdCreator.createWindowId(child, WindowMonitor.getInstance());
        WindowElement parentAction = new WindowElement(parentId);
        WindowElement childAction = new WindowElement(childId);
View Full Code Here

                }
            };
            JDialog dialog = JColorChooser.createDialog(DocumentDialog.this, "Select Link Color", true, colorChooser,
                                                        okListener, null);
            dialog.setResizable(false);
            dialog.show();
        }
    }

    private class SelectUserAgentAction extends AbstractAction {
        SelectUserAgentAction() {
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.