wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Resize Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Resize Problem" Watch "Resize Problem" New topic
Author

Resize Problem

Satheesh Thekku Veethil
Greenhorn

Joined: Jan 31, 2002
Posts: 25
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

Joined: Oct 18, 2000
Posts: 4121

It's really easy to do if you are using Swing...



-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Satheesh Thekku Veethil
Greenhorn

Joined: Jan 31, 2002
Posts: 25
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

Joined: Oct 18, 2000
Posts: 4121

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...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Resize Problem
 
Similar Threads
Resizing div with drag
Sprites disappearing after scaling down window? Aaargh the frustration!
can you resize a JTable from UI?
resize divs like frames
Resize column width for JTable with headers?