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

22
LINES

< > BotCompany Repo | #1009299 // Window Bot 1

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (3623L/26K/86K).

1  
!7
2  
3  
static JFrame frame, closedFrame;
4  
5  
p { bot(); }
6  
7  
answer {
8  
  if "show a window"
9  
    frame = showFrame("A window");
10  
    
11  
  if "maximize it"
12  
    maximizeFrame(frame);
13  
    
14  
  if "resize to * times *"
15  
    setFrameSize(frame, parseInt($1), parseInt($2));
16  
    
17  
  if "close it"
18  
    { frame.setVisible(false); closedFrame = frame; frame = null; }
19  
    
20  
  if (frame == null) if "open it again"
21  
    { frame = closedFrame; closedFrame = null; frame.setVisible(true); }
22  
}

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

No comments. add comment

Snippet ID: #1009299
Snippet name: Window Bot 1
Eternal ID of this version: #1009299/9
Text MD5: be9d2fe18c3f9a0891362a37ea8113b8
Transpilation MD5: 5c296aedc4effbf9071badacdb0e46d9
Author: stefan
Category: javax / a.i.
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-07-24 16:42:06
Source code size: 482 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 529 / 754
Version history: 8 change(s)
Referenced in: [show references]