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

6
LINES

< > BotCompany Repo | #1006456 - showForm_submitOnEnter - helper function for showForm* - submits text field on Enter

JavaX fragment (include)

static JTextField showForm_submitOnEnter(final JTextField tf, final Runnable r) {
  ret onEnter(tf, r {
    callF(r);
    disposeFrame(tf);
  });
}

download  show line numbers  debug dex   

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

No comments. add comment

Snippet ID: #1006456
Snippet name: showForm_submitOnEnter - helper function for showForm* - submits text field on Enter
Eternal ID of this version: #1006456/1
Text MD5: e6ba1afa2945585ee89435b31dacdb13
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-01-05 14:28:27
Source code size: 152 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 314 / 296
Referenced in: [show references]

Formerly at http://tinybrain.de/1006456 & http://1006456.tinybrain.de