sanket karkare wrote:Label,Button etc. are Component. So i can add them to Frame.
How i can add an image to frame.
A
String is not a Component either. So how do you add a String to a Frame? You use a JLabel to hold the String.
Similarly, you may use a JLabel to hold an image.