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

8
LINES

< > BotCompany Repo | #1008700 // textActionButton

JavaX fragment (include)

1  
// action: voidfunc(JTextComponent)
2  
static JButton textActionButton(S text, fO action) {
3  
  ret new JButton(new TextAction(text) {
4  
    public void actionPerformed(ActionEvent e) {
5  
      pcallF(action, getFocusedComponent());
6  
    }
7  
  });
8  
}

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: #1008700
Snippet name: textActionButton
Eternal ID of this version: #1008700/1
Text MD5: 29be2f12e70d47b98cec7bec0f5a1ee7
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-29 00:25:08
Source code size: 244 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 385 / 442
Referenced in: [show references]