View Single Post
  #1 (permalink)  
Old 08-05-2007, 07:03 AM
carl carl is offline
Member
 
Join Date: Jul 2007
Posts: 35
carl is on a distinguished road
Change the color in my program
Hi, I am trying to learn Java but i have some problems.
I want to know how i can show dynamically the fonts provided by my operating System in a choice Fonts =new Choice()?

I want also need a choice for changing the colors of a string... I know how to create some colors in the choice...
Code:
Choice Fontcolor=new Choice(); Fontcolor.addItem("Red"); Fontcolor.addItem("Blue");
Do you know something better than this? For example something that i can use it immediately for changing the color.... I was thinking if it is possible instead of text colors ..... to use colored lines in the choice... Is this possible?

Finally how i can change the color of a String?
I have a String inside a TextArea...i can;t find any option for this? Any suggestion?
Thanks.
Reply With Quote
Sponsored Links