How to draw an image/graphics on a specific panel, or in anther word, if I have a JPanel blah = new JPanel() and JPanel moreBlah = new JPanel(); I want the paint function only to draw stuff on blah, not on moreBlah.

Extent the blah JPanel class and override its paint method with your drawing code.

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.