Libraryless. Click here for Pure Java version (9302L/53K).
1 | ifclass JExtendedTabbedPane |
2 | svoid addTab(JExtendedTabbedPane tabs, S title, Component c default jpanel()) {
|
3 | if (tabs != null) swing {
|
4 | tabs.add(title, wrap(c)); |
5 | } |
6 | } |
7 | |
8 | svoid addTab(JExtendedTabbedPane tabs, S title, Swingable c) {
|
9 | if (tabs != null) swing {
|
10 | tabs.add(title, wrap(c)); |
11 | } |
12 | } |
13 | endif |
14 | |
15 | svoid addTab(JTabbedPane tabs, S title, Component c default jpanel()) {
|
16 | if (tabs != null) swing {
|
17 | tabs.add(title, wrap(c)); |
18 | } |
19 | } |
20 | |
21 | svoid addTab(JTabbedPane tabs, S title, Swingable c) {
|
22 | if (tabs != null) swing {
|
23 | tabs.add(title, wrap(c)); |
24 | } |
25 | } |
26 | |
27 | meta-for Component also as Swingable {
|
28 | svoid addTab(JTabbedPane tabs, WithToolTip<S> title, Component c) {
|
29 | addTabWithToolTip(tabs, title.toolTip(), title?!, c); |
30 | } |
31 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1023390 |
| Snippet name: | addTab |
| Eternal ID of this version: | #1023390/6 |
| Text MD5: | c2641911ddb5c532378b2cd89ecf0a3b |
| Transpilation MD5: | 3a4cfee56bfab9b6857b90e43034501a |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-04-03 19:40:54 |
| Source code size: | 788 bytes / 31 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 706 / 894 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |