As helloworld922 has already told you at #4, performing custom painting doesn't preclude adding components to the panel.
Maybe you're trying to run before you've learned to walk. I recommend the...
Type: Posts; User: Darryl.Burke
As helloworld922 has already told you at #4, performing custom painting doesn't preclude adding components to the panel.
Maybe you're trying to run before you've learned to walk. I recommend the...
Add a MouseListener to the JPanel and check the coordinates from MouseEvent#getPoint().
That said, this sounds like a bad approach. Why do you think you need to do that?
db