admin管理员组文章数量:1026989
I've been trying to get tests running for my project but every time I run it it gives me an error
protected void setUp() throws Exception {
super.setUp();
setAdapter(new MainClassAdapter(Login.class));
Window window = getMainWindow();
}
This is the code for my setup, it has an error when it tries to getMainWindow(). It's a maven project, the login class is setup and is running, here is the code that displays the window:
public static void main(String[] args) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Login().setVisible(true); System.out.println("window showingg");
}
});
}
Could anyone help me figure out what's going on? Thanks
I've been trying to get tests running for my project but every time I run it it gives me an error
protected void setUp() throws Exception {
super.setUp();
setAdapter(new MainClassAdapter(Login.class));
Window window = getMainWindow();
}
This is the code for my setup, it has an error when it tries to getMainWindow(). It's a maven project, the login class is setup and is running, here is the code that displays the window:
public static void main(String[] args) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Login().setVisible(true); System.out.println("window showingg");
}
});
}
Could anyone help me figure out what's going on? Thanks
本文标签: javaHow do I fix the quotNo window was shownquot error in uispecj4Stack Overflow
版权声明:本文标题:java - How do I fix the "No window was shown" error in uispecj4? - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745662342a2161966.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论