Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Liutauras Vilda
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Devaka Cooray
Paul Clapham
Saloon Keepers:
Scott Selikoff
Tim Holloway
Piet Souris
Mikalai Zaikin
Frits Walraven
Bartenders:
Stephan van Hulst
Carey Brown
Forum:
Swing / AWT / SWT
Add a background image for Java GUI...Please help
Chaturaka Gunatilaka
Greenhorn
Posts: 16
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
import java.awt.*; import javax.swing.*; class Demo1{ public static void main(String args[]){ JFrame f1=new JFrame("NetBeans IDE Installer"); f1.setSize(600,450); f1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f1.setLocationRelativeTo(null); JButton nextButton=new JButton("Next >"); JButton cancelButton=new JButton("Cancel"); JButton customizeButton=new JButton("Customize"); JPanel buttonPane1=new JPanel(new FlowLayout(FlowLayout.RIGHT)); JPanel buttonPane2=new JPanel(new FlowLayout(FlowLayout.CENTER)); buttonPane1.add(nextButton); buttonPane1.add(cancelButton); buttonPane2.add(customizeButton); f1.add("South",buttonPane1); f1.add("Center",buttonPane2); f1.setVisible(true); } }
I want to add this image to my GUI code.How can I do that?Thank you.
This is the image related to the question.
Michael Dunn
Ranch Hand
Posts: 4632
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
read the Swing FAQ on this forum's main page
Jan Cumps
Bartender
Posts: 2662
19
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
This is the link
into that faq.
OCUP UML fundamental and ITIL foundation
Kemal Sokolovic
Bartender
Posts: 825
5
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
As Michael pointed, you can refer to
Swing Faq
. There is a page that will give you a solution to your problem.
The quieter you are, the more you are able to hear.
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Wizards and CardLayout
Laying out a JPanel
Calculator GUI app
getText() is not working?
to add image in prog
More...