Witam, zaczynam dopiero przygodę z Javą, mam pytanie odnośnie poniższego kodu, który generuje ostrzeżenie:
Description Resource Path Location Type
The serializable class BaseFrame does not declare a static final serialVersionUID field of type long Base.java /APP_2011_001/src line 15 Java Problem
Do tej pory programowałem w C#, nie wiem na czym polega problem?
import java.awt.EventQueue;
import javax.swing.JFrame;
public class Base {
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
new BaseFrame();
}
});
}
}
class BaseFrame extends JFrame {
public BaseFrame() {
super("System");
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setExtendedState(JFrame.MAXIMIZED_BOTH);
this.setVisible(true);
this.setResizable(false);
}
}