1 | !592 // gets run with translator #592 (auto-import) |
2 | |
3 | public class main { |
4 | public static void main(String[] args) { |
5 | JFrame frame = new JFrame("Auto-Import-Test succeeded! :)"); |
6 | frame.setBounds(100, 100, 500, 400); |
7 | frame.setVisible(true); |
8 | exitOnFrameClose(frame); |
9 | } |
10 | |
11 | static void exitOnFrameClose(JFrame frame) { |
12 | frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
13 | } |
14 | } |
Run with "java x9 593"
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, kmhbujppghqa, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
2 comment(s) hidden. show
Snippet ID: | #593 |
Snippet name: | How to make one window correctly in JavaX (including calling System.exit) / Auto-Import-Test |
Eternal ID of this version: | #593/1 |
Text MD5: | dd6740ade2cf5c06547c83228214f4e9 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-05-12 20:56:00 |
Source code size: | 409 bytes / 14 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 1342 / 1641 |
Referenced in: | [show references] |