coloring buttens

Posted by asm_debuger on Stack Overflow See other posts from Stack Overflow or by asm_debuger
Published on 2010-12-21T11:32:20Z Indexed on 2010/12/21 11:54 UTC
Read the original article Hit count: 263

Filed under:
|

i want to color the text inside the button how can i do that? i made that code:

for(int i=0; i<10 ;i++)
    {

        arr[i]=new Button(""+i);
        arr[i].
        arr[i].setBackground(Color.LIGHT_GRAY);
        p1.add(arr[i]);
        this.arr[i].addActionListener(this);
    }

the buttens text color are colored in clack if i want to color the text in the button from black to blue what i need to write?

© Stack Overflow or respective owner

Related posts about java

Related posts about swing