import javax.swing.*;
import java.awt.Event.*;
import java.awt.*;
public class Main extends JFrame{
public Main() {
setDefaultCloseOperation(EXIT_ON_CLOSE);
c=getContentPane();
c.setLayout(null);
//버튼 두개 생성
JButton a=new JButton("Sixe up");
JButton a2=new JButton("Size down");
/* a.addActionListener(new MyActionListener());
a2addActionListener(new MyActionListener());*/
a.setLocation(105, 50);
a2.setLocation(205, 50);
a.setSize(50, 50);
a2.setSize(50, 50);
c.add(a);
c.add(a2);
//레이블
JLabel la=new JLabel("Love Java");
c.add(la);
la.setSize(25,25);
la.setLocation(30,30);
c.addAction
setSize(500,400);
setVisible(true);
}
class MyActionListener implements ActionListener{
public void actionPerformed(ActionListener e) {
}
}
Container c;
}