[자바 , java] 자판기프로그램, 밴딩머신
본 자료는 미리보기를 지원하지 않습니다.
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
해당 자료는 5페이지 까지만 미리보기를 제공합니다.
5페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

[자바 , java] 자판기프로그램, 밴딩머신에 대한 보고서 자료입니다.

본문내용

/****************************************************/
/* jdk 버젼 : jdk1.5.0_10
* 제작 툴 : Eclipse SDK 3.3.2
* 제작 일시 : 2008. 4. 17
* 기타 : Icons의 경우 인터넷이 연결이 느리거나 안되는 곳에선 그림이 안 나올 수 있습니다.
*/
/****************************************************/
import javax.swing.*;
import java.net.*;
import java.awt.*;
import java.awt.event.*;
public class VMachine extends JFrame implements ActionListener // JFrame, ActionListener 인터페이스를 상속
{

/**
*
*/
private static final long serialVersionUID = 1L;
int F_WIDTH=800,F_HEIGHT=800, selectNum=0,selectMoney=0,insertEnd = 0,temp=0;
JPanel Vendingpanel,showwindow_panel,keypad_panel,itemPanel,wantlist,menupanel,display_panel;
JButton but1,but2,but3,but4,but5,but6,but7,but8,but9,but0,butOK,butCancel,Item,Item2,Item3,Item4;
JButton wants[];
JTextArea display;
JLabel balance,Item_desc,Item_desc2,Item_desc3,Item_desc4;
ImageIcon icons,icons2,icons3,icons4;
String text="";
//------------//변수 설정 //---------------------------------------------------//
public VMachine() //생성자
{
super("12345679 홍길동"); // 자신의 학번과 이름
this.setLayout(new BorderLayout());
Vendingpanel = new JPanel(new BorderLayout());
showwindow_panel = new JPanel(new GridLayout());
menupanel = new JPanel(new GridLayout(5,1));
keypad_panel = new JPanel(new GridLayout(2,6));
itemPanel = new JPanel(new GridLayout(2,4));
display_panel = new JPanel(new BorderLayout());
wantlist = new JPanel(new GridLayout(1,4));
// Panel 생성예제 ( 추후, Button, Label들을 생성하여 Panel에 부착 )
//
//-------------------//키패드버튼 생성//--------------------------------------------//
but1 = new JButton("1");
but2 = new JButton("2"); // 버튼 생성 예제
but3 = new JButton("3");
but4 = new JButton("4");
but5 = new JButton("5");
but6 = new JButton("6");
but7 = new JButton("7");
but8 = new JButton("8");
but9 = new JButton("9");
but0 = new JButton("0");
//...
butOK= new JButton("OK");
butCancel = new JButton("Cancel");
//---------------- 구입목록버튼 생성 //
wants = new JButton[4];
for(int i = 0 ; i<=3; i++){
wants[i] = new JButton();
}
// 구입목록의 버튼 생성 예제
// -- 상황판 생성 -- //
display = new JTextArea("금액을 입력하여 주십시오",3,1);
// -- 잔액 표기-- //
balance = new JLabel("잔액 : 0");
  • 가격2,000
  • 페이지수17페이지
  • 등록일2008.05.18
  • 저작시기2008.4
  • 파일형식기타(java)
  • 자료번호#465191
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니