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

8
LINES

< > BotCompany Repo | #1017163 // dm_printLogComponent - TODO: move to JFastLogView_noWrap

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (11759L/75K).

1  
// TODO: optimize. also doesn't seem to work with cmodule2?
2  
static JComponent dm_printLogComponent() {
3  
  DynModule mod = dm_current_mandatory();
4  
  final JTextArea ta = moveCaretToEnd(typeWriterTextArea_noUndo(str(mod._actualPrintLog())));
5  
  JComponent section = jSection("Log", awtEvery(ta, 500, r { setText(ta, str(mod._actualPrintLog())) }));
6  
  componentPopupMenuItem(section, "Clear", r clearPrintLog);
7  
  ret section;
8  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1017163
Snippet name: dm_printLogComponent - TODO: move to JFastLogView_noWrap
Eternal ID of this version: #1017163/10
Text MD5: 451eca778af9f7072e1a4b9a771b9f31
Transpilation MD5: dfae6cfbca6d8db994b481e6686eb187
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-01-04 00:48:45
Source code size: 429 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 402 / 530
Version history: 9 change(s)
Referenced in: [show references]