Forums Register Login

Resize Problem

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
It's really easy to do if you are using Swing...

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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...
permaculture is a more symbiotic relationship with nature so I can be even lazier. Read tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1021 times.
Similar Threads
Sprites disappearing after scaling down window? Aaargh the frustration!
Resizing div with drag
Resize column width for JTable with headers?
can you resize a JTable from UI?
resize divs like frames
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 18:12:57.