• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Could I make the client UI unresizeable?

 
Zhou Can
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In many places of my client UI design , i used the the Box layout manager. But i find it is terrible to manager the looks when resizing the main Frame . It will become unmarkable . So i want to force the main Frame become unresizeable . Does it offend the test requirement ?
Could u give me any advise?
Thx...
 
Pete Lyons
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess it's possible that Sun would take off a few points because you don't adhere to standard HCI conventions, which dictate that an application's main window should be resizable. What you could do is implement a minimum size in your frame (which I think is possible, but I'm not sure). If you're main data section is a JTable in a JScrollPane (as it likely should be), what is so hard about laying out the other widgets in a scalable way? I also used the BoxLayout a few times, and my layout expanded fine, shrunk fine vertically, and when you made it unreasonably narrow, stuff started disappearing.
 
Stephane Weber
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you can define a minimum size for your Frame.
Here is how I personally did it:
JavaRanch post
Hope this helps,

Stephane
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic