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

13
LINES

< > BotCompany Repo | #1005286 // showWrappedText function

JavaX fragment (include)

static JTextArea showWrappedText(fS title, fS text) {
  ret (JTextArea) swingAndWait(func {
    JTextArea textArea = wrappedTextArea(text);
    caretToHome(textArea);
    textArea.setFont(typeWriterFont());
    makeFrame(title, new JScrollPane(textArea));
    ret textArea;
  });
}

static JTextArea showWrappedText(O text) {
  ret showWrappedText(autoFrameTitle(), str(text));
}

Author comment

Began life as a copy of #1001106

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005286
Snippet name: showWrappedText function
Eternal ID of this version: #1005286/2
Text MD5: 79cc8baedf4a6deaaaa3976d2410cab2
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-18 17:42:19
Source code size: 391 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 573 / 600
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)