//import java.awt.*;
//import java.awt.event.*;
//import javax.swing.*;
//
//public class Main extends JFrame {
// private JLabel la = new JLabel("Love Java");
// public Main() {
// setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// Container c = getContentPane();
// c.setLayout(new FlowLayout());
// c.add(la);
// c.addKeyListener(new MyKeyListener());
// c.setFocusable(true);
// c.requestFocus();
// setSize(250, 250);
// setVisible(true);
// }
//
// class MyKeyListener extends KeyAdapter {
// public void keyPressed(KeyEvent e) {
// if(e.getKeyCode()==KeyEvent.VK_LEFT) {
// String str = la.getText();
// String a = ""; // 맨앞에서 맨 뒤-1까지의 문자열
// String b = ""; // 맨 뒤 문자열
// a = str.substring(0,8);
// b = str.substring(8,9);
//
// la.setText(b+a);
// }
// }
// }
//
//
// public static void main(String[] args) {
// new Main();
// }
//}
///*
//import java.awt.*;
//import java.awt.event.*;
//import javax.swing.*;
//
//public class Main extends JFrame {
// private JLabel la = new JLabel("Love Java");
// public Main() {
// setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// Container c = getContentPane();
// c.setLayout(new FlowLayout());
// c.add(la);
// la.addMouseWheelListener(new MymousewheelListener());
// la.setFont(new Font("Arial", Font.PLAIN, 10));
// setSize(250, 250);
// setVisible(true);
// }
//
// class MymousewheelListener implements MouseWheelListener{
// public void mouseWheelMoved(MouseWheelEvent e) {
// int n = e.getWheelRotation();
//
// Font f = la.getFont();
// int size = f.getSize();
//
// if(n<0) {
// if() {
// la.setFont(new Font("Arial", Font.PLAIN, size-5));
// }
//
// }
// else {
// la.setFont(new Font("Arial", Font.PLAIN, size+5));
// }
// }
// }
//
//
// public static void main(String[] args) {
// new Main();
// }
//}
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Main extends JFrame {
private JLabel la1 = new JLabel("0");
private JLabel la2 = new JLabel("0");
private JLabel la3 = new JLabel("0");
public Main() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Container c = getContentPane();
c.setLayout(new FlowLayout());
c.add(la1);
c.add(la2);
c.add(la3);
c.addKeyListener(new MyKeyListener());
c.setFocusable(true);
c.requestFocus();
setSize(250, 250);
setVisible(true);
}
class MyKeyListener extends KeyAdapter {
public void keyPressed(KeyEvent e) {
if()
}
}
public static void main(String[] args) {
new Main();
}
}



