मेरे पास शीर्षक में दिया गया चेतावनी संदेश है। मैं इसे समझना और हटाना चाहता हूं। मुझे इस प्रश्न पर पहले से ही कुछ जवाब मिले हैं लेकिन तकनीकी शर्तों के साथ अधिभार के कारण मुझे इन उत्तरों को समझ में नहीं आता है। क्या सरल शब्दों के साथ इस मुद्दे को समझाना संभव है?इसका क्या अर्थ है: धारावाहिक वर्ग स्थिर स्थिर धारावाहिक VERSIONUID फ़ील्ड घोषित नहीं करता है?
पीएस मुझे पता है कि ओओपी क्या है। मुझे पता है वस्तु, वर्ग, विधि, क्षेत्र और तत्काल क्या है।
पी.पी.एस. किसी ने मेरी कोड की जरूरत है इसे यहाँ है:
import java.awt.*;
import javax.swing.*;
public class HelloWorldSwing extends JFrame {
JTextArea m_resultArea = new JTextArea(6, 30);
//====================================================== constructor
public HelloWorldSwing() {
//... Set initial text, scrolling, and border.
m_resultArea.setText("Enter more text to see scrollbars");
JScrollPane scrollingArea = new JScrollPane(m_resultArea);
scrollingArea.setBorder(BorderFactory.createEmptyBorder(10,5,10,5));
// Get the content pane, set layout, add to center
Container content = this.getContentPane();
content.setLayout(new BorderLayout());
content.add(scrollingArea, BorderLayout.CENTER);
this.pack();
}
public static void createAndViewJFrame() {
JFrame win = new HelloWorldSwing();
win.setTitle("TextAreaDemo");
win.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
win.setVisible(true);
}
//============================================================= main
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable(){
public void run(){
createAndViewJFrame();
}
});
}
}
क्या यह हो सकता है कि चर्चा की गई चेतावनी संदेश एक कारण है कि मेरा जीयूआई आवेदन स्थिर हो गया है? – Roman
नहीं, आपके गुई ठंड के साथ कुछ भी नहीं करना है। – james
डुप: http://stackoverflow.com/questions/285793/why-should-i-bother-about-serialversionuid – skaffman