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.setSize(400,500);
	frame.setLayout(new FlowLayout());
	frame.getContentPane().add(label1=new JLabel("This is example of label"));
	frame.setVisible(true);
	}
	public static void main(String[] args) 
	{
	new FrameDemo2("http://techmyguru.com");
	}
}

Download

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


Write your Comment

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