У меня есть парочка с Swing (interface).
«Hello World» с использованием Swing:
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.SwingUtilities;
public final class HelloWorld implements Runnable {
public static void main(String[] args) {
SwingUtilities.invokeLater (new HelloWorld());
}
public void run() {
JFrame f = new JFrame ("Hello, World!");
f.setDefaultCloseOperation (JFrame.DISPOSE_ON_CLOSE);
f.add(new JLabel("Hello World"));
f.pack();
f.setVisible(true);
}
}