r/JavaFX • u/drykul • Jul 30 '21
Help Disable pasting to but allow copying from TextField
JavaFX noob here. This seems like it should be pretty straightforward but I'm not finding any answers through Google searching. Any help would be appreciated!
1
Upvotes
1
u/mono8321 Jul 30 '21
What exactly do you mean? Like with the keyboard or just select and copy?
1
u/drykul Aug 03 '21
I don't want the user to be able to paste anything from the clipboard into this particular text field. I don't mind if they copy the value FROM it, however. With keyboard or context menu.
3
u/3g0tr1p Jul 30 '21
Haven't done it myself but have you tried the solution from SO