TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sai Yang
NA
136
27.4k
How to set odd color in jtable?
May 10 2020 5:33 AM
I am using java 8.2. Upon this code, how can I set background color for the opposite row?
UIDefaults defaults = UIManager.getLookAndFeelDefaults();
if
(defaults.
get
(
"Table.alternateRowColor"
) ==
null
) {
defaults.put(
"Table.alternateRowColor"
,
new
Color(252, 242, 206));
}
I want the opposite row different from default color. Now it's white.
Reply
Answers (
1
)
What Is The Best Operating System to Learn java?
How do I trace mobile number. its urgent please