• Post Reply Bookmark Topic Watch Topic
  • New Topic

How do I prevent frame from covering entire screen

 
john mattucci
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I maximize my jframe it covers the entire screen even the toolbar at the bottom. I was wondering how I can prevent this? I have tried

this.setMaximumSize(dim);
this.setPreferredSize(dim);

with no success.

Thank you all
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It works OK for me - not over the taskbar
win98SE, java1.4.0_01, taskbar autoHide = false

I tried this, it works by reducing the height by 30,
but loses the ability to 'restore' - hopefully there's a better way

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!