Transpiled version (9208L) is out of date.
1 | static JComboBox centerComboBox(JComboBox cb) swing {
|
2 | if (cb != null) |
3 | if (!cb.isEditable()) {
|
4 | var r = cb.getRenderer(); |
5 | if (!r instanceof CenteredComboBoxRenderer) |
6 | cb.setRenderer(new CenteredComboBoxRenderer(r)); |
7 | } else |
8 | centerTextField(textFieldFromComboBox(cb)); |
9 | ret cb; |
10 | } |
Began life as a copy of #1007806
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: | #1013366 |
| Snippet name: | centerComboBox |
| Eternal ID of this version: | #1013366/6 |
| Text MD5: | 13e80565426964eb9d734d5b2911b3b5 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-08-12 02:36:56 |
| Source code size: | 320 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 696 / 859 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |