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).

1  
!7
2  
3  
static JTextArea ta;
4  
static JLabel lbl;
5  
6  
p-noconsole {
7  
  showFrame(centerAndSouth(ta = jtextarea(), lbl = jlabel()));
8  
  onUpdate(ta, r {
9  
    Pair<Int, S> p = testBracketHygiene2(getText(ta));
10  
    if (p == null)
11  
      lbl.setText("Hygienic");
12  
    else {
13  
      setCaretPosition(ta, p.a);
14  
      lbl.setText(p.b);
15  
    }
16  
  });
17  
}

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: 613 / 1296
Version history: 3 change(s)
Referenced in: [show references]