I would like to create a JList in Java so that each individual item is formattted using HTML tags, but I’m not clear how to do this or even if this is possible. Does anyone have any suggestions?
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Its actually very simple. For every string in the list surround it with the html tags such as this:
When the JList displays it it will be green.