Skip to content

Instantly share code, notes, and snippets.

@colin-haber
Created June 27, 2012 04:20
Show Gist options
  • Save colin-haber/3001404 to your computer and use it in GitHub Desktop.
Save colin-haber/3001404 to your computer and use it in GitHub Desktop.
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.
@colin-haber
Copy link
Author

I suppose it could be alpha values, but that makes little-to-no sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment