when gf clickeddiscuss all things java
import javax.swing.*;
import java.awt.*;
public class SalutonFrame extends JFrame {
public SalutonFrame () {
super("Java");
setSize(350, 100);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setVisible(true);
FlowLayout flo = new FlowLayout();
setLayout(flo);
JLabel hi = new JLabel("discus all things java");
add(hi);
}
public static void main(String[] args) {
SalutonFrame sal = new SalutonFrame();
}
}
enjoy
Offline
There is already an Official Java Topic.
Offline
Since it looks like a topic for this already exists (link), let's use the older one instead.
Closing...
Offline