import java.awt.EventQueue;
import javax.swing.JFrame;
public class tatat extends JFrame {
private static final long serialVersionUID = 1L;
public static void main(String args[]) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
tatat frame = new tatat();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
public tatat() {
super();
setBounds(100, 100, 500, 375);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
}
I'm new to java. I'm confused on how to bring "public tatat ()" into the main method above without writing a separate statement as shown above? Please advise. Thanks.