JAVA 그림판
- 최초 등록일
- 2011.09.05
- 최종 저작일
- 2010.04
- 20페이지/ 압축파일
- 가격 1,000원
소개글
JAVA 소스입니다
목차
프로그램 기능
컴파일 및 실행화면
버튼설명
프로그램 소스
프로젝트를 마치면서(후기)
본문내용
프 로 그 램 의 기 능
그림판을 주제로 인터넷에서 있는 그림판 프로그램을 참고해서 응용
색이 채워져 있는 직사각형, 비어있는 직사각형, 색이 채워져 있는 원, 비어있는 원, 펜, 지우개 기능
컴 파 일 및 실 행 화 면
컴파일 결과 오류 없음
버 튼 설 명
색버튼
도형
-직사각형
-원
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.*;
public class Paint extends JApplet
implements MouseListener,MouseMotionListener, ActionListener {
private int x=100, y=25, newX=0, newY=0; //좌표를 얻기 위한 변수
private Graphics g; //그리기를 수행하는 변수
private JButton redJButton, blueJButton, orangeJButton, yellowJButton,
greenJButton, cyanJButton, grayJButton, whiteJButton, magentaJButton,
pinkJButton, blackJButton, lightGrayJButton;
private JButton rectangleJButton, ovalJButton,fillRectangleJButton,
fillOvalJButton, eraserJButton, penJButton;
참고 자료
없음
압축파일 내 파일목록
Paint.class
Paint.html
Paint.java
자바 프로젝트 2003.ppt