1 | static JTextArea showWrappedText(fS title, fS text) {
|
2 | ret (JTextArea) swingAndWait(func {
|
3 | JTextArea textArea = wrappedTextArea(text); |
4 | caretToHome(textArea); |
5 | textArea.setFont(typeWriterFont()); |
6 | makeFrame(title, new JScrollPane(textArea)); |
7 | ret textArea; |
8 | }); |
9 | } |
10 | |
11 | static JTextArea showWrappedText(O text) {
|
12 | ret showWrappedText(autoFrameTitle(), str(text)); |
13 | } |
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: | 889 / 901 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |