0

Is there a way for a component to access the component that contains it? For example, if there is a JPanel named firstPanel and I've added a secondJPanel Jpanel to firstJpanel, can secondJPanel call firstPanel with something like myContainer.setBackground?

roeygol
  • 4,908
  • 9
  • 51
  • 88

0 Answers0