java按鈕點(diǎn)擊改變顏色 如何改變java按鈕中的顏色?
如何改變java按鈕中的顏色?Setforeground()設(shè)置前景/字體顏色。Setbackground()設(shè)置背景色。具體實(shí)現(xiàn):(假設(shè)按鈕名為:button)設(shè)置紅字:按鈕.設(shè)置前景( 顏色:紅色
如何改變java按鈕中的顏色?
Setforeground()設(shè)置前景/字體顏色。Setbackground()設(shè)置背景色。具體實(shí)現(xiàn):(假設(shè)按鈕名為:button)設(shè)置紅字:按鈕.設(shè)置前景( 顏色:紅色)設(shè)置黑色背景:按鈕.背景( 顏色:黑色)