R
Richie
I heard that sun system recommends that following java code placed in
the main method to conform to the j2se 1.5 standard or convention. I am
using eclipse 3.1. How do i make eclipse insert the
eventqueue.invokelater statement in main method every time i create a
new project or a new item that requires a main method?
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new anyobject().setVisible(true);
}
});
}
the main method to conform to the j2se 1.5 standard or convention. I am
using eclipse 3.1. How do i make eclipse insert the
eventqueue.invokelater statement in main method every time i create a
new project or a new item that requires a main method?
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new anyobject().setVisible(true);
}
});
}