|
|
|
| |||||||||
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
||||
|
||||
|
JLabel.setIcon() doesn't show the icon
[solved] It was a problem with the way the image was read...
Hey, For some reason setIcon(icon) does not display the icon on the lable. Basically, I have a class that extends the JLabel class class x extends JLabel { public setNewIcon(Icon icon) { this.setIcon(icon); } } I basically have this x class inside a scrollpane inside a panel. I can see that the lable is showing because of the border but I can't see the image.
__________________
Thank you for any help. Last edited by irm_lexx : May 3rd, 2008 at 12:01 PM. |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > JLabel.setIcon() doesn't show the icon |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|