Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3508 Members - Latest Member: NevilleKemp

26. May 2012, 07:52:30 pm
Xith3D CommunityGeneral CategoryFeature Requests & Brilliant Ideas (Moderators: Marvin Fröhlich, 'n ddrylliog)Getting Underlying Component
Pages: [1]
Print
Author Topic: Getting Underlying Component  (Read 1432 times)
Patheros
Getting respectable
***
Offline Offline

Posts: 267


Dead Dolphin


View Profile WWW Email
« on: 01. March 2007, 08:18:57 pm »

Is there any easy way to start Xith up and get the underlying componetn (Either swing or AWT) and use that. The reason is I want to place Xith into an existing interface, rather than start it out in its own window.
Logged

"I like my method, what was my method again?" - Jon
'n ddrylliog
Moderator
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #1 on: 01. March 2007, 08:26:17 pm »

Is there any easy way to start Xith up and get the underlying componetn (Either swing or AWT) and use that. The reason is I want to place Xith into an existing interface, rather than start it out in its own window.
Instead, please use a create() method from Canvas3DCreator which accepts an "owner" parameter, and pass to it e.g. a JPanel. Then you have what you want Smiley
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #2 on: 01. March 2007, 08:47:16 pm »

Instead, please use a create() method from Canvas3DCreator which accepts an "owner" parameter, and pass to it e.g. a JPanel. Then you have what you want Smiley

Actually, it is called Canvas3DFactory.

There is a class called Canvas3DPanel / Canvas3DJPanel, that you can use to ease things up.

But to directly answer your question: There is canvas.get3DPeer().getComponent(), which returns what you want.

Marvin
Logged
robert
Just dropped in

Offline Offline

Posts: 1


View Profile WWW
« Reply #3 on: 22. May 2007, 04:09:27 am »

Quote
canvas.get3DPeer().getComponent()

It work fine for me, useful! Cool.
Logged

Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic