| | |
vaery basic Java Color class question
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Apr 2008
Posts: 102
Reputation:
Solved Threads: 2
Java Syntax (Toggle Plain Text)
int r=245; int g = 90; int b =78; Color c = new Color(r,g,b); c. // <<--- then i dont know what methos to call //and i am not sure how to display the colour
Last edited by localp; Nov 17th, 2008 at 5:41 am.
Local P ...
I don't totally get what you 're trying to do, but this would be a good place to start looking:
http://java.sun.com/j2se/1.4.2/docs/...awt/Color.html
http://java.sun.com/j2se/1.4.2/docs/...awt/Color.html
•
•
Join Date: Apr 2008
Posts: 102
Reputation:
Solved Threads: 2
•
•
•
•
I don't totally get what you 're trying to do, but this would be a good place to start looking:
http://java.sun.com/j2se/1.4.2/docs/...awt/Color.html
and i want to see the correspoding colour of the integer to display ...
example if we pass 255 0 0, we should see the colour RED visible as output
Local P ...
![]() |
Other Threads in the Java Forum
- Previous Thread: Cant get my applet 'trustable'?
- Next Thread: Implementing mutually colliding group in java
| Thread Tools | Search this Thread |
2dgraphics android api apple applet application arguments array arrays automation banking binary binarytree bluetooth capture chat chatprogramusingobjects class classes client code color component count database derby design eclipse eclipsedevelopment encryption error exception fractal game givemetehcodez graphics gridlayout gui html ide if_statement image input integer interface j2me java javadesktopapplications javaprojects jlabel jni jpanel julia keyword linux list loop macintosh map method methods midlethttpconnection mobile netbeans newbie nullpointerexception object os print printing problem producer program programming project projectideas read recursion reference replaysolutions ria scanner screen server set size sms sort sourcelabs sql stop string swing threads transforms tree ui unicode validation windows






