Ciao a tutti, come faccio, a rendere una JTextArea selezionabile ma non modificabile?
Ciao a tutti, come faccio, a rendere una JTextArea selezionabile ma non modificabile?
-------------------------------------------------
Il fumo nuoce gravemente alla salute
public void setEditable(boolean b)
Sets the specified boolean to indicate whether or not this TextComponent should be editable. A PropertyChange event ("editable") is fired when the state is changed.
Parameters:
b - the boolean to be set
See Also:
isEditable()
Dovrebbe fare al caso tuo
Lang=Java
Ambiente = Eclipse forever
Ubuntu & Win XP Pro
Originariamente inviato da Zero-2
public void setEditable(boolean b)
Sets the specified boolean to indicate whether or not this TextComponent should be editable. A PropertyChange event ("editable") is fired when the state is changed.
Parameters:
b - the boolean to be set
See Also:
isEditable()
Dovrebbe fare al caso tuo
si lo conosco, e dici che può andare bene..
-------------------------------------------------
Il fumo nuoce gravemente alla salute
IMpedisce la modifica del testo contenuto nella JTextField
Lang=Java
Ambiente = Eclipse forever
Ubuntu & Win XP Pro