java - ReadOnly Text Area with Scroll in JAVAFX -


in java fx application using textarea display text content. using following property restrict editing:

templatescriptarea.seteditable(false); 

with this, user not able write on textarea, selection allowed, or if selection made application able change user. requirement textarea should readonly, no editing no selection. scroll should work.

i thought, disabling textarea idea :

templatescriptarea.setdisable(true); 

but, scroll not work , grey color appears on textarea. there better solution?


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -