Swing as Gui Layer

Started by Texugo, June 20, 2011, 06:09:38 AM

Previous topic - Next topic

Texugo

Hello buddies

I tried to put swing as a gui layer in my application but the components don't show. How to make it? I've searched in forum/wiki but i'm still confused. My code is exactly the same from Loading models from Blender http://www.jpct.net/wiki/index.php/Loading_3ds_Models_from_Blender. the only difference is a method who's add swing components to frame.
There's a simple way to do this?

Thanx

EgonOlsen


Texugo

It don't work in any render? I'm using software renderer, but i have plans in use opengl render in near future.
Thanx

EgonOlsen

I hate swing with a passion, so i'm not the guy to solve this...maybe raft can help out here?

raft

you cannot use swing with opengl renderer. you can use AWTGLRenderer with AWT but not with Swing. that is because heavy weight (AWT) and light weight (Swing) components do not mix well.

what is the problem exactly? do you get any exceptions?

all sample applications of Bones use software renderer + Swing. maybe it helps as a starting point:
http://www.aptalkarga.com/bones/

Texugo

My problem is just a standart one ... just but some Buttons and Checkboxes. I didn't have downloaded Bones. I'll download it and study the samples.
Thanx 4 replies