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 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 我的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 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 我的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 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 我的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 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 我的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 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 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 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 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 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 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 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 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.
相关阅读
anyone looking for a faculty position in Chem Eng?化工PHD求职干了很多苦活累活前任老板发文章不写我的名字怎么半锂电池的工作机会那个包装用的泡沫是什么做的,有毒没有?Amex SPG卡送25K points 免费送500刀现金 最佳酒店卡exxonmobil是不是graduate recruit只从target学校招人?求审稿/材料和能源方向, 陶瓷材料,燃料电池,制氢,俚电池,催化,MEMSKg级化工原料的价格哪里可以查到?Ing Direct checking account免费送50刀,赶紧申请AICHE求合住(女)求教萃取剂的选择 (转载)啊呀我来迟了PhD 找工作求推荐美国科学家供过于求 多面临失业或转行AICHE征室友pH计选择学校请教Postdoc Position Polymer membrane各位达人,拜托了