Environment:
Microsoft Windows 2000 [Version 5.00.2195] SP4
Java Plug-in 1.6.0_05-ea
Using JRE version 1.6.0_05-ea Java HotSpot(TM) Client VM
URL:
http://pancyl.com/
http://pancyl.com/gnomic.htm
In the first URL, if you go fullscreen, the Java Applet Window banner is
displayed.
When I go fullscreen on the second URL, the banner is now missing. It's
exactly the same code. The banner is replaced by a void. I get the insets
and subtract the bottom inset to calculate the projection of the image
correctly.
But on the first URL, the banner is displayed. On the second the banner is
missing.
Is this the bug that was refered to earlier?
The only significant difference is that in the first applet I do not write
to the browser status line. In the second URL I do write to the status line
each time the window is drawn.
Notice the browser status line as you press and release the mouse button.
Here's the method for going fullscreen:
public void setFullScreenMode(boolean b)
{
//System.err.println("(1)Ignore Repaint = " + this.getIgnoreRepaint());
this.setIgnoreRepaint(true);
this.setCursor(applet.getStopCursor());
Insets inset = null;
try
{
if(b)
{
//System.err.println("Going Full Screen...");
projector.ABORT = true;
gdFS.setFullScreenWindow(this);
pgfs = this;
this.setBounds(0, 0, 1400, 1200);
fsW = gdFS.getDisplayMode().getWidth();
fsH = gdFS.getDisplayMode().getHeight();
inset = getInsets();
fsH -= inset.bottom;
System.err.println("height = " + fsH);
if(misFS == null)
{
//System.err.println("New MemoryImageSource...");
pixelsFS = new int [fsW * fsH];
misFS = new MemoryImageSource(fsW, fsH, ColorModel.getRGBdefault(), pixelsFS, 0, fsW);
misFS.setAnimated(true);
misFS.setFullBufferUpdates(true);
imageFS = this.createImage(misFS);
}
this.createBufferStrategy(2);
bsFS = this.getBufferStrategy();
projector.setFullScreenMode(this,pixelsFS,fsW,fsH);
//System.err.println("7");
}
else
{
projector.ABORT = true;
//System.err.println("Disposing Frame...");
imageFS.flush();
gdFS.setFullScreenWindow(null);
projector.setCanvasMode();
this.dispose();
}
}
catch(OutOfMemoryError oome)
{
oome.printStackTrace();
gdFS.setFullScreenWindow(null);
projector.setCanvasMode();
applet.handleOutOfMemoryError();
this.dispose();
}
catch (Exception e)
{
e.printStackTrace();
gdFS.setFullScreenWindow(null);
projector.setCanvasMode();
this.dispose();
}
}
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".