Libraryless. Click here for Pure Java version (2538L/19K/58K).
!747 !actionListener { !x619 // CenteredLine m { static S snippetID = "#1000836"; // take me as an example static JFrame frame; p { installHelloMessage("Run dialog for " + snippetID); JButton btnOK = new JButton("OK"); btnOK.addActionListener(actionListener { ok(); }); JButton btnCancel = new JButton("Cancel"); btnCancel.addActionListener(actionListener { cancel(); }); JPanel panel = topToBottomPanel(); panel.add(new JLabel("Run " + snippetID + "?", SwingConstants.CENTER)); panel.add(new CenteredLine(btnOK, btnCancel)); frame = new JFrame("Run " + snippetID); frame.add(panel); frame.setBounds(200, 300, 400, 250); frame.setVisible(true); exitOnFrameClose(frame); } static void ok() { try { nohupJavax("" + parseSnippetID(snippetID)); frame.dispose(); } catch (Throwable e) { popupError(e); } } static void cancel() { frame.dispose(); } }
Began life as a copy of #1000834
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1000836 |
Snippet name: | Run dialog with javax nohup action |
Eternal ID of this version: | #1000836/1 |
Text MD5: | 01585ac8f1f9483cb8eeb21b74187324 |
Transpilation MD5: | 5ddc8bce06b75e665ab104e2ab16c8c2 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-09-03 23:19:23 |
Source code size: | 1016 bytes / 42 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 628 / 949 |
Referenced in: | [show references] |