Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

resizing JPanels in java?

Hi I'm trying to make a four piece chess game with java,I want to know can I resize Jpanels or can I use another way to make the four sqaure pieces for my mini chess game,thanks

1 Answer

Relevance
  • 8 years ago
    Favorite Answer

    Not sure what you mean by "resize a JPanel, but JPanel has a setSize(Dimension) or setSize(width,height) method.

Still have questions? Get your answers by asking now.