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

20
LINES

< > BotCompany Repo | #1035164 // onTabSelectedAndNow

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (7659L) is out of date.

ifclass JExtendedTabbedPane
  svoid onTabSelectedAndNow(JExtendedTabbedPane tabs, Runnable r) {
    if (tabs != null)
      onTabSelectedAndNow(tabs.tabs, r);
  }
endif

svoid onTabSelectedAndNow(JTabbedPane tabs, Runnable r) {
  if (tabs != null && r != null) swing {
    onTabSelected(tabs, r);
    r.run();
  }
}

svoid onTabSelectedAndNow(JTabbedPane tabs, IVF1<Int> r) {
  if (tabs != null && r != null) swing {
    onTabSelected(tabs, r);
    r.get(tabs.getSelectedIndex());
  }
}

Author comment

Began life as a copy of #1020865

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035164
Snippet name: onTabSelectedAndNow
Eternal ID of this version: #1035164/2
Text MD5: f72d065e1b2d7ca9090a21a1804ba38e
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:58:24
Source code size: 507 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 70 / 107
Version history: 1 change(s)
Referenced in: [show references]