mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
22 lines
382 B
Java
22 lines
382 B
Java
import javax.swing.*;
|
|
import java.io.InputStream;
|
|
import java.io.PrintStream;
|
|
|
|
abstract class A {
|
|
protected PrintStream myPrinter;
|
|
|
|
protected void fo<caret>oBar() {
|
|
myPrinter.println("hello");
|
|
}
|
|
}
|
|
|
|
class B extends A {
|
|
public void foo() {
|
|
SwingUtilities.invokeLater(new Runnable() {
|
|
public void run() {
|
|
myPrinter.println("hello");
|
|
}
|
|
});
|
|
}
|
|
}
|