0

Thanks Ezzaral, that's my bad, I was going from memory and had it wrong. I would suggest putting it in the setupI() method after the setPrefferedSize call, or just after the new JButton call, also try setBackground(Color) as well to see if that makes a difference.

0

which method should i put my code in if i want to add another dropo down menu option that reads into a notepad file?

0

how do u get it to only remove the squares around it when a square is clicked on? and stop it from going crazy and selecting many squares like it currently does

0

They are the x and y coordinates of the button being accessed (x,y), (0,0) being the top left, (width-1,0) being top right, (0,height-1) being bottom left, and (width-1,height-1) being bottom right

-3

Can you help me do same game but like this,

Attachments screenshot3.jpg 55.39 KB
0

Actually, while not active much, I do still keep an eye on Daniweb. But with nothing but a screenshot there is not much I can do to help.

0

@sciwizeh, i don't know if it is me, but i think "a" is trying to make a game like tetris?

0

@sciwizeh, i don't know if it is me, but i think "a" is trying to make a game like tetris?

Did you see the screenshot? It specifically says "mines"...

Edited by ~s.o.s~

0

My best guess is that 'a' wants to make a minesweeper in which you make a character walk through the field.

Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.