To set the background image on JFrame, there is no such direct methods as setBackground(). So we have to build our own interfaces to do that. Here is an example which uses the JPanel swing component to set the Background Image.
Click here to view the code
or
Click here : JFrameBackgroundImage
Fig : shows the screen when you run the above code. you need to have an image named "image.jpg" for the background image to be placed in the same directory/folder where the class file resides.
Showing posts with label JFrame Background Image. Show all posts
Showing posts with label JFrame Background Image. Show all posts
Tuesday, March 25, 2008
Setting the Background Image on JFrame
Labels:
JFrame Background Image
Subscribe to:
Posts (Atom)
