I have an ImageIcon which is an image of a router. I added this ImageIcon to a label. But labels are either rectangles or squares. I开发者_StackOverflow want such a component that takes the shape of the ImageIcon when added to it. Does such a component exist? Is there any other way of doing it?
Yes label is rectangular but it is transparent by default( call setOpaque( false )
if it isn't ). Isn't that what you want?
精彩评论