Rob Camick wrote:You need to extend JLabel to add the custom painting. The basic code would be:
Thanks! But what I really want to do is to draw the line dyanmic, and I don't know how to generate it like this. I hava extended JLabel, and the picture is already appeared.