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

17
LINES

< > BotCompany Repo | #1009425 // Test Bracket Hygiene for Text Area

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

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

!7

static JTextArea ta;
static JLabel lbl;

p-noconsole {
  showFrame(centerAndSouth(ta = jtextarea(), lbl = jlabel()));
  onUpdate(ta, r {
    Pair<Int, S> p = testBracketHygiene2(getText(ta));
    if (p == null)
      lbl.setText("Hygienic");
    else {
      setCaretPosition(ta, p.a);
      lbl.setText(p.b);
    }
  });
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1009425
Snippet name: Test Bracket Hygiene for Text Area
Eternal ID of this version: #1009425/4
Text MD5: 97f6c55d42db4ec28409b49d2e415939
Transpilation MD5: d9528c7fb84941661bb0f4a2f850078d
Author: stefan
Category: javax
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-08 07:04:40
Source code size: 343 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 507 / 1033
Version history: 3 change(s)
Referenced in: [show references]