aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Resize JLable Runtime with selection border Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Resize JLable Runtime with selection border" Watch "Resize JLable Runtime with selection border" New topic
Author

Resize JLable Runtime with selection border

Mahesh Kedari
Ranch Hand

Joined: Nov 28, 2009
Posts: 111
Hi,
I am designing an application for Map. In this map, I am allowing user to add new objects such as street, building etc. These objects will be JLables with different images.
How can i add selection border to JLabel so that User can change the size of component runtime?

Below is a sample code in which i have added a repositioning of Object with Drag. now i also want to add resize function to it.
## Please change the image location according to your machine.



Regards,
Mahesh Kedari - Fidus Technologies Ltd.
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2200
    
    7
You might be able to use the Component Resizer.
Mahesh Kedari
Ranch Hand

Joined: Nov 28, 2009
Posts: 111
Thanks alot Rob.
Thats the solution I was searching for.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Resize JLable Runtime with selection border