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

9
LINES

< > BotCompany Repo | #1010336 // replaceTab - replace tab in JTabbedPane by name

JavaX fragment (include)

static bool replaceTab(final JTabbedPane tabs, fS name, final Component c) {
  if (tabs == null) false;
  ret swing(func -> Bool {
    int idx = tabs.indexOfTab(name);
    if (idx < 0) false;
    tabs.setComponentAt(idx, wrap(c));
    true;
  });
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1010336
Snippet name: replaceTab - replace tab in JTabbedPane by name
Eternal ID of this version: #1010336/3
Text MD5: dce7c839bfb3092d8fea5676a1c30eaa
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-11 23:22:04
Source code size: 256 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 419 / 456
Version history: 2 change(s)
Referenced in: [show references]