i need to display an image only using AWT components but labels in it doesn't allow it. so, 'm using swing component JLabel to add an image as an icon. the problem is the swing components did not display in an applet so it makes sense to convert this JLabel into Label(AWT component) just to add an image. or, if there some other easiest way is also most welcome.
plz, anyone who has the instant spark can enlighten here.
What's wrong with overriding Label's paint(Graphics g) method and painting your image there?
Here is a thread that talks about drawing a background image, albeit on a JPanel, but it should be the same if you just put the code in the label's paint() method instead of paintComponent() as the example shows.