how can i draw a rectangle over JLabel dynamically...???
Printable View
how can i draw a rectangle over JLabel dynamically...???
How dynamically?
db
means by pressing some button.....or by some other event
You need to explain your requirement in adequate detail, preferably along with the code you tried, in the form of an SSCCE.
db
i had not tried any code till yet....the thing i want is to make a series of rectangle on pressing some command button like an array...
Still too vague to make any concrete suggestion. Have you gone through these tutorials?
Lesson: Using Swing Components (The Java™ Tutorials > Creating a GUI With JFC/Swing)
Lesson: Performing Custom Painting (The Java™ Tutorials > Creating a GUI With JFC/Swing)
Lesson: Working with Geometry (The Java™ Tutorials > 2D Graphics)
db
thanx for the help db....