Skip to main content

Full screen exclusive mode question...

3 replies [Last post]
Anonymous

http://pancyl.com/debug.htm

It goes full screen exclusive mode now. F1 to enter -- ESC to exit. Someone tell me how it works with D3D acceleration. I can't run the beta version of 1.6 right now.

Question/Problem:
When in full screen mode in a browser, there is a little status line that says:

Java Applet Window

But there is no documentation that I can find about that status line. This is metioned in passing in the Full Screen Exclusive Mode tutorial --
http://java.sun.com/docs/books/tutorial/extra/fullscreen/index.html

"For security reasons, the user must grant fullScreenExclusive permission when using full-screen exclusive mode in an applet."

Which does a pretty good job of explaining how to set things up but you really don't have to do that if you are willing to suffer that little status line apparently.

What I want to know is how do I find out how high is the status line at runtime so I can adjust my render accordingly. It may be small but it's still a chunk of pixels that I don't need to render if they are just going to be drawn over. Also, it would be nice to be able to use that area for controls and status when in full window mode. And having that status line really does absolutly nothing to enhance security. I suppose that's the reason for it.

Lastly, I have observed that the Frame which is the full window area sometimes loses the ignoreRepaint() value. When that happens, a system generated repaint can cause flashing so I set it everytime I enter my render method.

You can see in the console the value of getIgnoreRepaint() I print out each time through my render method and each time I fall in and out of full screen mode.

Ken

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
fred34
Offline
Joined: 2004-06-19

Update: The getInsets() method on Frame takes into account the Applet Warning bar at the bottom so you can use that.

fred34
Offline
Joined: 2004-06-19

Hmm, I haven't checked this, but can't you find the size of the drawable area through a combination of things like getContentPane().getSize() (If its a swing window) and frame.getInsets() or frame.getSize()? Not sure which if any will work yet.

Ken Warner

Good suggestions...I'll give those a try. Be nice if it was just gone. I mean
how silly...

java2d@JAVADESKTOP.ORG wrote:
> Hmm, I haven't checked this, but can't you find the size of the drawable area through a combination of things like getContentPane().getSize() (If its a swing window) and frame.getInsets() or frame.getSize()? Not sure which if any will work yet.
> [Message sent by forum member 'fred34' (fred34)]
>
> http://forums.java.net/jive/thread.jspa?messageID=240256
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff JAVA2D-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".