0% found this document useful (0 votes)
65 views2 pages

Gettext Returns Text Associated With Label Settext (String STR) Sets The Text of Label

This document discusses methods for labels, text fields, and buttons in GUI programming. It lists the getText() and setText() methods for labels, the setLabel() and getLabel() methods for buttons, and getActionCommand() and setActionCommand() methods for handling button events.

Uploaded by

Syed Zubair
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views2 pages

Gettext Returns Text Associated With Label Settext (String STR) Sets The Text of Label

This document discusses methods for labels, text fields, and buttons in GUI programming. It lists the getText() and setText() methods for labels, the setLabel() and getLabel() methods for buttons, and getActionCommand() and setActionCommand() methods for handling button events.

Uploaded by

Syed Zubair
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Methods of Label: Method Purpose getText() Returns text associated with label setText(String str) sets the text

of label Methods of TextField: Method Purpose

Methods of Button: Method Purpose setLabel(String str) sets the caption of the button with given string getLabel() returns the caption of the button getActionCommand() Returns the string used in event handling setActionCommand( sets the string String str) used in event handling

You might also like