• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Window size wierdness with Full-Screen Exclusive

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Barry's not gonna like this. Barry's not gonna like this one bit. What is Barry's deal with tiny ads?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic