Re: JTextField - how to disable selecting text in this component?




Brandon McCombs napisal(a):

setEnabled(false) and setEditable(false) are different and
setEditable(false) would be what you want to prevent people from putting
text in it. Disabling the component is done by setEnabled() which wasn't
what Mearvk proposed to you.

Sorry. I forgotten say I don't want to prevent component from puting
text in it but only whilst selecting text in it. Is it imposible?

.



Relevant Pages

  • Re: JTextField - how to disable selecting text in this component?
    ... Brandon McCombs napisal: ... Disabling the component is done by setEnabledwhich wasn't ... I forget say I don't want to prevent component from puting text ... in it but only whilst selecting text in it. ...
    (comp.lang.java.gui)
  • Re: Opinion wanted
    ... Simply disabling it until the control is ... disable the menu the you could check this flag in the menu's click event. ... in fact it is a hassle to the user because if they are selecting that menu ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Possible way to ABSOLUTELY prevent copying of web images
    ... To my knowledge disabling the PRINT SCREEN key cannot ... >>event that would trigger the printing of a phantom webpage of junk. ... This is a shortcut key method that displays ... >>an image by selecting FILE from the browser menu then selecting ...
    (microsoft.public.frontpage.programming)
  • Re: Possible way to ABSOLUTELY prevent copying of web images
    ... To my knowledge disabling the PRINT SCREEN key cannot ... >event that would trigger the printing of a phantom webpage of junk. ... This is a shortcut key method that displays ... >an image by selecting FILE from the browser menu then selecting ...
    (microsoft.public.frontpage.programming)
  • Re: I want to select text but not paragraph mark
    ... Start by disabling "When selecting, ... Word MVP FAQ site: http://word.mvps.org ... paragraph, it selects the paragraph mark, if the next line is a ...
    (microsoft.public.word.docmanagement)