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

25
LINES

< > BotCompany Repo | #1015794 // Cubes Frame [dev.]

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

Download Jar. Uses 3874K of libraries. Click here for Pure Java version (7400L/49K).

1  
!7
2  
3  
p-subst {
4  
  //showFullScreenImage_noScrollPane(#1009931);
5  
  JTextField tf = jcenteredtextfield();
6  
  final JPanel bg = jTiledBackground(#1009931,
7  
    jfullcenter(withBottomMargin(550, jMinWidth(400,
8  
      setFontSize(30, tf)))));
9  
  swing {
10  
    new JLayeredPane layers;
11  
    layers.add(bg, 0);
12  
    layers.setLayout(layoutManagerFromFunction(voidfunc(Container c) {
13  
      bg.setBounds(0, 0, c.getWidth(), c.getHeight());
14  
    }));
15  
    new JDesktopPane dt;
16  
    layers.add(dt, 1);
17  
    showMaximizedFrame(layers);
18  
    
19  
    JInternalFrame f = setBounds(100, 400, 300, 200, jInternalFrame("Hello!"));
20  
    dt.add(f);
21  
    f.setSelected(true);
22  
    fixInternalFrame(f);
23  
    hideConsole();
24  
  }
25  
}

Author comment

Began life as a copy of #1009935

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: #1015794
Snippet name: Cubes Frame [dev.]
Eternal ID of this version: #1015794/5
Text MD5: 714e099ef14bbb6ffca56cdbf783550c
Transpilation MD5: 4d190a7d16ea3bf8d0dc0945582bd14c
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-27 21:24:20
Source code size: 708 bytes / 25 lines
Pitched / IR pitched: No / No
Views / Downloads: 343 / 752
Version history: 4 change(s)
Referenced in: [show references]