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.

Java resizing Jpanels??

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

    You can just call setSize() on a JPanel. Then, override the paint() method to draw the chessboard.

Still have questions? Get your answers by asking now.