본문 바로가기

Java

(16)
19. 회원관리 Swing 앱 :: AdminController.java 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768package com.hanbit.oop.controller; import javax.swing.JOptionPane; import com.hanbit.oop.domain.MemberBean;import com.hanbit.oop.service.AdminService;import com.hanbit.oop.serviceImpl.AdminServiceImpl; public class AdminController {public static void main(String[] args) ..
19. 회원관리 Swing 앱 :: EmployeeUI.java 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 12..
[자바 Swing] 로또 LottoMain.java LottoUI.java Lotto.java 12345678package lotto; public class LottoMain { public static void main(String[] args) { LottoUI ui = new LottoUI(); ui.init(); }}Colored by Color Scriptercs 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778package lotto; import java.awt.BorderLayout;import java.awt.event.ActionEvent;import java.awt..
[자바 객체지향] 인터페이스 활용한 가위바위보 게임 Rps.java Game 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 package jse.alabama.rps; import lombok.Data; @Data public class Game { int rock; int paper; int scissors; int comVal; String rpsVal; public void setRpsVal(int val) { switch (val) { case 1: rpsVal = "rock";break; case 2: rpsVal = "paper";break; case 3: rpsVal = "scissors";break; default:break; } } public void setComVal() { this.c..
[자바 객체지향] 인터페이스 예제 Bank.java Account.java 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 package jse.alabama.bank; import lombok.Data; @Data public class Account { protected int accountNo; protected String ownerName; private String password; protected int restMoney; protected static final String BANK_NAME = "한빛뱅크"; public Account() { this.accountNo = (int) ((Math.random() * 999999) + 100000); } @..
[자바 알고리즘] 행렬을 이용한 풀이 Lotto.java 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111package lotto; import java.util.Arrays; public class Lotto { private int money, balanceMoney; private int[][] lottos; //int[][] arr; int[] arr; public void setMoney(int mone..
40. 회원관리 Swing 앱 :: MemberView.java 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120package com.jse.member; import java.awt.Container;import java.awt.Font;import javax.swing.JButton;import javax.swing.JFrame;import javax.swing.JLa..
19. 회원관리 Swing 앱 :: MemberSwing.java 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667package com.jse.member; import java.awt.GridLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener; import javax.swing.*; public class MemberSwing { public static void main(String[] args) { JoinFrame jf = new JoinFrame(); jf.execute(); }}class JoinFr..