frame with Label

import java.awt.FlowLayout;
import javax.swing.*;
public class FrameDemo2 
JFrame frame;
JLabel label1;
	public FrameDemo2(String title) 
	frame=new JFrame(title);
	frame.setLayout(new FlowLayout());
	frame.getContentPane().add(label1=new JLabel("This is example of label"));
	public static void main(String[] args) 
	new FrameDemo2("");


Frame in Swing

Simple Frame
Frame with Panel
Frame Menu Event ans Color Chooser
Frame with Panel and Button
TextField and TextArea
Combobox in Frame
Change Icon of Frame
Scrollbar in Frame
Scrollbar in Frame
Add picture in Frame
Label in Frame
Toggle Buttons in frame
Radio Buttons in Frame

Share your valuable comment

Name :
Email Id : [ We will not publish your email id ]
Your Comment : [ Maximum 200 chars ]
Enter Security code :