0


Hi guys,


if(IsColor.equals("Y"))
	cell.setBackgroundColor(new Color(240,240,255));
table.addCell(cell);

This cell.setBackgroundColor(new Color(240,240,255)); is for set back ground color as a blue. I need Green color. So, is there any values for green. Please contribute your advice...


3
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by freesoft_2000
0

Look at the API for Color. What are those int values in that statement?

Now, what do you think you might try if you want Green?

In any case, see the Class JColorChooser, and then Google for the JColorChooser demo and run it.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.