• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Resize Problem

 
Satheesh Thekku Veethil
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Geeks,
I am currently working on an application which needs to have a customizable display area. Consider the display area to have four ports as shown below: _ _
|_|_|
|_|_|
Now each of the ports shud be resizable by dragging a mouse on any of the vertical/horiztonal lines. So any of the ports can be resized by dragging its boundary and once done, the other ports would resize and rearrange themselves.
Any ideas as to how I can accomplish this in Java?
Awaiting a quick reply.
Regards
Sat
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's really easy to do if you are using Swing...

 
Satheesh Thekku Veethil
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nate
Thanks for the quick response. I had earlier tried something similar. But the the drawback it has is the fact that one split is right across the screen from top to bottom and the other is half on the right and half on the left.
The fact being that it still doesn't allow an individual resizing.
I hope u got my point.
Regards
Sat
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But if each "split" behaves independently, you will end up with non-rectangular "panes"...

i.e.: You start like this ->


Then you resize the lower right panel by dragging it up and left ->


What about the upper left panel? Since most layout managers assume that they are working with rectangular components, I am not sure how components inside the panel would be layed out...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic