* 일반적인 생성자를 이용한 생성
private Font f = new Font("serif",Font.BOLD,20); // fontfamilyName , fontStyle , font size
* 스태틱 메소드를 이용한 생성
//g2D.setFont(Font.decode("serif-BOLD-20")); //" fontfamilyname-fontStyle-Size "
* 하나의 객체를 수정해서 쓸때, 속성 변경
f.deriveFont(10.0f); // 크기 속성 변경
f.deriveFont(Font.ITALIC); // 스타일 속성 변경
f.deriveFont(Font.ITALIC, 10.0f); // 둘다 변경
'JAVA > AWT' 카테고리의 다른 글
이벤트 (0) | 2013.02.28 |
---|---|
Robot 클래스 (0) | 2013.02.28 |
GridBagLayout 과 GridBagConstraints (0) | 2013.02.28 |
(AWT) Inset , MenuShortcut (0) | 2013.02.28 |
Frame(AWT) (0) | 2013.02.26 |