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
Post a Comment