Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

screen resolution change detection  RSS feed

 
kepa makibar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I�ve a smart phone that supports both portrait and landscape mode (it changes the mode when sliding the keyboard).

I am developing a GUI using AWT and I need it to detect when the screen resolution changes. Now what I do is to get the screen resolution (defaultToolkit.getScreenResolution()) whenever the Frame is going to be painted.

Is there a more effective way to detect when the screen resolution changes?

Thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!