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 Developer Certification (SCJD/OCMJD) and the fly likes am I allow to use java.awt.Color? 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 » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "am I allow to use java.awt.Color?" Watch "am I allow to use java.awt.Color?" New topic
Author

am I allow to use java.awt.Color?

fei lin
Ranch Hand

Joined: Nov 25, 2007
Posts: 39
since the spec say only swing.
Can I use java.awt.Color to select color and color code fonts in the assignment?

Thanks
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

since the spec say only swing.


where ?? can you provide me the link.


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Simon Hogg
Greenhorn

Joined: Jan 29, 2008
Posts: 7
You can use the parts of AWT that are required for Swing, such as the event listeners in java.awt.event, so java.awt.Color should be fine.

Simon
Hrishikesh Thatte
Greenhorn

Joined: Jan 08, 2008
Posts: 3
I second Simon.
Alex Belisle Turcot
Ranch Hand

Joined: Apr 26, 2005
Posts: 516
Originally posted by fei lin:
since the spec say only swing.
Can I use java.awt.Color to select color and color code fonts in the assignment?

Thanks


Same as previous ranchers... The constraint with the assignment is that you can only use the SWING Components. For other features (listeners...), I believe it is generally accepted on this forum that you can use classes outside of SWING as long as SWING doesn't offer the same improved classes (Button --> JButton).

I used java.awt.Color myself to display error messages in red, status messages in green, apply borders around components...

So, go ahead and do your magic

Alex
 
Don't get me started about those stupid light bulbs.
 
subject: am I allow to use java.awt.Color?
 
Similar Threads
Problem with package
Instantiate
how to apply hex value to color class
Color is bright or dark
Convert Color (RGB) to Hex