Class NButton

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.sun.java.swing.AbstractButton
                                   |
                                   +----com.sun.java.swing.JButton
                                           |
                                           +----NButton

public class NButton
extends JButton
implements MouseListener
A button which gives Netscape 4 look & feel. Used in the toolbar.

Author:
Patrice Bensoussan, Thierry Bensoussan

Constructor Index

 o NButton(ImageIcon)
Build a button with an image
 o NButton(String)
Build a button with a text.
 o NButton(String, ImageIcon)
Build a button with a text and an image

Method Index

 o mouseClicked(MouseEvent)
[ MouseListener interface ]
 o mouseEntered(MouseEvent)
[ MouseListener interface ]
 o mouseExited(MouseEvent)
[ MouseListener interface ]
 o mousePressed(MouseEvent)
[ MouseListener interface ]
 o mouseReleased(MouseEvent)
[ MouseListener interface ]
 o setEnabled(boolean)

Constructors

 o NButton
 public NButton(String text)
Build a button with a text.

 o NButton
 public NButton(ImageIcon image)
Build a button with an image

 o NButton
 public NButton(String text,
                ImageIcon image)
Build a button with a text and an image

Methods

 o mouseClicked
 public void mouseClicked(MouseEvent e)
[ MouseListener interface ]

 o mouseEntered
 public void mouseEntered(MouseEvent e)
[ MouseListener interface ]

 o mouseExited
 public void mouseExited(MouseEvent e)
[ MouseListener interface ]

 o mousePressed
 public void mousePressed(MouseEvent e)
[ MouseListener interface ]

 o mouseReleased
 public void mouseReleased(MouseEvent e)
[ MouseListener interface ]

 o setEnabled
 public void setEnabled(boolean b)
Overrides:
setEnabled in class AbstractButton