Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
www.jpct.net
»
jPCT - a 3d engine for Java
»
Support
»
Swing as Gui Layer
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Swing as Gui Layer (Read 2773 times)
Texugo
byte
Posts: 6
Swing as Gui Layer
«
on:
June 20, 2011, 06:09:38 am »
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
Logged
EgonOlsen
Administrator
quad
Posts: 12297
Re: Swing as Gui Layer
«
Reply #1 on:
June 20, 2011, 05:40:58 pm »
Using which renderer?
Logged
Texugo
byte
Posts: 6
Re: Swing as Gui Layer
«
Reply #2 on:
June 20, 2011, 06:00:45 pm »
It don't work in any render? I'm using software renderer, but i have plans in use opengl render in near future.
Thanx
Logged
EgonOlsen
Administrator
quad
Posts: 12297
Re: Swing as Gui Layer
«
Reply #3 on:
June 20, 2011, 11:13:39 pm »
I hate swing with a passion, so i'm not the guy to solve this...maybe raft can help out here?
Logged
raft
quad
Posts: 1993
Re: Swing as Gui Layer
«
Reply #4 on:
June 20, 2011, 11:47:56 pm »
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/
Logged
Texugo
byte
Posts: 6
Re: Swing as Gui Layer
«
Reply #5 on:
June 21, 2011, 04:27:24 am »
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
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT - a 3d engine for Java
»
Support
»
Swing as Gui Layer