mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
test++
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
|
||||
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>
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user