Help: adding a JPanel to a JPanel in the center layout



Hi all! I'm writting an implementation for a mastermind game. I have a
class that represents all the holes in which the user can click on to guess
the appropriate sequence of pegs. When I add an object(extends JPanel and
overrides the paintcomponent to display images as the holes) to another
JPanel in the BorderLayout.CENTER, it still positions the Panel far to the
left in the center of the root panel. If you have any suggestions, thanks
ahead of time!

B


.



Relevant Pages

  • Re: Help: adding a JPanel to a JPanel in the center layout
    ... I'm writting an implementation for a mastermind game. ... > class that represents all the holes in which the user can click on to guess ... > JPanel in the BorderLayout.CENTER, it still positions the Panel far to the ... > left in the center of the root panel. ...
    (comp.lang.java.help)
  • Re: adding a JPanel to a JPanel in the center layout
    ... I'm writting an implementation for a mastermind game. ... > JPanel and overrides the paintcomponent to display images as the holes) to ... > another JPanel in the BorderLayout.CENTER, ... > far to the left in the center of the root panel. ...
    (comp.lang.java.help)
  • Re: Help: adding a JPanel to a JPanel in the center layout
    ... >overrides the paintcomponent to display images as the holes) to another ... >JPanel in the BorderLayout.CENTER, it still positions the Panel far to the ... >left in the center of the root panel. ...
    (comp.lang.java.help)