Package javax.swing

Examples of javax.swing.JOptionPane.invalidate()


    dlg.setSize(Integer.parseInt(ConfigProperties.getInstance()
        .getProperty(EDITOR_WIDTH)), Integer.parseInt(ConfigProperties
        .getInstance().getProperty(EDITOR_HEIGHT)));
    com.subhajit.gui.FrameUtils.centerDialog(dlg);
    op.setVisible(true);
    op.invalidate();
    dlg.setModal(true);
    dlg.setVisible(true);
  }

  /**
 
View Full Code Here


  public static JDialog newDialog(JPanel In, String[] Options,
      String DialogCaption, int width, int height) {
    JOptionPane op = new JOptionPane(In);
    op.setOptions(Options);
    op.setVisible(true);
    op.invalidate();
    JDialog dlg = op.createDialog(null, DialogCaption);
    dlg.setSize(width, height);
    In.putClientProperty(JOptionPane.class.getName(), op);
    return dlg;
  }
View Full Code Here

  public static JDialog makeModalDialog(JPanel In, String[] Options,
      String DialogCaption) {
    JOptionPane op = new JOptionPane(In);
    op.setOptions(Options);
    op.setVisible(true);
    op.invalidate();
    JDialog dialog = op.createDialog(null, DialogCaption);
    dialog.setModal(true);
    FrameUtils.centerDialog(dialog);
    In.putClientProperty(JOptionPane.class.getName(), op);
    return dialog;
View Full Code Here

  public static String showModalDialog(JPanel In, String[] Options,
      String DialogCaption, int width, int height) {
    JOptionPane op = new JOptionPane(In);
    op.setOptions(Options);
    op.setVisible(true);
    op.invalidate();
    JDialog dlg = op.createDialog(null, DialogCaption);
    dlg.setSize(width, height);
    dlg.setModal(true);
    dlg.setVisible(true);
    return (op.getValue() == null ? null : op.getValue().toString());
View Full Code Here

        .getName());
    JDialog dlg = op.createDialog(this, captionBuf.toString());
    dlg.setSize(250, 120);
    FrameUtils.centerDialog(dlg);
    op.setVisible(true);
    op.invalidate();
    dlg.setModal(true);
    dlg.setVisible(true);

    int selectedValue = ((Integer) op.getValue()).intValue();
    if (selectedValue == JOptionPane.OK_OPTION)
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.