#Adding custom button to JFrame or JPanel (I forgot)

6 messages · Page 1 of 1 (latest)

quartz finch
#

Hi guys im doing a Minesweeper project and I was instructed to add a feature where you can restart the game by pressing a restart button but I dont know how to do it because my entire window frame is covered by buttons (which are the cells in this case). What Im trying to say is that the button grid (which is an 8 by 8 grid of cells) covers the entire window and I have no idea how to make the resolution of the window bigger to give space for an extra Restart button.

Someone please help me, I can send my Minesweeper project here, I need help because this project is due tomorrow and it's already past its initial deadline lol. Im using Netbeans Apache 17 IDE to run the code

hollow flintBOT
#

This post has been reserved for your question.

Hey @quartz finch! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

quartz finch
#

I dont know the syntax I checked thru a couple of tutorials on youtube im still confused lol I know that the JFrame is definitely going to be added in the Minesweeper java file (which is my primary file, 1st one)