Originally posted by Arun Thulaseedharan:
When we drag from the label1 to label2 the contents of the label1 is painted onto label 2 with out we explicitly calling label2.repaint().
Can anyone tell in which class this repainting is happening behind the scene??
JLabel.setText() calls repaint() unless the new text is the same as the old text. This makes sense, no?