Created
June 27, 2012 04:20
-
-
Save colin-haber/3001404 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aJToggleButton.setBackground(new Color(aJPanel.getBackground().getRed(), aJPanel.getBackground().getGreen(), aJPanel.getBackground().getBlue())); //This works. | |
aJToggleButton.setBackground(aJPanel.getBackground()); //This does not. | |
//Any ideas why? I couldn't find anything in the JavaDocs that explains it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I suppose it could be alpha values, but that makes little-to-no sense.