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

15
LINES

< > BotCompany Repo | #1034481 // setTab - replace tab contents in JTabbedPane by index

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

Transpiled version (6956L) is out of date.

ifclass JExtendedTabbedPane
  svoid setTab(JExtendedTabbedPane tabs, int iTab, Component c) {
    if (tabs != null) swing {
      if (iTab >= 0 && iTab < countTabs(tabs))
        tabs.setComponentAt(iTab, wrap(c));
    }
  }
endif

svoid setTab(JTabbedPane tabs, int iTab, Component c) {
  if (tabs != null) swing {
    if (iTab >= 0 && iTab < countTabs(tabs))
      tabs.setComponentAt(iTab, wrap(c));
  }
}

Author comment

Began life as a copy of #1010336

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034481
Snippet name: setTab - replace tab contents in JTabbedPane by index
Eternal ID of this version: #1034481/3
Text MD5: fe15ff7ef1d235857c139ba2e77ba346
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:43:41
Source code size: 422 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 95 / 145
Version history: 2 change(s)
Referenced in: [show references]