static <A extends JTextComponent> A makeUneditable(final A tf) { if (tf != null) swing { // XXX breaking change - tf.setEnabled(false); tf.setEditable(false); } ret tf; }
Began life as a copy of #1008618
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1015582 |
| Snippet name: | makeUneditable |
| Eternal ID of this version: | #1015582/5 |
| Text MD5: | 342f02f39e6d05c2378f8c6314bb70c0 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-03-07 20:31:16 |
| Source code size: | 190 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 688 / 735 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |