• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

window size

 
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The main window and most of the dialogs of my program are resizable. Is there any way to limit the minimum size since the windows start to get very ugly when reduced too far. I have tried setting the minimum and preferred sizes on all of the containers, but they seem to be ignored. Is this tied to the fact that they can be reduced to icon size and if the minimum were limited, then the icon would be that size as well?
I am using border layout manager
Thanks,
Roopa
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Roopa Bagur:
The main window and most of the dialogs of my program are resizable. Is there any way to limit the minimum size since the windows start to get very ugly when reduced too far. I have tried setting the minimum and preferred sizes on all of the containers, but they seem to be ignored. Is this tied to the fact that they can be reduced to icon size and if the minimum were limited, then the icon would be that size as well?
I am using border layout manager
Thanks,
Roopa


U should use Gridbaglayaout. Your component is resizable so gridbaglayout is very helpful to u.
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just found a solution to this problem at the sun forums: http://forum.java.sun.com/thread.jsp?forum=57&thread=328852
reply
    Bookmark Topic Watch Topic
  • New Topic