So I am using Net Beans drag and drop feature to create my gui.
I dragged a Jpanel on the frame and generated a MouseClick Event.
private void gardenJPanelMouseClicked(java.awt.event.MouseEvent evt) {
I am not sure what else to add. I have done this before making the gui manually but never with the gui generator.
public void paintComponent(Graphics g)
{
super.paintComponent(g);
g.setColor(color);
g.fillRect(0, 0, 1, 1);
}
//This does not work
}