mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
test++
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import javax.swing.*;
|
||||
import java.awt.event.WindowAdapter;
|
||||
import java.awt.event.WindowEvent;
|
||||
|
||||
final class Bug
|
||||
extends JFrame {
|
||||
public Bug() {
|
||||
foo(this);
|
||||
}
|
||||
|
||||
public static void foo(Bug anObject) {
|
||||
anObject.addWindowListener(anObject.new MyWindowListener());
|
||||
}
|
||||
|
||||
private class MyWindowListener
|
||||
extends WindowAdapter {
|
||||
public void windowActivated(WindowEvent e) {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user