• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Resize JLable Runtime with selection border

 
Mahesh Kedari
Ranch Hand
Posts: 111
  • 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: 2600
9
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks alot Rob.
Thats the solution I was searching for.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic