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

10
LINES

< > BotCompany Repo | #1008699 // Test textActionButton (button that knows which text component was previously focused) [WORKS]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 3874K of libraries. Click here for Pure Java version (2562L/17K).

!7

p-substance {
  showFrame(vstack(
    jtextfield("Hello"),
    jtextfield("World"),
    textActionButton("Grab", voidfunc(JTextComponent c) {
      infoBox("Got text: " + getTextTrim(c))
    })));
}

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: #1008699
Snippet name: Test textActionButton (button that knows which text component was previously focused) [WORKS]
Eternal ID of this version: #1008699/6
Text MD5: 2f543ea8759d264fe635a327a3905c58
Transpilation MD5: 1d48cee63de8172c212f8f92ba05f2e6
Author: stefan
Category: javax / gui
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-29 00:26:34
Source code size: 211 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 399 / 907
Version history: 5 change(s)
Referenced in: [show references]