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

36
LINES

< > BotCompany Repo | #613 // JavaX IDE (developing)

JavaX source code - run with: x30.jar

!629 // standard function adder
!592 // auto-import
!614 // actionListener {
!619 // standard classes (LetterLayout, CenteredLine)
!1000280 // class x12

import java.awt.*;
import java.util.List;

public class main {
  public static void main(String[] args) {
    JFrame frame = new JFrame("JavaX IDE!");
    
    final JTextArea textArea = new JTextArea();
    JButton btnGo = new JButton("Go!");
    btnGo.addActionListener(actionListener {
      try {
        File ioBaseDir = new File(".");
        File src = x12.TempDirMaker_make();
        x12.saveTextFile(new File(src, "main.java").getPath(), textArea.getText());
        x12.javax4(src.getPath(), ioBaseDir, false, false);
      } catch (Throwable e) {
        popupError(e);
      }
    });

    JPanel panel = new JPanel(new LetterLayout("T", "T", "B").setBorder(10));
    panel.add("T", new JScrollPane(textArea));
    panel.add("B", new CenteredLine(btnGo));
    frame.add(panel);
    
    frame.setBounds(100, 100, 500, 400);
    frame.setVisible(true);
    exitOnFrameClose(frame);
  }
}

Author comment

Began life as a copy of #593

download  show line numbers  debug dex  old transpilations   

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

Comments [hide]

ID Author/Program Comment Date
905 #1000604 (pitcher) 2015-08-20 15:28:24
893 #1000610 (pitcher) 2015-08-18 00:07:07

add comment

Snippet ID: #613
Snippet name: JavaX IDE (developing)
Eternal ID of this version: #613/1
Text MD5: 15e98b002d1936b64793b5a452b85715
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-06-20 16:50:05
Source code size: 1090 bytes / 36 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 1093 / 960
Referenced in: [show references]