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

18
LINES

< > BotCompany Repo | #1033983 // Translucent JWindow Test 2 [dev.]

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

Libraryless. Click here for Pure Java version (5111L/28K).

1  
!7
2  
3  
p-awt {
4  
  new JWindow f;
5  
  f.setAlwaysOnTop(true);
6  
  int alpha = 128;
7  
  f.setBackground(colorWithAlpha(Color.blue, .5));
8  
  //f.setSize(512, 512);
9  
  setBounds(f, rightScreenBounds());
10  
  /*f.add(new JPanel {
11  
    protected void paintComponent(Graphics g) {
12  
      g.setColor(Color.RED);
13  
      g.drawRect(0, 0, 511, 511);
14  
    }
15  
  });*/
16  
  //f.setLocationRelativeTo(null);
17  
  f.setVisible(true);
18  
}

Author comment

Began life as a copy of #1018974

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033983
Snippet name: Translucent JWindow Test 2 [dev.]
Eternal ID of this version: #1033983/4
Text MD5: b4d1b6163f68e816029fa62d495217ec
Transpilation MD5: fddb3ded5232cfd477c228b96650abf3
Author: stefan
Category: javax / gui
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-15 05:54:03
Source code size: 410 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 114 / 175
Version history: 3 change(s)
Referenced in: [show references]