I'am trying right now to set the opacity of a JFrame to 50 % from a JMenuItem. My Last try was this:
op50.addActionListener((ActionEvent y) -> {
setUndecorated(true);
AWTUtilities.setWindowOpacity(this, 0.5F);
});
But no matter what I'm doing, I run into an java.awt.IllegalComponentStateException Error with the Message: The Frame is displayable.
I don't know how to do it, so please help me.