All Packages Class Hierarchy This Package Previous Next Index
Class ejmf.toolkit.gui.controls.EjmfControlButton
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.AbstractButton
|
+----com.sun.java.swing.JButton
|
+----ejmf.toolkit.gui.controls.EjmfControlButton
- public class EjmfControlButton
- extends JButton
A class of controls that do attract nor paint the
focus.
This class simply extends JButton and over-rides
- isFocusTraversable
- isFocusPainted
-
EjmfControlButton()
- Create an EjmfControlButton
-
EjmfControlButton(ImageIcon)
- Create an EjmfControlButton
from an ImageIcon.
-
getPreferredSize()
- Return preferred size of button.
-
isFocusPainted()
- Force to false so that focus box does not get drawn
around button.
-
isFocusTraversable()
- Force to false so that button does not appear
in focus traversal list.
EjmfControlButton
public EjmfControlButton()
- Create an EjmfControlButton
EjmfControlButton
public EjmfControlButton(ImageIcon im)
- Create an EjmfControlButton
from an ImageIcon.
isFocusTraversable
public boolean isFocusTraversable()
- Force to false so that button does not appear
in focus traversal list.
- Returns:
- Always return false.
- Overrides:
- isFocusTraversable in class JComponent
isFocusPainted
public boolean isFocusPainted()
- Force to false so that focus box does not get drawn
around button.
- Returns:
- Always return false.
- Overrides:
- isFocusPainted in class AbstractButton
getPreferredSize
public Dimension getPreferredSize()
- Return preferred size of button. Button size is
based on its label icon.
- Returns:
- preferred size of button.
- Overrides:
- getPreferredSize in class JComponent
All Packages Class Hierarchy This Package Previous Next Index