How to make Java Swing application display Compiz Mouse Plugin (Ubuntu) mouse cursor effects

Showmouse compiler for compilation has nice effects for people with low vision. Unfortunately, these effects do not work in Java applications out of the box. How can I make a Java Swing application show mouse effects like other applications do? My only concern is Linux user support (mainly Linux Mint and Ubuntu). The Java application uses Nimbus L & F, and it is a one-block Netbeans application (but I create all the frames manually using the Gridbaglayout). I need the Compiz mouse effects to be consistent throughout and all the time in my application while the Compiz effects are on by the system.

+4
source share
1 answer

I created a simple Swing frame:

import javax.swing.*; public class A extends JFrame { public static void main(String[] args) { A a = new A(); a.setSize(100, 100); a.setVisible(true); } } 

I ran it on JDK 1.6:

 $ java -version java version "1.6.0_22" OpenJDK Runtime Environment (IcedTea6 1.10) (Gentoo build 1.6.0_22-b22) OpenJDK 64-Bit Server VM (build 20.0-b10, mixed mode) 

I turned on the Show Mouse effect, and it worked great on the Swing window.

So, detail your question. What exactly does not work and what is the exact configuration.

+1
source

Source: https://habr.com/ru/post/1379588/


All Articles