package test_JLabel;

import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Point;

import javax.swing.JFrame;
import javax.swing.JLabel;

public class JLabel02 {
	public static void main(String args[]){
		JFrame fra = new JFrame("Swing ´°Ìå±êÌâ");
		JLabel lab = new JLabel("ÏÄ¹âÇ¬"+"Èí¼þ¹¤³Ì",JLabel.CENTER);
		//×ÖÌå
		Font fon = new Font("Serief",Font.BOLD+Font.ITALIC,37);
		lab.setFont(fon);
		lab.setForeground(Color.RED);
		//ÈÝÆ÷
		Container con = fra.getContentPane();
		con.add(lab);
		
		Dimension dim = new Dimension();
		dim.setSize(700, 400);
		fra.setSize(dim);
		fra.setBackground(Color.GREEN);//Where my Background Color?
		Point poi = new Point();
		poi.setLocation(300, 90);
		fra.setLocation(poi);
		fra.setVisible(true);
	}

}
