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

21
LINES

< > BotCompany Repo | #1004946 // editJavaX

JavaX fragment (include)

static EditorFrame editJavaX(S title, S text) {
  ret setFrameTitle(title, editJavaX(text));
}

static EditorFrame editJavaX(fS text) {
  ret swing(func -> EditorFrame {
    new EditorFrame frame;
    frameIcon(frame, "#1004655");
    
    // Customize text area
    RSyntaxTextArea textArea = frame.textArea;
    textArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA);
    textArea.setCodeFoldingEnabled(true);
    textArea.setTabSize(2);
    textArea.setTabsEmulated(true); // Spaces are MUCH better!
    textArea.setText(text);
    
    showFrame(frame);
    ret frame;
  });
}

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: 669 / 643
Version history: 3 change(s)
Referenced in: #1005112 - editText - show raw text editor with find & replace
#1006654 - Standard functions list 2 (LIVE, continuation of #761)