sciwizeh 62 Posting Pro in Training

it's case sensitive setForegroundColor

melindanoel17 0 Newbie Poster

yeahh i know that thats what i typed

melindanoel17 0 Newbie Poster

and it still cant find it =/

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

setForeground(Color)

melindanoel17 0 Newbie Poster

awesome that compiled! but nothing changed color wise.. lol what line/method do u put it in again?

sciwizeh 62 Posting Pro in Training

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.

melindanoel17 0 Newbie Poster

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

sciwizeh 62 Posting Pro in Training

In public MineSweeper ( ) is where the menu is created

melindanoel17 0 Newbie Poster

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

melindanoel17 0 Newbie Poster

is it possible to change the color of the square when theyre clicked on?

melindanoel17 0 Newbie Poster

whats x and y in this program? what do they represent

sciwizeh 62 Posting Pro in Training

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

Jaggs 0 Newbie Poster

what are the tasks left to complete in this program now?

a 0 Newbie Poster

Can you help me do same game but like this,

stultuske 1,116 Posting Maven Featured Poster

since this thread is 5 years old, I doubt the OP's still following it.

sciwizeh 62 Posting Pro in Training

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.

<M/> 170 Why so serious? Featured Poster

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

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

@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"...

<M/> 170 Why so serious? Featured Poster

Sorry, i couldn't get the image to enlarge...

sciwizeh 62 Posting Pro in Training

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.