Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Window size wierdness with Full-Screen Exclusive

 
David Taubler
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic