1 | static EditorFrame editJavaX(S title, S text) { |
2 | ret setFrameTitle(title, editJavaX(text)); |
3 | } |
4 | |
5 | static EditorFrame editJavaX(fS text) { |
6 | ret swing(func -> EditorFrame { |
7 | new EditorFrame frame; |
8 | frameIcon(frame, "#1004655"); |
9 | |
10 | // Customize text area |
11 | RSyntaxTextArea textArea = frame.textArea; |
12 | textArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA); |
13 | textArea.setCodeFoldingEnabled(true); |
14 | textArea.setTabSize(2); |
15 | textArea.setTabsEmulated(true); // Spaces are MUCH better! |
16 | textArea.setText(text); |
17 | |
18 | showFrame(frame); |
19 | ret frame; |
20 | }); |
21 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004946 |
Snippet name: | editJavaX |
Eternal ID of this version: | #1004946/4 |
Text MD5: | a11b0a4ff0f8c044e63bfaef9b3bf43a |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-28 18:05:56 |
Source code size: | 611 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 728 / 706 |
Version history: | 3 change(s) |
Referenced in: | [show references] |