Download Jar. Libraryless. Click here for Pure Java version (7962L/55K).
!7 p { JDesktopPane desktop = jDesktopPane(); final JTextField tfInput = jCenteredTextField(); showFrame(northAndCenter(tfInput, desktop)); SwitchDispatcher dispatcher = installInternalFrameSwitcher_v3(desktop); dispatcher.shouldSwitch = func -> bool { isFocusedComponent(tfInput) }; dispatcher.instaSwitch = true; addInternalFrame(desktop, "Test", jTextArea()); addInternalFrame(desktop, "Test 2", jTextArea()); addInternalFrame(desktop, "Test 3", jTextArea()); }
Began life as a copy of #1019719
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1029923 |
| Snippet name: | Test installInternalFrameSwitcher_v3 with InstaSwitch (now default) |
| Eternal ID of this version: | #1029923/4 |
| Text MD5: | 7a8f39ea4ff2383e627bb692084f42dd |
| Transpilation MD5: | ffb196a60cdcc0715aae86f8efa5f25c |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-10-06 14:03:43 |
| Source code size: | 500 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 469 / 1283 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |