1 | static <A extends JTextComponent> A makeUneditable(final A tf) { |
2 | if (tf != null) swing { |
3 | // XXX breaking change - tf.setEnabled(false); |
4 | tf.setEditable(false); |
5 | } |
6 | ret tf; |
7 | } |
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: | 444 / 486 |
Version history: | 4 change(s) |
Referenced in: | [show references] |