File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Window size wierdness with Full-Screen Exclusive Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Window size wierdness with Full-Screen Exclusive" Watch "Window size wierdness with Full-Screen Exclusive" New topic
Author

Window size wierdness with Full-Screen Exclusive

David Taubler
Greenhorn

Joined: Apr 10, 2003
Posts: 3
Hey all,
I'm delving into the Java 1.4 Full-Screen Exclusive Mode API because, well, because it's there! Anyhow, I have an app in which the user can switch between a normal, little JFrame and a bigger, undecorated JFrame in fullscreen mode. I do also set the display mode (in this case, to 800x600). My problem is that after all that happens, the fame seems to think that it should be much wider than the screen size iteself. So the elements in the frame disappear way off to the right. I've tried setting the frame to different dimensions, some absurdly tiny. I've also tried not setting the frame size at all. Same results always. Are there things I need to keep in mind with window sizing & such when switching to fullscreen mode?
Thanks in advance!
Chantal Ackermann
Ranch Hand

Joined: Sep 28, 2000
Posts: 508
hi,
couldn't the display mode be the reason for your problem? have you tried without setting it? and have you printed out (getDisplayMode...) the default values? I'd guess as this depends on the configuration of the screen this will change from client to client.
chantal
David Taubler
Greenhorn

Joined: Apr 10, 2003
Posts: 3
It doesn't seem to be tied to setting the display mode, as I have the problem with or without setting the display mode (although it seems to be a bit more drastic when I use display mode.)
Chantal Ackermann
Ranch Hand

Joined: Sep 28, 2000
Posts: 508
hi,
I just searched the bug parade for "fullscreen":
http://search.java.sun.com/search/java/index.jsp?qp=&nh=10&qt=%2Bfullscreen&x=0&y=0&col=javabugs
there are _some_ recent bugs. maybe you find some postings related to your problem.
chantal
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Window size wierdness with Full-Screen Exclusive
 
Similar Threads
setting screen size
making java program user friendly
How to set screen resolution
Full screen mode in Netbeans
How to set Jframe to full screen