Vincent Erickson wrote:
> As part of my debugging effort, I wanted to display the Canvas3D's framerate
> in the window somewhere. I'm overriding Canvas3D, and trying to draw the
> string directly into the Graphics of the Canvas3D in postSwap, and it draws,
> but with lots of flickering. What would be the best way to do this sort of
> thing? Create a billboard? Display info outside the Canvas3D? Any help or
> examples of this would be appreciated. Thanks.
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA3D-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
Hello Vincent,
I use a panel in the buttom of my window - like this (init-method in my
applet):
public void init()
{
setLayout(new BorderLayout());
myCanvas = new Canvas3D(null);
add("Center", myCanvas);
Panel keyPanel = new Panel();
add("South",keyPanel);
keyPanel.add(new Label("Frames (mSek):"));
keyPanel.add(frameField = new TextField("0", 4));
frameField.setEditable(false);
keyPanel.add(new Label("Ticks (mSek):"));
keyPanel.add(tickField = new TextField("0", 4));
tickField.setEditable(false);
kind regards
Hardy Henneberg
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".