A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Swing / AWT / SWT
Author
java swing
puneetRatikon agarwal
Greenhorn
Joined: Jul 15, 2009
Posts: 3
posted
Jul 15, 2009 07:07:30
0
how to change
JButton
background color???
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
I like...
posted
Jul 15, 2009 07:13:43
0
http://faq.javaranch.com/java/UseAMeaningfulSubjectLine
. This sub forum is almost entirely about Java and Swing - the AWT, SWT and JFace threads are practically absent compared to the Swing threads.
Try checking the API:
javax.swing.JButton
. You search for something like "background". You find nothing declared by
JButton
itself, but wait! there is a method called setBackground in
JComponent
. And lo and behold:
Sets the background color of this component.
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions
How To Answer Questions
I agree. Here's the link:
http://aspose.com/file-tools
subject: java swing
Similar Threads
enlaring input box
Dateformat problem in iBatis
WA #1.....word association
BackgroundPanel.java cannot be placed in BorderLayout.NORTH
Is JDK same for all platforms(windows,unix,mac) or is it different for different operating systems.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter