All Packages Class Hierarchy This Package Previous Next Index
Class fr.l2f.gui.MsgDialog
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Dialog
|
+----fr.l2f.gui.MsgDialog
- public class MsgDialog
- extends Dialog
- implements ActionListener
-
CANCEL
-
-
NO
-
-
YES
-
-
MsgDialog(Frame, String, String, String, String, String, String, boolean)
- Constructs a new MsgBox with the given parameters
-
actionPerformed(ActionEvent)
-
-
answer(int)
-
-
cancel()
-
-
no()
-
-
setLabelFont(Font)
-
-
yes()
-
NO
public static final int NO
YES
public static final int YES
CANCEL
public static final int CANCEL
MsgDialog
public MsgDialog(Frame parent,
String title,
String mess,
String yes_lab,
String no_lab,
String cancel_lab,
String image_source,
boolean modal)
- Constructs a new MsgBox with the given parameters
- Parameters:
- parent - the parent Frame
- title - the title of the MsgBox
- mess - the message to be displayed
- yes_lab - the label of the yes button, null for no YES button
- no_lab - the label of the no button, null for no NO button
- cancel_lab - the label of the cancel button, null for no CANCEL button
- champ_text - the text to be displayed in the textfield, null for no textfield
- image_source - the image to display
setLabelFont
public void setLabelFont(Font f)
actionPerformed
public void actionPerformed(ActionEvent evt)
answer
protected void answer(int answer)
yes
protected void yes()
no
protected void no()
cancel
protected void cancel()
All Packages Class Hierarchy This Package Previous Next Index