Files
openide/java/java-tests/testData/refactoring/extractMethod/AnonInner.java
Dmitry Jemerov b7e66aee44 test++
2009-09-10 20:21:16 +04:00

22 lines
462 B
Java

import javax.swing.*;
import java.awt.event.ActionEvent;
public class ExtractMethods { }
abstract class MyButton
extends JButton
{
protected MyButton( String text ) {
super( text );
}
}
class Foo {
private JButton createOKButton() {
return new MyButton( "OK" ) {
public void actionPerformed( ActionEvent e ) {
<selection> setVisible( false ); </selection>
}
};
}
}