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

Variable Index

 o CANCEL
 o NO
 o YES

Constructor Index

 o MsgDialog(Frame, String, String, String, String, String, String, boolean)
Constructs a new MsgBox with the given parameters

Method Index

 o actionPerformed(ActionEvent)
 o answer(int)
 o cancel()
 o no()
 o setLabelFont(Font)
 o yes()

Variables

 o NO
 public static final int NO
 o YES
 public static final int YES
 o CANCEL
 public static final int CANCEL

Constructors

 o 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

Methods

 o setLabelFont
 public void setLabelFont(Font f)
 o actionPerformed
 public void actionPerformed(ActionEvent evt)
 o answer
 protected void answer(int answer)
 o yes
 protected void yes()
 o no
 protected void no()
 o cancel
 protected void cancel()

All Packages  Class Hierarchy  This Package  Previous  Next  Index