I need to create a swing application, and draw a rectangle and paint it with RGB values.
Color c = new Color(10, 198, 19, 23);
How should i do this ? any tutorial or example i could start with ?
I need to create a swing application, and draw a rectangle and paint it with RGB values.
Color c = new Color(10, 198, 19, 23);
How should i do this ? any tutorial or example i could start with ?
Try starting with this: http://download.oracle.com/javase/tutorial/2d/geometry/index.html
Edit: Actually, that one is thin on simple example code. Try this one first: http://download.oracle.com/javase/tutorial/uiswing/painting/index.html
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.