Dear LWJGL programmers
Is there any way that we could make extra panel in the lwjgl window. I ve tried to find a frame to split it into more panels but there seem to be no frame on that the lwjgl is drawing. Any suggestions will be helpful.
Thank you.
rainforest.
What do you mean, an extra panel?
Cas :)
LWJGL don't use AWT (on windows), so there is no java.awt.Frame.
I mean I want to split the frame say in two equal portion. In one portion I 'll render my drawing (models, billboards, terrain etc) and in other portion I'll display links or images relevant to the display content like html.
Is that possbile in lwjgl?
rainforest.
I think you want to use a normal JFrame and use AWTGLCanvas to do the rendering. Thats what I did to make a split view and it worked fine (after you get over the heavy weight component thing :lol: )
Dear Fool Running
I wonder if u please give me some example of splitting the panel that u've described. It would be better for me to understand if u please mention some code with it? :)
thank you.''
rainforest.
Dear programmers
In my program it always stays in windowed mode. But in that case I've to see the title bar also. Is there any way to remove the title bar from the window and I'm still in the windowed mode? :shock:
My english is really not good. Sorry for that.
rainforest.
pass -Dorg.lwjgl.opengl.Window.undecorated=true on the commandline
When using AWTGLCanvas and a (J)Frame, then just use a propriate Layout like BoxLayout to split your Frame. Or take a Slider...but that will result in some extra code work for reacting on the resize stuff.
Furthermore, if using AWTGLCanvas inside a Frame you can turn off the native window decorations, I believe.
Cas :)
Dear Matzon
Im so thankful for ur wonderful java argument. It worked just the way I want it to except one problem. The textures that I used in 3d models are flickering or blinking (I don't know exactly which word to use) in this state.
But I don't have the problem in windowed mode with title bar.
Please suggest me something.
rainforest.
Dear Cas
Obviously the suggestions are excellent. But as Im a new LWJGL programmer even the suggestions seems difficult to me. Can u please give me some example of using the CANVAS to split up the (J)Frame?
Any code will be helpful for me. :D
rainforest.
Take a look at the Examples in the LWJGL Source Distribution. They explain the usage very well :)
And if you want to display other SWing Elements above the Canvas, just set the Swing Element to Heavyweight. Than the Swing Element will be shown up on top of the Canvas.