File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Resize JLable Runtime with selection border

 
Mahesh Kedari
Ranch Hand
Posts: 111
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.


 
Rob Camick
Ranch Hand
Posts: 2473
8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might be able to use the Component Resizer.
 
Mahesh Kedari
Ranch Hand
Posts: 111
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks alot Rob.
Thats the solution I was searching for.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic