FileDocCategorySizeDatePackage
UnchainedConstructors.javaAPI DocExample1789Sun Dec 14 22:47:38 GMT 2003oreilly.hcj.review

UnchainedConstructors

public class UnchainedConstructors extends JButton
Demonstration of unchained constructors.
author
Robert Simmons jr. (kraythe)
version
$Revision: 1.3 $

Fields Summary
Constructors Summary
public UnchainedConstructors(String text)
Constructor for only the panel name.

param
text Display text for the button.

		setText(text);
		String tooltip = new String("A button to show " + text);
		setToolTipText(tooltip);
	
public UnchainedConstructors(String text, String tooltip)
Constructor for only the tool tip and panel name.

param
text Display text for the button.
param
tooltip Tool Tip for the panel.

		setText(text);
		setToolTipText(tooltip);
	
public UnchainedConstructors(String text, String tooltip, ActionListener listener)
Constructor for all parameters.

param
text Display text for the button.
param
tooltip Tool Tip for the panel.
param
listener Listener to the panel.

		setText(text);
		setToolTipText(tooltip);
		addActionListener(listener);
	
Methods Summary