Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- 화이자백신
- 크롬 인터넷연결
- 코로나백신 어지러움
- 신주쿠 로컬식당
- 윈도우10 vpn
- windows10 크롬
- 핸드폰 찾기
- 성수족발
- cisco vpn
- 안드로이드폰 위치
- 신주쿠맛집
- Windows10
- 타카마루
- 크롬 타임아웃
- 강화 프로방스
- 노리로또
- 오라클
- 코로나백신
- 코로나백신 부작용
- windows10 cisco vpn
- 10원단위 올림
- 로니세라
- 분기날짜
- 코로나백신이상증상
- takanaru
- 10 올림
- 코로나백신 갈증
- 크롬 인너넷연결 안됨
- 응용 프로그램 내 구입
- 랍스터 찜
Archives
- Today
- Total
이거 맘대로 되는 세상이 아니구만...
Swing4(EtchedBorder ) 본문
반응형
▶▶▶EtchedBorder 테두리
EtchedBorder : 평면에 끌로 판듯이 외곽선 효과를 냄
☆☆생성자
☆EtchedBorder ()
음각 에칭 보더를 작성합니다.
☆EtchedBorder (Color highlight, Color shadow)
음각 에칭 보더를, 지정된 하이라이트 및 음영의 컬러로 작성합니다.
☆EtchedBorder (int etchType)
지정된 타입의 에칭 보더를 작성합니다.
☆EtchedBorder (int etchType, Color highlight, Color shadow)
에칭 보더를, 지정된 타입, 하이라이트 및 음영의 컬러로 작성합니다
etchType - 보더가 렌더링 하는 에칭의 타입
highlight - 에칭의 하이라이트에 사용하는 컬러
shadow - 에칭의 음영에 사용하는 컬러
EtchedBorder(int etchType) 타입은 EtchedBorder.RAISED, EtchedBorder.LOWERED이다.
import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;
public class Test extends JFrame{
JButton b1,b2,b3,b4,b5;
EtchedBorder a,b,c,d,e;
Test(){
Container cp=getContentPane();
cp.setLayout(new GridLayout(3,3));
b1=new JButton("11111111");
b2=new JButton("22222222");
b3=new JButton("33333333");
b4=new JButton("44444444");
b5=new JButton("55555555");
a=new EtchedBorder();
b=new EtchedBorder(EtchedBorder.RAISED);
c=new EtchedBorder(EtchedBorder.LOWERED);
d=new EtchedBorder(Color.BLACK,Color.YELLOW);
e=new EtchedBorder(EtchedBorder.RAISED,Color.GREEN,Color.BLUE);
add(b1);add(b2);add(b3);add(b4);add(b5);
b1.setBorder(a);b2.setBorder(b);
b3.setBorder(c);b4.setBorder(d);
b5.setBorder(e);
}
public static void main(String[] args) {
Test t=new Test();
t.setSize(400,400);
t.setVisible(true);
}
}
EtchedBorder : 평면에 끌로 판듯이 외곽선 효과를 냄
☆☆생성자
☆EtchedBorder ()
음각 에칭 보더를 작성합니다.
☆EtchedBorder (Color highlight, Color shadow)
음각 에칭 보더를, 지정된 하이라이트 및 음영의 컬러로 작성합니다.
☆EtchedBorder (int etchType)
지정된 타입의 에칭 보더를 작성합니다.
☆EtchedBorder (int etchType, Color highlight, Color shadow)
에칭 보더를, 지정된 타입, 하이라이트 및 음영의 컬러로 작성합니다
etchType - 보더가 렌더링 하는 에칭의 타입
highlight - 에칭의 하이라이트에 사용하는 컬러
shadow - 에칭의 음영에 사용하는 컬러
EtchedBorder(int etchType) 타입은 EtchedBorder.RAISED, EtchedBorder.LOWERED이다.
import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;
public class Test extends JFrame{
JButton b1,b2,b3,b4,b5;
EtchedBorder a,b,c,d,e;
Test(){
Container cp=getContentPane();
cp.setLayout(new GridLayout(3,3));
b1=new JButton("11111111");
b2=new JButton("22222222");
b3=new JButton("33333333");
b4=new JButton("44444444");
b5=new JButton("55555555");
a=new EtchedBorder();
b=new EtchedBorder(EtchedBorder.RAISED);
c=new EtchedBorder(EtchedBorder.LOWERED);
d=new EtchedBorder(Color.BLACK,Color.YELLOW);
e=new EtchedBorder(EtchedBorder.RAISED,Color.GREEN,Color.BLUE);
add(b1);add(b2);add(b3);add(b4);add(b5);
b1.setBorder(a);b2.setBorder(b);
b3.setBorder(c);b4.setBorder(d);
b5.setBorder(e);
}
public static void main(String[] args) {
Test t=new Test();
t.setSize(400,400);
t.setVisible(true);
}
}
반응형
Comments