S
Soundar
Hi,
When i try to run the following swing example program using Eclipse
3.2, the program runs and shows a (tiny) window, but I get a warning
message in the class declaration:
import javax.swing.*;
public class IconFrame extends JFrame {
/ * warning message in the line above that says
The serializable class IconFrame does not declare a static final
serialVersionUID field of type long */
JButton load, save,subscribe,unsubscribe;
public IconFrame () {
super("Icon Frame");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setVisible(true);
}
public static void main(String[] args) {
IconFrame ike = new IconFrame();
}
}
Could someone please help me? Thanks.
When i try to run the following swing example program using Eclipse
3.2, the program runs and shows a (tiny) window, but I get a warning
message in the class declaration:
import javax.swing.*;
public class IconFrame extends JFrame {
/ * warning message in the line above that says
The serializable class IconFrame does not declare a static final
serialVersionUID field of type long */
JButton load, save,subscribe,unsubscribe;
public IconFrame () {
super("Icon Frame");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setVisible(true);
}
public static void main(String[] args) {
IconFrame ike = new IconFrame();
}
}
Could someone please help me? Thanks.