Extral Panel

Started by rainforest, October 17, 2005, 17:44:04

Previous topic - Next topic

rainforest

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.
.:: A journey of thousand miles starts with a single step ::.

princec

What do you mean, an extra panel?

Cas :)

tomb

LWJGL don't use AWT (on windows), so there is no java.awt.Frame.

rainforest

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.
.:: A journey of thousand miles starts with a single step ::.

Fool Running

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: )
Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D

rainforest

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.
.:: A journey of thousand miles starts with a single step ::.

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.
.:: A journey of thousand miles starts with a single step ::.

Matzon

pass -Dorg.lwjgl.opengl.Window.undecorated=true on the commandline

Evil-Devil

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.

princec

Furthermore, if using AWTGLCanvas inside a Frame you can turn off the native window decorations, I believe.

Cas :)

rainforest

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.
.:: A journey of thousand miles starts with a single step ::.

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.
.:: A journey of thousand miles starts with a single step ::.

Evil-Devil

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.