Libraryless. Click here for Pure Java version (9482L/52K).
1 | static int removeTab(JTabbedPane tabs, S tabName) {
|
2 | swing {
|
3 | if (tabs == null) ret -1; |
4 | int idx = indexOfTabName(tabs, tabName); |
5 | if (idx < 0) ret -1; |
6 | tabs.removeTabAt(idx); |
7 | ret idx; |
8 | } |
9 | } |
Began life as a copy of #1035108
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1036247 |
| Snippet name: | removeTab |
| Eternal ID of this version: | #1036247/3 |
| Text MD5: | c4c1545a721ac8c89886d9b254d83262 |
| Transpilation MD5: | 39adb4f7ac3e5d0125722bf05ee15986 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-11-03 00:04:12 |
| Source code size: | 215 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 404 / 506 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |