[이한출판사] 자바프로그래밍(java programming) 9장,10장(9chapter,10chapter) 워크북(workbook)
- 등록일 / 수정일
- 페이지 / 형식
- 자료평가
- 구매가격
- 2013.04.11 / 2019.12.24
- 13페이지 / zip (압축파일)
- 평가한 분이 없습니다. (구매금액의 3%지급)
- 1,000원
추천 연관자료
- [이한출판사] 자바프로그래밍(java programming) 10장(10chapter) 연습문제
- [이한출판사] 자바프로그래밍(java programming) 6장(6chapter) 워크북(workbook)
- [이한출판사] 자바프로그래밍(java programming) 8장,11장(8chapter,11chapter) 워크북(workbook)
- [이한출판사] 자바프로그래밍(java programming) 3장(3chapter) 워크북(workbook)
- [이한출판사] 자바프로그래밍(java programming) 2장(2chapter) 워크북(workbook)
- 하고 싶은 말
-
[이한출판사] 자바프로그래밍(java programming) 9장 실습과제 1,3 하고
10장 실습과제 1,2입니다.
- 목차
-
chapter 09 실습 과제1.
◎ 구현
◎ 실험 평가
chapter 09 실습 과제3.
◎ 분석
◎ 구현
◎ 실험 평가
- 본문내용
-
import java.awt.*;
class Exam0901 extends Frame {
public Exam0901() {
super("화면 중앙에 배치");
this.setSize(300, 200);
Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
Dimension frm = this.getSize();
int xpos = (int)(screen.getWidth() - frm.getWidth()) / 2;
int ypos = (int)(screen.getHeight() - frm.getHeight()) / 2;
this.setLocation (xpos, ypos);
Button butt = new Button("프레임의 중앙");
Panel topPane = new Panel();
Panel middlePane = new Panel();
Panel bottomPane = new Panel();
middlePane.setSize(0,0);
middlePane.add(butt);
this.setLayout(new GridBagLayout());
this.add(topPane);
this.add(middlePane);
this.add(bottomPane);
}
public static void main(String[] ar) {
Exam0901 cp = new Exam0901();
cp.setVisible(true);
}
}
자료평가
-
아직 평가한 내용이 없습니다.