java - jTextArea background not changing after setEnabled(false) -


i have set setenabled(false) jtextarea in netbeans. textarea disabled background colour not changing white 'grayish' expected. happens if run project main class. changes background colour 'grayish' while running jform containing textarea. why this?

you need make code followed jtextarea1.setbackground(color.grey); this.

jtextarea1.setenabled(false); jscrollpane1.setenabled(false); jtextarea1.setbackground(color.grey); 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -