JFrame myframe = new JFrame("My Sample Frame");
JButton mybutton = new JButton("Okay");
누군가 나에게이 부분을 설명해 줄 수 있습니까?JFrame ActionListener
mybutton.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evt){
//Assuming that the content here will do something.
}
방문 (http://stackoverflow.com/questions/5335161/how-does-this-method-work) –