import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Main extends JFrame{
public Main() {
setTitle("아씨 어지러워");
setDefaultCloseOperation(EXIT_ON_CLOSE);
Container c = getContentPane();
setSize(1000,1000);
setVisible(true);
c.add(new MyPanel(), BorderLayout.SOUTH);
}
class MyPanel extends Panel{
private JButton b = new JButton("ㅎㅏㄱ ㅂ ㅓ ㄴ");
private JTextField t = new JTextField(10);
public MyPanel() {
add(b);
add(t);
t.addKeyListener(new KeyListener() {
public void keyTyped(KeyEvent e) {
e.consume();
}
@Override
public void keyPressed(KeyEvent e) {
// TODO Auto-generated method stub
}
@Override
public void keyReleased(KeyEvent e) {
// TODO Auto-generated method stub
}
});
}}public static void main(String[] args) {
new Main();
}}