ViewerApp integration in jPanel

Have jReality programming problems or questions? Post them here.
Post Reply
Recage
Posts: 1
Joined: Tue 19. Aug 2008, 18:16

ViewerApp integration in jPanel

Post by Recage » Tue 19. Aug 2008, 19:13

Dear jReality community,

I am trying to integrate the ViewerApp into a jPanel (i.e. I do not want the ViewerApp to reside in its own window). What would be the appropriate strategy to achieve this goal?

Best regards, Recage

Joe
Posts: 61
Joined: Fri 11. Jul 2008, 19:29

Post by Joe » Tue 19. Aug 2008, 20:48

Hi,
I did it this way:

Code: Select all

_viewerApp.getViewingComponent()
... gives you a component (JPanel) which can be inserted into other components.

timh
Posts: 28
Joined: Wed 28. Jun 2006, 20:30
Contact:

Post by timh » Fri 29. Aug 2008, 06:02

Besides that there is

Code: Select all

viewerApp.getContent()
to get the content of the viewerApp's window (including the navigator etc...) and

Code: Select all

viewerApp.getNavigatorWithAccessories()
Tim

Post Reply