import jave.swing.* at begining
解决方案 »
- 请问如何实现在console多行输入command
- 数据结构的意义
- ResultSet的getDate()方法从mysql的日期字段中取出的值为什么只有年月日,没有时分秒啊?
- 按钮添加事件
- 关于正则表达式的问题
- !!!!!各位大哥,小弟急求JasperReports与ireport的详细文档
- 一个简单的词法分析器的 问题
- 在Intellij IDEA中如何调用swing explorer插件
- 请问哪位写过将当前web 页面保存为其它格式的文件,如Excel,word 等其它格式
- Visual J++ 、jbuilder、oracle 9i jdev哪个好用?能具体地说说他们的区别吗?
- 我现在要开发一个WEB应用程序,我应该如何设计我的异常处理呢?
- JAVA连接SQL SERVER数据库的怪问题
[email protected]
import javax.swing.*;
import javax.swing.*;
应该写 import javax.swing.JOptionPanejava.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JOptionPane
//====================Hello4.java================
import javax.swing.JOptionPane;
public class Hello4
{
public static void main(String args[])
{
JOptionPane.showMessageDialob(null,"Hello!\nJava!")
System.exit(0);
}
}
就剩hello4.java:2:class javax.swing.joptionpane not found in import.一个错误了
加上
import javax.swing.*;
一样报错
要么你干脆用import jave.swing.* ;
掉了分号
public class Hello4
{
public static void main(String args[])
{
JOptionPane.showMessageDialog(null,"Hello!\nJava!");
System.exit(0);
}
}
//====================Hello4.java================
import javax.swing.*;
import javax.swing.JOptionPane;
public class Hello4
{
public static void main(String args[])
{
JOptionPane.showMessageDialog(null,"Hello!\nJava!");
System.exit(0);
}
}
提示:Package javax.swing not found in import.
建议你重新安装一个版本高的jdk.现在大家都用jdk1.4了.
可能是你的版本低吧.版本区分有awt 和swing 的分别,
可能就是这里的错误!
awt 和swing 我装哪个?