Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

22
LINES

< > BotCompany Repo | #1016824 // Test ComponentSwitcher (Ctrl+Tab), OK

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 0K of libraries. Click here for Pure Java version (4947L/34K).

1  
!7
2  
3  
lib 1400100 // ComponentSwitcher
4  
5  
import org.swing.enhance.desktop.*;
6  
import org.swing.enhance.keystroke.*;
7  
8  
p {
9  
  JDesktopPane desktop = jDesktopPane();
10  
  showFrame(desktop);
11  
  
12  
  new DesktopListener desktopListener;
13  
  desktop.addContainerListener(desktopListener);
14  
15  
  SwitchDispatcher<JInternalFrame> switchDispatcher
16  
    = new(new DesktopSwitcher(desktop), desktopListener);
17  
  switchDispatcher.start();
18  
  
19  
  showInternalFrame(desktop, "bla", jlabel("bla"));
20  
  showInternalFrame(desktop, "bla2", jlabel("bla2"));
21  
  showInternalFrame(desktop, "bla3", jTextArea());
22  
}

Author comment

Began life as a copy of #1016822

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016824
Snippet name: Test ComponentSwitcher (Ctrl+Tab), OK
Eternal ID of this version: #1016824/8
Text MD5: b4ff998477eb28f42915e66abf18e6b2
Transpilation MD5: cc829a94629499254fca82a7da44bc1a
Author: stefan
Category: javax / gui
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-03 15:54:08
Source code size: 592 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 445 / 1008
Version history: 7 change(s)
Referenced in: [show references]