[英]How to Set Text To a disabled JTextArea
我想要一些關於如何將復制的String
粘貼到禁用的JTextArea
。
我正在嘗試做:
Input.copy();
ExprTextArea.paste();
其中 input 是要復制的String
, ExprTextArea
是復制的String
必須粘貼的元素。
嘗試這個
ExprTextArea.append("Text"); //append will work in this Case.
因為setText()
方法會因為 Disabled 無法工作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.