This week's book giveaway is in the JavaScript forum.
We're giving away four copies of JavaScript Promises Essentials and have Rami Sarieddine on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes how to put a background image with swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to put a background image with swing" Watch "how to put a background image with swing" New topic

how to put a background image with swing

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
hi all,

i want to put a background image and display buttons on them.
kindly guide with small code..

deekasha gunwant
Ranch Hand

Joined: May 06, 2000
Posts: 396
Hi srijan,
here is the code.

Geoffrey Falk
Ranch Hand

Joined: Aug 17, 2001
Posts: 171
Thanks. Is there any way to do this using pure AWT (not Swing)?


Sun Certified Programmer for the Java 2 Platform
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
try this

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17259

Welcome to the JavaRanch! Please adjust your displayed name to meet the

JavaRanch Naming Policy.

You can change it


Thanks! and welcome to the JavaRanch!


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: how to put a background image with swing