Topic: eclipse里怎么样从一个窗口打开另外一个窗口 |
Print this page |
1.eclipse里怎么样从一个窗口打开另外一个窗口 | Copy to clipboard |
Posted by: baohuazhang Posted on: 2004-07-26 14:04 我要点一个BUTTON, 弹出另外一个窗口. 我用 WindowA newA=new WindowA() newA.open() 但是总是得到一个EXCEPTION: org.eclipse.swt.SWTException: Invalid thread access at org.eclipse.swt.SWT.error(SWT.java:2691) at org.eclipse.swt.SWT.error(SWT.java:2616) at org.eclipse.swt.SWT.error(SWT.java:2587) at org.eclipse.swt.widgets.Display.checkDisplay(Display.java:568) at org.eclipse.swt.widgets.Display.create(Display.java:629) at org.eclipse.swt.graphics.Device.<init>(Device.java:99) at org.eclipse.swt.widgets.Display.<init>(Display.java:355) at org.eclipse.swt.widgets.Display.<init>(Display.java:351) at quoteAndBook.Login.button_Login_clicked(Login.java:103) at quoteAndBook.Login$1.widgetSelected(Login.java:82) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431) at quoteAndBook.Login.open(Login.java:96) at quoteAndBook.Login.main(Login.java:38) Exception in thread "main" 高手帮帮忙啊 |
2.Re:eclipse里怎么样从一个窗口打开另外一个窗口 [Re: baohuazhang] | Copy to clipboard |
Posted by: rick Posted on: 2004-07-27 13:54 你要把父窗口的display和shell实例传给子窗口! |
3.Re:eclipse里怎么样从一个窗口打开另外一个窗口 [Re: rick] | Copy to clipboard |
Posted by: baohuazhang Posted on: 2004-07-27 23:11 那么我要做一个CONSTRUCTOR 里有两个PARAMETER 吗? 我的两个都是APPLICATION 窗口, 对吗? 还是只能有一个APPLICATION窗口? 多谢!~ |
4.Re:eclipse里怎么样从一个窗口打开另外一个窗口 [Re: baohuazhang] | Copy to clipboard |
Posted by: baohuazhang Posted on: 2004-07-29 12:37 大家帮帮忙啊, 我是ECLIPSE 新手. 多谢了! |
5.Re:eclipse里怎么样从一个窗口打开另外一个窗口 [Re: baohuazhang] | Copy to clipboard |
Posted by: baohuazhang Posted on: 2004-08-02 11:13 帮帮忙啊, 我怎么样才可以啊 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |