@Override
        public void paint(Graphics g) {
            g.setColor(Color.white);
            g.fillRect(0, 0, 140, 140);
            
            Image source = iconCompass.getImage();
            int w = source.getWidth(null);
            int h = source.getHeight(null);
            Graphics2D g2a = (Graphics2D)g;
            AffineTransform at = g2a.getTransform();
            at.rotate(Math.toRadians(angle), w / 2, h / 2);
            g2a.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
            g2a.setTransform(at);
            g2a.drawImage(source, 0, 0, null);
            g2a.dispose();
        }