private void backgroundRadioButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_backgroundRadioButtonActionPerformed
        if (backgroundRadioButton.isSelected())
        {
            try
            {
                Pointer path = new Memory(300);
                user32.SystemParametersInfoA(User32.SPI_GETDESKWALLPAPER, 300, path, 0);

                if (path.getString(0).length() > 0)
                {
                    System.out.println("Got the path: " + path.getString(0));
                    /*try
                    {
                        BufferedImage img = null;
                        img = ImageIO.read(new File(path.getString(0)));
                        System.out.println("RBG int: " + img.getRGB(0, 0));
                    }
                    catch (IOException ex)
                    {
                        Logger.getLogger(Arduino_LED_ControllerView.class.getName()).log(Level.SEVERE, null, ex);
                    }*/
                }
                else
                {
                    System.out.println("Didn't get a path");
                    JFrame frame = new JFrame();
                    JOptionPane.showMessageDialog(frame, "Image not found.", "Image error", JOptionPane.ERROR_MESSAGE);
                    backgroundRadioButton.setSelected(false);
                }
            }
            catch (Exception ex)
            {
                System.out.println(ex.toString());
            }
        }
    }//GEN-LAST:event_backgroundRadioButtonActionPerformed