This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes java swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "java swing" Watch "java swing" New topic

java swing

puneetRatikon agarwal

Joined: Jul 15, 2009
Posts: 3
how to change JButton background color???
Rob Spoor

Joined: Oct 27, 2005
Posts: 19654
  18 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.

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: java swing
Similar Threads
WA #1.....word association
Is JDK same for all platforms(windows,unix,mac) or is it different for different operating systems.
Dateformat problem in iBatis
enlaring input box cannot be placed in BorderLayout.NORTH