JAVA 编程问题。。。急

来源:百度知道 编辑:UC知道 时间:2024/05/18 09:26:39
C:\jdk1.1.1\bin>javac AssemblerPanel.java
AssemblerPanel.java:12: Class javax.swing.JLabel not found in import.
import javax.swing.JLabel;
^
AssemblerPanel.java:13: Class javax.swing.JPanel not found in import.
import javax.swing.JPanel;
^
AssemblerPanel.java:14: Class javax.swing.JScrollPane not found in import.
import javax.swing.JScrollPane;
^
AssemblerPanel.java:15: Class javax.swing.JTextArea not found in import.
import javax.swing.JTextArea;
^
AssemblerPanel.java:17: Superclass javax.swing.JPanel of class cpu09.frame.Assem
blerPanel not found.
public class AssemblerPanel extends JPanel
^
AssemblerPanel.java:21: Duplicate variable declaration: AssemblerPanel this$0 wa
s cpu09.frame.AssemblerPanel this$0
final AssemblerPanel this$0;
^
AssemblerPanel.jav

的确是JDK太久了,JDK1.1的时候还没有Swing包,建议还是先下载最新的JDK6吧(1.4和5也都可以)

import javax.swing.*;
应该加这个吧,引如SWING包!

贴出你的源代码来看看

建议你写程序用工具会方便得多

好复杂哦!!