/*
import java.awt.*;
class Frame01 extends Frame{
Button b1,b2,b3,b4 ;
public Frame01(String str){
super(str);
setSize(400, 400); //this 가 생략된 상태 (constructor안임으로)
setLocation(100, 100); //this 가 생략된 상태 (constructor안임으로)
setVisible(true);
}
}
public class Layout01 {
public static void main(String[] args) {
new Frame01("Frame01");
}
}
**/
/*
import java.awt.*;
class Frame01 extends Frame{
//Button b1,b2,b3,b4 ;
public Frame01(String str){
super(str);
add(new Button("Button 1"));
add(new Button("Button 2"));
add(new Button("Button 3"));
add(new Button("Button 4"));
setSize(400, 400);
setLocation(100, 100);
setVisible(true);
}
}
**/
/*
//FlowLayout
import java.awt.*;
class Frame01 extends Frame{
public Frame01(String str){
super(str);
setLayout(new FlowLayout());
add(new Button("Button 1"));
add(new Button("Button 2"));
add(new Button("Button 3"));
add(new Button("Button 4"));
setSize(400, 400);
setLocation(100, 100);
setVisible(true);
}
}
public class Layout01 {
public static void main(String[] args) {
new Frame01("Frame01");
}
}**/
/*
//FlowLayout
import java.awt.*;
class Frame01 extends Frame{
public Frame01(String str){
super(str);
setLayout(new FlowLayout(FlowLayout.LEFT,50,50));
add(new Button("Button 1"));
add(new Button("Button 2"));
add(new Button("Button 3"));
add(new Button("Button 4"));
setSize(400, 400);
setLocation(100, 100);
setVisible(true);
}
}
public class Layout01 {
public static void main(String[] args) {
new Frame01("Frame01");
}
}**/
/*
//BorderLayout
import java.awt.*;
class Frame01 extends Frame{
public Frame01(String str){
super(str);
//setLayout(new FlowLayout(FlowLayout.LEFT,50,50));
add(new Button("Button 1"), BorderLayout.NORTH);
add(new Button("Button 2"), BorderLayout.SOUTH);
add(new Button("Button 3"), BorderLayout.EAST);
add(new Button("Button 4"),BorderLayout.WEST);
add(new Button("Button 5"),BorderLayout.CENTER);
setSize(400, 400);
setLocation(100, 100);
setVisible(true);
}
}
public class Layout01 {
public static void main(String[] args) {
new Frame01("Frame01");
}
}**/
/*
//BorderLayout
import java.awt.*;
class Frame01 extends Frame{
public Frame01(String str){
super(str);
setLayout(new BorderLayout(20,20));
add(new Button("Button 1"), BorderLayout.NORTH);
add(new Button("Button 2"), BorderLayout.SOUTH);
add(new Button("Button 3"), BorderLayout.EAST);
add(new Button("Button 4"),BorderLayout.WEST);
add(new Button("Button 5"),BorderLayout.CENTER);
setSize(400, 400);
setLocation(100, 100);
setVisible(true);
}
}
public class Layout01 {
public static void main(String[] args) {
new Frame01("Frame01");
}
}*/
//GridLayout
import java.awt.*;
class Frame01 extends Frame{
public Frame01(String str){
super(str);
//setLayout(new GridLayout(3,2));
setLayout(new GridLayout(3,2,20,20));
add(new Button("Button 1"));
add(new Button("Button 2"));
add(new Button("Button 3"));
add(new Button("Button 4"));
add(new Button("Button 5"));
setSize(400, 400);
setLocation(100, 100);
setVisible(true);
}
}
public class Layout01 {
public static void main(String[] args) {
new Frame01("Frame01");
}
}
- 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 |
