Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What event if user changes screen size ?

 
Sharada Sreeram
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can my program be notified if the user changes the screen size - the windowListener seems to be not having anything.
I basically want to validate my screen if this happens.
Thanks
Sharada
 
deekasha gunwant
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi sharda,
you shall use ComponentListener for this.
frame.addComponentListener(....);
ComponentListener has a method
componentResized();
which u can use..
regards
deekasha
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!