>:I'm new to Java GUI and I'm trying to add an icon to an object that
>:extends a JLabel. I have the following code, but the icon doesn't
[quoted text clipped - 10 lines]
>: this.dTarget = new DropTarget(this, this);
>: }
There's nothing in the code you've shown that would demonstrate your
problem. If that's the only constructor you have, then the problem
could be in how the Icon parameter was constructed before you invoke
this constructor. If you're asking about paintIcon(), then why? Did
you write some code that overrides the built-in one in Icon, ImageIcon,
or one of the various UI classes?
More detail will be necessary in order to provide useful assistance.
Perhaps a small code example that shows exactly how you're getting the
Icon and is a compilable example showing the problem.
= Steve =

Signature
Steve W. Jackson
Montgomery, Alabama
J. Babe - 28 May 2004 21:40 GMT
I actually overlooked something, but figured it out now, thanks.