Java AWT Label

The object of Label class is a component for placing text in a container. It is used to display a single line of read only text. The text can be changed by an application but a user cannot edit it directly.

AWT Label Class Declaration

public class Label extends Component implements Accessible

Java Label Example

Flash Soon


Output:

Java AWT Label Example with ActionListener

Flash Soon


Output:


Advertisement

Copyright ©2017 Design& develop