Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

FullScreen  RSS feed

 
Gopinath Ranga
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi to all,

i have a situation that, first JFrame should be loaded,then i click a button,frame would change into fullscreen mode(i.e:no titlebars),

i tried undecorated method,it can be used before display,but i need after
only

please any one can help me...?
 
Rob Spoor
Sheriff
Posts: 21087
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will need to dispose() your frame first, then show it again.

Alternatively, you can really set a window to be fullscreen in Java, but only one window at a time:

1: alternatively you can use environment.getScreenDevices to get all screen devices, then pick one.
 
Gopinath Ranga
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Rob,
really fentastic idea.thanks for your for your help
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!