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

5
LINES

< > BotCompany Repo | #1010638 // focusButton - find and focus a button with a certain name

JavaX fragment (include)

1  
static JButton focusButton(JComponent c, S name) {
2  
  JButton b = findButton(c, name);
3  
  requestFocus(b);
4  
  ret b;
5  
}

Author comment

Began life as a copy of #1006620

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: #1010638
Snippet name: focusButton - find and focus a button with a certain name
Eternal ID of this version: #1010638/1
Text MD5: 786d37ed2e0fa893f15d6b5fc36cf406
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-24 00:19:58
Source code size: 119 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 384 / 426
Referenced in: [show references]