Guest User

Untitled

a guest
Nov 19th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. aJToggleButton.setBackground(new Color(aJPanel.getBackground().getRed(), aJPanel.getBackground().getGreen(), aJPanel.getBackground().getBlue())); //This works.
  2.  
  3. aJToggleButton.setBackground(aJPanel.getBackground()); //This does not.
  4.  
  5. //Any ideas why? I couldn't find anything in the JavaDocs that explains it.
Add Comment
Please, Sign In to add comment