Results 1 to 1 of 1
- 01-25-2012, 03:58 PM #1
Member
- Join Date
- Jan 2012
- Posts
- 1
- Rep Power
- 0
Getting reference to application's Display
Hello!
I need to get control over application window (Eclipse in my case) which I'm starting in a thread in my application like this:
Thread thread = new Thread(new Runnable() {
public void run() {
org.eclipse.equinox.launcher.Main.main(new String[0]);
}
});
thread.start();
As far as I understand there are 2 ways to create a window in SWT:
1) Display d = Display.getDefault();
shell = new Shell(d);
2) Display myDisplay = new Display();
shell = new Shell(myDisplay);
There's no problem to access application's window (Shell) in first case from another thread (by calling the same Display.getDefault() ). But I'm having difficulties to deal with 2nd scenario (which Eclipse seems to use).
Could anyone help me to solve this problem?
Similar Threads
-
Import image to embedded database and display into application?
By ogre in forum New To JavaReplies: 29Last Post: 01-07-2012, 05:05 PM -
How to display a java application using applet and XMl as backend in web page
By simple11 in forum Java AppletsReplies: 2Last Post: 04-26-2009, 07:36 AM -
Can't display web application in my browser
By gissah in forum NetBeansReplies: 0Last Post: 03-18-2009, 04:19 AM -
How to display Tabuler Data in J2EE application on jsp page
By AMATYA-CHANAKYA in forum Advanced JavaReplies: 2Last Post: 04-23-2008, 06:54 PM -
display images in a Web Application based on java/jsp
By mnsse in forum Advanced JavaReplies: 0Last Post: 03-25-2008, 01:45 AM
Bookmarks