1 |
/* JOptionPane.java |
/* JOptionPane.java |
2 |
Copyright (C) 2004 Free Software Foundation, Inc. |
Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
858 |
*/ |
*/ |
859 |
public static int showConfirmDialog(Component parentComponent, Object message) |
public static int showConfirmDialog(Component parentComponent, Object message) |
860 |
{ |
{ |
861 |
JOptionPane pane = new JOptionPane(message); |
JOptionPane pane = new JOptionPane(message, QUESTION_MESSAGE); |
862 |
JDialog dialog = pane.createDialog(parentComponent, "Select an Option"); |
JDialog dialog = pane.createDialog(parentComponent, "Select an Option"); |
863 |
|
|
864 |
dialog.pack(); |
dialog.pack(); |