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


Constructor Index

 o EjmfControlButton()
Create an EjmfControlButton
 o EjmfControlButton(ImageIcon)
Create an EjmfControlButton from an ImageIcon.

Method Index

 o getPreferredSize()
Return preferred size of button.
 o isFocusPainted()
Force to false so that focus box does not get drawn around button.
 o isFocusTraversable()
Force to false so that button does not appear in focus traversal list.

Constructors

 o EjmfControlButton
 public EjmfControlButton()
Create an EjmfControlButton

 o EjmfControlButton
 public EjmfControlButton(ImageIcon im)
Create an EjmfControlButton from an ImageIcon.

Methods

 o 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
 o 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
 o 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