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).

!7

p-awt {
  new JWindow f;
  f.setAlwaysOnTop(true);
  int alpha = 128;
  f.setBackground(colorWithAlpha(Color.blue, .5));
  //f.setSize(512, 512);
  setBounds(f, rightScreenBounds());
  /*f.add(new JPanel {
    protected void paintComponent(Graphics g) {
      g.setColor(Color.RED);
      g.drawRect(0, 0, 511, 511);
    }
  });*/
  //f.setLocationRelativeTo(null);
  f.setVisible(true);
}

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: 107 / 165
Version history: 3 change(s)
Referenced in: [show references]