The java Library and other questions
Can someone please tell me how to display colors?
"I'm new to the java library and i'm trying my best to learn how to use the different methods and variables.."
Question 1: Do you NEED a GUI to display color? (I've tried to google it but many things pop up that I didn't find very helpful, because there was way to much irrelevant information.)
Question 2: Do you have to import Color to use it? (Such as java.awt.Color; ) ? I think you do but I'd like to get as much feedback as I possibly can because I'm really trying hard to understand how to use the library and all of the features in it.
Question 3: How exactly DO you use the Graphics? The package is java.awt.Graphics; I know that I can't instantiate (I think that's the word) the class because it's abstract so how exactly do I use its methods and variables?
Question 4: Can you call a static variable? I know how to call a static method such as math.random() but is it possible to call a variable too? I'm pretty sure i've tried calling a static variable but I don't think it worked.
Question 5: How would you write something on the inside of a JFrame?
THANKYOU for all of your feedback and I hope you guys can help me out! I've tried all of these things and I'm having trouble understanding them (especially about the library).