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

14
LINES

< > BotCompany Repo | #593 // How to make one window correctly in JavaX (including calling System.exit) / Auto-Import-Test

JavaX source code - run with: x30.jar

!592 // gets run with translator #592 (auto-import)

public class main {
  public static void main(String[] args) {
    JFrame frame = new JFrame("Auto-Import-Test succeeded! :)");
    frame.setBounds(100, 100, 500, 400);
    frame.setVisible(true);
    exitOnFrameClose(frame);
  }
  
  static void exitOnFrameClose(JFrame frame) {
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  }
}

Author comment

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

Comments [hide]

ID Author/Program Comment Date
744 #1000610 (pitcher) 2015-08-18 00:07:07
743 #1000604 (pitcher) 2015-08-18 00:07:22

add comment

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: 1088 / 1372
Referenced in: [show references]