This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • 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: 2612
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