일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- GitHub Mirroring
- 실행시간 측정
- visual studio code cli
- code .
- currentTimeMillis
- webstorm
- 프리티어
- '티스토리 초대장/ 티스토리초대'
- react native #gradle
- 프레시업 #풀무원 #하루한병 #건강만들기 #풀무원 녹즙
- Emmet
- GitLab미러링
- settings sync
- 티스토리 초대장
- 티스토리 초대장/ 티스토리초대
- gitlab 연동
- code 세팅
- Path Alias
- React Native
- GitHub 미러링
- visual studio code
- 초대장
- 티스토리초대
- 음료같은녹즙
- eslint-import-resolver-typescript
- 네이버 클라우드 플랫폼
- GitLab Mirroring
- 니돈내먹
- 유니옥션
- code 설치
- Today
- Total
목록홍익대 Java (54)
방치하기
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 java.awt.*; import java.awt.event.*; import javax.swing.*; public class Calculator extends JFrame { static int c; static int i=0; StringBuffer mem01=new StringBuffer(); StringBuffer mem02=new StringBuffer(); char mem03='v'; char [] in=new char [10]; //숫자 입력받는곳 private JTextField input; //각 버튼들 private Button []btn = new Button[23]; //각 버튼에 들어갈 이름 private String btnText[] = { "BackSpace", ..
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..