Closing JReality closes the entire program...

Have jReality programming problems or questions? Post them here.
Post Reply
bioinfo
Posts: 4
Joined: Tue 8. Feb 2011, 15:46

Closing JReality closes the entire program...

Post by bioinfo » Thu 10. Feb 2011, 18:10

Hi,

I'm really some help here, if anyone could help me, i'd be really thankful.
The program i'm working on is due to next monday and i have a major issue. In my program i launch jreality with JRViewer.display(...) and a new window appear. The problem is when i close jreality window, my main program will also close.
I tried to look if there were a way to add a windowListener but no clue.
Does anyone have a solution to this problem?

Thanks for taking the time to answer!

sechel
Posts: 69
Joined: Tue 2. Oct 2007, 09:20

Re: Closing JReality closes the entire program...

Post by sechel » Wed 16. Feb 2011, 19:48

Hi,
do not use the JRViewer.display method for that kind of purpose. If you want to integrate the JRViewer into your own project you should create an instance of JRViewer and then use the startupLocal method. The result will be a root pane that you an pase somewhere into your application.
Hope that helps-
Stefan

Post Reply