m*k
2 楼
我的eclipse 对如下报错误,必须comment掉@Override才行,我都要
疯了。
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
public class FooGUI {
public static void main(String[] args) {
//initialize GUI components
final JFrame jf = new JFrame("Hello world!"); //allows jf to be
accessed from inner class body
jf.add(new JButton("Click me"));
// pack and make visible on the Event-Dispatch Thread
SwingUtilities.invokeLater(new Runnable() {
@Override //不work, has to comment out
public void run(){
// TODO Auto-generated method stub
jf.pack(); //this would be a compile-time error if jf were
not final
jf.setLocationRelativeTo(null);
jf.setVisible(true);
}
});
}
}
疯了。
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
public class FooGUI {
public static void main(String[] args) {
//initialize GUI components
final JFrame jf = new JFrame("Hello world!"); //allows jf to be
accessed from inner class body
jf.add(new JButton("Click me"));
// pack and make visible on the Event-Dispatch Thread
SwingUtilities.invokeLater(new Runnable() {
@Override //不work, has to comment out
public void run(){
// TODO Auto-generated method stub
jf.pack(); //this would be a compile-time error if jf were
not final
jf.setLocationRelativeTo(null);
jf.setVisible(true);
}
});
}
}
n*g
3 楼
本人化工博士毕业,目前在绿卡筹备阶段,求文章杂志的审稿机会,自己发了些
editors 但是回复的都比较少, 主要研究方向是生物质能源,包括: biofuel,
biodiesel, thermochemical conversions, aerobic/anaerobic digestion,
fermentation. 可以站内信联系,也可以通过我的邮箱联系[email protected] 谢
谢大家!
editors 但是回复的都比较少, 主要研究方向是生物质能源,包括: biofuel,
biodiesel, thermochemical conversions, aerobic/anaerobic digestion,
fermentation. 可以站内信联系,也可以通过我的邮箱联系[email protected] 谢
谢大家!
T*U
5 楼
object class没有run method, 你怎么override?
【在 m*****k 的大作中提到】
: 我的eclipse 对如下报错误,必须comment掉@Override才行,我都要
: 疯了。
: import javax.swing.JButton;
: import javax.swing.JFrame;
: import javax.swing.SwingUtilities;
: public class FooGUI {
: public static void main(String[] args) {
: //initialize GUI components
: final JFrame jf = new JFrame("Hello world!"); //allows jf to be
: accessed from inner class body
【在 m*****k 的大作中提到】
: 我的eclipse 对如下报错误,必须comment掉@Override才行,我都要
: 疯了。
: import javax.swing.JButton;
: import javax.swing.JFrame;
: import javax.swing.SwingUtilities;
: public class FooGUI {
: public static void main(String[] args) {
: //initialize GUI components
: final JFrame jf = new JFrame("Hello world!"); //allows jf to be
: accessed from inner class body
n*g
6 楼
本人化工博士毕业,目前在绿卡筹备阶段,求文章杂志的审稿机会,自己发了些
editors 但是回复的都比较少, 主要研究方向是生物质能源,包括: biofuel,
biodiesel, thermochemical conversions, aerobic/anaerobic digestion,
fermentation. 可以站内信联系,也可以通过我的邮箱联系[email protected] 谢
谢大家!
editors 但是回复的都比较少, 主要研究方向是生物质能源,包括: biofuel,
biodiesel, thermochemical conversions, aerobic/anaerobic digestion,
fermentation. 可以站内信联系,也可以通过我的邮箱联系[email protected] 谢
谢大家!
z*3
8 楼
我可以
提示什么错误?
提示什么错误?
N*m
12 楼
are you using java 1.5?
【在 m*****k 的大作中提到】
: 我的eclipse 对如下报错误,必须comment掉@Override才行,我都要
: 疯了。
: import javax.swing.JButton;
: import javax.swing.JFrame;
: import javax.swing.SwingUtilities;
: public class FooGUI {
: public static void main(String[] args) {
: //initialize GUI components
: final JFrame jf = new JFrame("Hello world!"); //allows jf to be
: accessed from inner class body
【在 m*****k 的大作中提到】
: 我的eclipse 对如下报错误,必须comment掉@Override才行,我都要
: 疯了。
: import javax.swing.JButton;
: import javax.swing.JFrame;
: import javax.swing.SwingUtilities;
: public class FooGUI {
: public static void main(String[] args) {
: //initialize GUI components
: final JFrame jf = new JFrame("Hello world!"); //allows jf to be
: accessed from inner class body
w*z
16 楼
override interface is the new feature added for jdk 6, double check your
Eclipse setting, by default it is using jdk 5 to compile.
【在 m*****k 的大作中提到】
: Multiple markers at this line
: - implements java.lang.Runnable.run
: - The method run() of type new Runnable(){} must override a superclass
: method
: I believe my eclipse messed up,
: I restarted eclipse, same error.
: I will restart my win and see,
Eclipse setting, by default it is using jdk 5 to compile.
【在 m*****k 的大作中提到】
: Multiple markers at this line
: - implements java.lang.Runnable.run
: - The method run() of type new Runnable(){} must override a superclass
: method
: I believe my eclipse messed up,
: I restarted eclipse, same error.
: I will restart my win and see,
z*3
17 楼
我觉得楼上说得有道理
去preference->java->compiler里面看看
我的同事也有过类似的问题
当时就查java版本,默认是1.4
放狗搜出来的这句话我很喜欢
“This byzantine menu / dialog interface is typical of Eclipse's poor UI
design.”
【在 m*****k 的大作中提到】
: Multiple markers at this line
: - implements java.lang.Runnable.run
: - The method run() of type new Runnable(){} must override a superclass
: method
: I believe my eclipse messed up,
: I restarted eclipse, same error.
: I will restart my win and see,
去preference->java->compiler里面看看
我的同事也有过类似的问题
当时就查java版本,默认是1.4
放狗搜出来的这句话我很喜欢
“This byzantine menu / dialog interface is typical of Eclipse's poor UI
design.”
【在 m*****k 的大作中提到】
: Multiple markers at this line
: - implements java.lang.Runnable.run
: - The method run() of type new Runnable(){} must override a superclass
: method
: I believe my eclipse messed up,
: I restarted eclipse, same error.
: I will restart my win and see,
m*k
18 楼
it shows 1.6, wtf.
相关阅读
求教大侠,如何分离铜和银?PhD openings in Process Control, University of Alberta, Can请各位朋友推荐几本书请问有人了解伯克利化工系的硕士项目吗HAPPY NIU YEAR~~~~请问这个图是什么东东?生物?化学???a question about Raman, Thanks (转载)请教:这种设备叫啥名字?这里有没有拿到NAM 21 Kokes Award的同学?PhD Position Available at University of Wisconsin-Milwaukee沉痛悼念汪家鼎院士这个大学怎么样 (转载)有机薄膜太阳能电池有没有前途? 相比CdTe等半导体谁知道在Matlab中怎样给符号加accent?各位牛人.请帮忙看看(ad@cmu)财富前20问个nyquist图的问题asking for an offer choice for a friend (UIC VS UNL) 求助--找工作请问各位学化工的师兄