hello all. i’m trying to get it so that my GL’s canvas to be exactly my requested size. currently, if i call glCanvas.setSize( new Dimension( 1024, 768 ) ), then put it in a Frame, it will shrink down to the minimum size available. if i go back to the basics, and do frame.setSize( new Dimension( 1024, 768 ) ), then everything SEEMS correct. but, in the init() call in the GL, if i ask drawable.getWidth(), or .getHeight(), i get 1024 x 768 - 22 because of the Frame’s title bar.
how can get the glCanvas to set to a specific size, then put it in the frame? for example, if i want to set my glcanvas to 1024 x 768, then put it into a frame. then the frame should be 1024 x 768 +22… edit: obviously, i could just ADD 22 to the requested dimension, but that’s not going to platform independent i don’t think…
sorry if this is such a noob question, and i have tried out a lot of experiments in my code first.
thx.