Java examples for Swing:JLabel
Show Or Hide JLabel
import java.awt.Color; import javax.swing.JApplet; import javax.swing.JLabel; public class Main { //www. j ava 2 s . c o m public void init(){ JLabel label1 = new JLabel("JLabel Show Or Hide Example."); label1.setVisible(false); } }