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

14
LINES

< > BotCompany Repo | #1024165 // Test JTextArea.setDocument with chat lines

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

Download Jar. Libraryless. Click here for Pure Java version (7604L/55K).

!7

p-exp {
  LS l = sortedCI(singleLinesOnly(gazelle_fromServer_allDistinctLines()));
  S text = escapeMultichars(lines(appendToAll(" | ", l)));
  JTextArea ta = typeWriterTextAreaWithoutUndo(); //jTextAreaWithoutUndo();
  showFrame(ta);
  time "Making document" {
    Document doc = defaultStyledDocumentFromString(text);
  }
  time "Setting document" {
    setDocument(ta, doc);
  }
}

Author comment

Began life as a copy of #1024162

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024165
Snippet name: Test JTextArea.setDocument with chat lines
Eternal ID of this version: #1024165/4
Text MD5: 576aa6b3f33596fb724c6ffdb673069d
Transpilation MD5: dbac907126f16324d825e78ffe0488c7
Author: stefan
Category: javax / gui
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-24 00:39:32
Source code size: 400 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 260 / 867
Version history: 3 change(s)
Referenced in: #1024167 - Test JTextArea.setText() with chat lines