/*
import java.awt.*;
public class Test001 {
public static void main(String[] args) {
Frame f =new Frame("TEST"); //선언만된 상태(작업표시줄 내용)
//f.setSize(400, 400);
//f.setLocation(100, 100);
//f.show(); //예전버전
f.setBounds(100, 100, 400, 400);
f.setVisible(true);
}
}
**/
/*
import java.awt.*;
public class Test001 {
static Frame f=null;
public static void main(String[] args) {
f =new Frame("TEST"); //선언만된 상태(작업표시줄 내용)
//f.setSize(400, 400);
//f.setLocation(100, 100);
//f.show(); //예전버전
Button b1 = new Button("버튼1");
f.add(b1);
f.setBounds(100, 100, 400, 400);
f.setVisible(true);
}
}**/
/*
import java.awt.*;
public class Test001 {
static Frame f=null;
public static void main(String[] args) {
f =new Frame("TEST"); //선언만된 상태(작업표시줄 내용)
FlowLayout fw = new FlowLayout();
f.setLayout(fw); //가운데정렬
Button b1 = new Button("버튼1");
f.add(b1);
f.setBounds(100, 100, 400, 400);
f.setVisible(true);
}
}**/
/*
import java.awt.*;
public class Test001 {
static Frame f=null;
public static void main(String[] args) {
f =new Frame("TEST"); //선언만된 상태(작업표시줄 내용)
FlowLayout fw = new FlowLayout();
f.setLayout(fw); //가운데정렬 + 윈도우 사이즈가 작아지면 위치 및 배열이 자동으로 바뀜.
Button b1 = new Button("버튼1");
Button b2 = new Button("버튼2");
Button b3 = new Button("버튼3");
Button b4 = new Button("버튼4");
Button b5 = new Button("버튼5");
Button b6 = new Button("버튼6");
f.add(b1);
f.add(b2);
f.add(b3);
f.add(b4);
f.add(b5);
f.add(b6);
f.setBounds(100, 100, 400, 400);
f.setVisible(true);
}
}**/
import java.awt.*;
public class Test001 {
static Frame f=null;
public static void main(String[] args) {
f =new Frame("TEST"); //선언만된 상태(작업표시줄 내용)
// FlowLayout fw = new FlowLayout();
f.setLayout(new FlowLayout());
// Button b1 = new Button("버튼1");
// Button b2 = new Button("버튼2");
// Button b3 = new Button("버튼3");
// Button b4 = new Button("버튼4");
// Button b5 = new Button("버튼5");
// Button b6 = new Button("버튼6");
f.add(new Button("버튼1"));
f.add(new Button("버튼2"));
f.add(new Button("버튼3"));
f.add(new Button("버튼4"));
f.add(new Button("버튼5"));
f.add(new Button("버튼6")); // 다시 쓸일이 없을 경우
// 불필요한 객체정의 보단 바로 값을 넣는다.
f.setBounds(100, 100, 400, 400);
f.setVisible(true);
}
}
- Open in Google Docs Viewer
- Open link in new tab
- Open link in new window
- Open link in new incognito window
- Download file
- Copy link address
- Edit PDF File on PDFescape.com
element
| Font | |
|---|---|
| font-family | |
| font-size | |
| font-style | |
| font-variant | |
| font-weight | |
| letter-spacing | |
| line-height | |
| text-decoration | |
| text-align | |
| text-indent | |
| text-transform | |
| white-space | |
| word-spacing | |
| color | |
| Background | |
| bg-attachment | |
| bg-color | |
| bg-image | |
| bg-position | |
| bg-repeat | |
| Box | |
| width | |
| height | |
| border-top | |
| border-right | |
| border-bottom | |
| border-left | |
| margin | |
| padding | |
| max-height | |
| min-height | |
| max-width | |
| min-width | |
| outline-color | |
| outline-style | |
| outline-width | |
| Positioning | |
| position | |
| top | |
| bottom | |
| right | |
| left | |
| float | |
| display | |
| clear | |
| z-index | |
| List | |
| list-style-image | |
| list-style-type | |
| list-style-position | |
| Table | |
| vertical-align | |
| border-collapse | |
| border-spacing | |
| caption-side | |
| empty-cells | |
| table-layout | |
| Effects | |
| text-shadow | |
| -webkit-box-shadow | |
| border-radius | |
| Other | |
| overflow | |
| cursor | |
| visibility |
