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

18
LINES

< > BotCompany Repo | #1005620 // Show Animated Arrow Pointing Somewhere On Screen

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

Libraryless. Click here for Pure Java version (5320L/35K/120K).

!7

p-awt {
  JLabel label = new JLabel(imageIcon("#1005616"));
  new JWindow w;
  w.add(label);
  w.pack();
  w.setLocation(150, getScreenHeight()-40);
  w.setAlwaysOnTop(true);
  
  // translucency magic
  //pcallOpt(w, "setOpacity", 0.5f); // JDK 7+
  label.setOpaque(false);
  //w.setBackground(new Color(0, 0, 0, 0));
  //AWTUtilities.setWindowOpaque(w, false);

  w.setVisible(true);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005620
Snippet name: Show Animated Arrow Pointing Somewhere On Screen
Eternal ID of this version: #1005620/2
Text MD5: 49c8bd6215423d4e41e22b6108b684a4
Transpilation MD5: 357ee6644321273ec783af98d8ff70e9
Author: stefan
Category: javax / gui
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-02 19:59:35
Source code size: 408 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 494 / 570
Version history: 1 change(s)
Referenced in: #1005622 - Show Animated GIF Somewhere On Screen With Home-Made Translucency
#1013336 - Bad Translucent Window Test using com.sun.awt.AWTUtilities.setWindowOpaque [doesn't work]