1 | !629 // standard function adder |
2 | !592 // auto-import |
3 | !614 // actionListener { |
4 | !619 // standard classes (LetterLayout, CenteredLine) |
5 | !1000280 // class x12 |
6 | |
7 | import java.awt.*; |
8 | import java.util.List; |
9 | |
10 | public class main { |
11 | public static void main(String[] args) { |
12 | JFrame frame = new JFrame("JavaX IDE!"); |
13 | |
14 | final JTextArea textArea = new JTextArea(); |
15 | JButton btnGo = new JButton("Go!"); |
16 | btnGo.addActionListener(actionListener { |
17 | try { |
18 | File ioBaseDir = new File("."); |
19 | File src = x12.TempDirMaker_make(); |
20 | x12.saveTextFile(new File(src, "main.java").getPath(), textArea.getText()); |
21 | x12.javax4(src.getPath(), ioBaseDir, false, false); |
22 | } catch (Throwable e) { |
23 | popupError(e); |
24 | } |
25 | }); |
26 | |
27 | JPanel panel = new JPanel(new LetterLayout("T", "T", "B").setBorder(10)); |
28 | panel.add("T", new JScrollPane(textArea)); |
29 | panel.add("B", new CenteredLine(btnGo)); |
30 | frame.add(panel); |
31 | |
32 | frame.setBounds(100, 100, 500, 400); |
33 | frame.setVisible(true); |
34 | exitOnFrameClose(frame); |
35 | } |
36 | } |
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
2 comment(s) hidden. show
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: | 1202 / 1073 |
Referenced in: | [show references] |