Results 1 to 3 of 3
- 07-15-2008, 03:30 AM #1
Member
- Join Date
- Jul 2008
- Posts
- 2
- Rep Power
- 0
figuring out the current colour of my appelet
Hi!
I'm new to Java and I have done some regular programming as well as with applets. I was not sure how I would be able to figure out the current color of the background in the applet and just in general. :confused: To set the background, I used:
setBackground(Color.green);
for example. How would I figure out what the current color is...I wanted to make a button that will change the background colo to a certain other one depending on what the colour is.
Thanks a lot in advance! :D
- 07-15-2008, 03:53 AM #2
If you'll look at where the setBackground() method is defined and then back up a few lines you'll see the get method that goes with it. That's in the API doc.
- 07-15-2008, 04:16 AM #3
Member
- Join Date
- Jul 2008
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
List all the files in the current jar
By Srikanth_From_Moon in forum New To JavaReplies: 0Last Post: 06-14-2008, 08:42 AM -
Current month
By Java Tip in forum Java TipReplies: 0Last Post: 01-07-2008, 08:40 AM -
Getting current users name
By Java Tip in forum Java TipReplies: 0Last Post: 12-07-2007, 12:04 PM -
How to get the current working directory in EJB?
By sathish_2111 in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 07-19-2007, 04:24 PM -
How can i get current directory?
By Ashley in forum New To JavaReplies: 1Last Post: 05-26-2007, 01:21 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks