일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- GitHub 미러링
- GitLab Mirroring
- eslint-import-resolver-typescript
- 티스토리초대
- 프리티어
- 유니옥션
- 프레시업 #풀무원 #하루한병 #건강만들기 #풀무원 녹즙
- 니돈내먹
- Emmet
- 티스토리 초대장
- code 세팅
- 네이버 클라우드 플랫폼
- '티스토리 초대장/ 티스토리초대'
- visual studio code cli
- GitLab미러링
- 음료같은녹즙
- 초대장
- currentTimeMillis
- settings sync
- 실행시간 측정
- 티스토리 초대장/ 티스토리초대
- webstorm
- GitHub Mirroring
- gitlab 연동
- Path Alias
- react native #gradle
- code 설치
- React Native
- visual studio code
- code .
- Today
- Total
목록홍익대 Java/수업 (47)
방치하기
import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; public class DB extends JFrame { static Hashtable idTable; static int idNum=1; private JLabel jLabel1 = new JLabel("ID"); private JLabel jLabel2 ; private JTextField jTextField1 = new JTextField(8); private JTextArea jTextField5 = new JTextArea(); private JButton jButton1; private JButton jButton2; public DB() ..
import java.util.*; class Stu{ private String name; private int age; Stu(String name,int age) { this.name=name; this.age=age; } Stu(int age,String name) { this.name=name; this.age=age; } Stu() { } void setName(String name) { this.name=name; } String getName() { return name; } void setAge(int age) { this.age=age; } int getAge() { return age; } public String toString() { StringBuffer str=new Strin..
import java.util.*; class Stu{ private String name; private int age; Stu(String name,int age) { this.name=name; this.age=age; } Stu(int age,String name) { this.name=name; this.age=age; } Stu() { } void setName(String name) { this.name=name; } String getName() { return name; } void setAge(int age) { this.age=age; } int getAge() { return age; } public String toString() { StringBuffer str=new Strin..
import java.awt.*; import java.awt.event.*; import javax.swing.*; public class KeyDemo extends JFrame implements KeyListener { private String [] area={"한국","중국","미국","미국","일본","캐나다","호주","러시아","프랑스","사우디"}; private String line1; private JTextField text; private JLabel jh; public KeyDemo() { super( "Demonstrating Keystroke Events" ); jh=new JLabel("숫자를 입력하세요"); text=new JTextField(20); setLayout(..
import java.awt.*; import java.awt.event.*; import javax.swing.*; public class CalculatorGUI extends JFrame implements ActionListener{ JTextField lblPrint; Calculator cc = new Calculator(); boolean flag; public CalculatorGUI(String title){ super(title); JPanel panel = new JPanel(new BorderLayout()); lblPrint = new JTextField(); panel.add(lblPrint,BorderLayout.NORTH); JPanel panelCal= new JPanel(..
import javax.swing.*; import javax.swing.event.*; import java.util.*; public class ListTest extends JFrame { private JTextField text; private JList colorList; Random ra =new Random(System.currentTimeMillis()); private Container container; private final String colorNames[] = { "Black", "Blue", "Cyan", "Dark Gray", "Gray", "Green", "Light Gray", "Magenta", "Orange", "Pink", "Red", "White", "Yellow..
import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Add extends JFrame { private JButton addButton, printButton; Panel pan01,pan02; JTextField text01,text02; StringBuffer str=new StringBuffer(); public Add() { super( "이름추가" ); text01 = new JTextField( 5 ); text02 = new JTextField( 10 ); text02.setEditable(false); Container container = getContentPane(); container.setLay..
import java.awt.*; import java.awt.event.*; import javax.swing.*; public class TextFieldTest extends JFrame { static String string = ""; static String string2 = ""; private JTextField textField1, textField2, textField3; public TextFieldTest() { super( "Testing JTextField and JPasswordField" ); Container container = this.getContentPane(); container.setLayout( new GridLayout(3,2) ); JLabel label=n..
import java.awt.event.*; import java.awt.*; class Fram extends Frame { public Fram(){ super("윈도우 이벤트"); setLayout(null); Button btn=new Button("버튼"); btn.setBounds(50,50,16,10); add(btn); setSize(300,200); setVisible(true); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e){ dispose(); System.exit(0); } } ); } } class Frame2 extends Frame { public static void main(S..
import java.awt.event.*; import java.awt.*; class Fram extends Frame { Panel pan01,pan02,pan03; public Fram(){ super("윈도우 이벤트"); pan01 =new Panel(); pan02 =new Panel(); pan03 =new Panel(); pan01.setBackground(Color.green); pan02.setBackground(Color.red); pan03.setBackground(Color.black); add(BorderLayout.NORTH,pan01); add(BorderLayout.CENTER,pan02); add(BorderLayout.EAST,pan03); pan01.add(new Bu..