hi everyone,

i need some help implementing some functions into my code. Right now, all it does is have a rectangle appear on the screen and I can change its color via the radio buttons.

I'm thinking I need some sort of grid/cells on the left side of the panel.
If my mouse clicks on these cells/grid, it will add a small sized circle that corresponds to the color of the radio button i chosen.

Ex, I click the radio button red, so if i click my mouse somewhere on the grid, I should see a small sized red circle appear on that particular cell my mouse clicked on.

AND, if you attempt to mouse click over a cell that already has a circle, it will remove that circle instead.

In essence, the circles should line up in rows and columns on the panel

I hope i can get some feed back on the code so I can finish it!

has anyone found a way to do this ?

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.