Class org.aswing.JToggleButton

Description

An implementation of a two-state button. The JRadioButton and JCheckBox classes are subclasses of this class.

Field Index

Inherited from AbstractButton

Inherited from Component

Inherited from EventDispatcher

Method Index

new JToggleButton()
getUIClassID(), updateUI()

Inherited from AbstractButton

Inherited from Component

Inherited from EventDispatcher

Constructor Detail

JToggleButton

public function JToggleButton(text, icon:Icon)

JToggleButton(text:String, icon:Icon)
JToggleButton(text:String)
JToggleButton(icon:Icon)

Method Detail

updateUI

public function updateUI():Void

Description copied from AbstractButton

Resets the UI property to a value from the current look and feel. Subtypes of AbstractButton should override this to update the UI. For example, JButton might do the following:

      setUI(ButtonUI(UIManager.getUI(this)));
 

Overrides

updateUI() in org.aswing.AbstractButton

getUIClassID

public function getUIClassID():String

Description copied from Component

Returns the UIDefaults key used to look up the name of the org.aswing.plaf.ComponentUI class that defines the look and feel for this component. Most applications will never need to call this method. Subclasses of Component that support pluggable look and feel should override this method to return a UIDefaults key that maps to the ComponentUI subclass that defines their look and feel.

Overrides

getUIClassID() in org.aswing.Component