home *** CD-ROM | disk | FTP | other *** search
- package java.awt;
-
- import java.awt.peer.ButtonPeer;
-
- public class Button extends Component {
- String label;
-
- public Button() {
- this("");
- }
-
- public Button(String var1) {
- this.label = var1;
- }
-
- public synchronized void addNotify() {
- if (super.peer == null) {
- super.peer = ((Component)this).getToolkit().createButton(this);
- }
-
- super.addNotify();
- }
-
- public String getLabel() {
- return this.label;
- }
-
- public void setLabel(String var1) {
- this.label = var1;
- ButtonPeer var2 = (ButtonPeer)super.peer;
- if (var2 != null) {
- var2.setLabel(var1);
- }
-
- }
-
- protected String paramString() {
- return super.paramString() + ",label=" + this.label;
- }
- }
-