Java JFrame confirm(JFrame parent, String query, int type)

Here you can find the source of confirm(JFrame parent, String query, int type)

Description

confirm

License

Open Source License

Declaration

public static boolean confirm(JFrame parent, String query, int type) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.swing.JFrame;
import javax.swing.JOptionPane;

public class Main {
    public static boolean confirm(JFrame parent, String query, int type) {
        return JOptionPane.showConfirmDialog(parent, query, "UploadR", JOptionPane.YES_NO_OPTION, type) == 0;
    }/*from  w w  w . j ava  2  s. co m*/
}

Related

  1. closeOnEscape(final JFrame frame)
  2. closeOnEscape(final JFrame frame)
  3. closeOnKeyStroke(JFrame frame, KeyStroke keyStroke)
  4. closeWindow(final JFrame frame)
  5. configToApplicationFrame(JFrame frm)
  6. createConfirmOnExitAdapter(final JFrame frame, final String title, final String message)
  7. createDialogForPanel(JFrame parent, JPanel panel)
  8. createPackedJFrame( java.awt.Component content, String title, int closeOperation)
  9. decorateFrame(JFrame frame, JMenuBar menuBar)