thanks.
actually what I mean is that I do not see how to set a preferred size on the GLCanvas.
With an ordinary AWT Canvas, one does
class MyCanvas Extends Canvas {
public Dimension getPreferrredSize() { return new Dimension(...
}
MyCanvas x = new MyCanvas();
or something like that.
However, GLCanvas’s documentation says
“This class can not be instantiated directly; use GLDrawableFactory to construct them.”
So though I can extend GLCanvas, I’m assuming I would need to modify or re-implement GLDrawableFactory in
order to actually create one of the new extended MyGLCanvas objects. So, extending GLCanvas
is not worth the effort…
I saw one thing that suggested that 1.5 has a setPreferredSize() method on Canvas or GLCanvas. That
would solve the problem, though we arent’ ready to go to 1.5 yet.