I found some solution to the problem, maybe not the best solution, but works for me. If anyone has a better solution, post it. Thanks
Using the showDesktop () method, first simulate a windows + D event window to show the desktop
private void showDesktop() { try{ Robot robot = new Robot(); robot.keyPress(KeyEvent.VK_WINDOWS); robot.keyPress(KeyEvent.VK_D); robot.keyRelease(KeyEvent.VK_D); robot.keyRelease(KeyEvent.VK_WINDOWS); } catch(Exception e){e.printStackTrace();} }
Then increase the shell application
private void bringToFront(final Shell shell) { showDesktop();
source share