Well as far as i know there is nothing like JCanvas for swings....i read somewhere that Jpanel can be considered to be the Canvas of Swings....How true is that???? :?:

better than canvas.... If you want something just to draw on, then override the paint method.

Check this link, almost at the bottom there is class named DrawingPanel, they extend JPanel to behave as canvas, hope that helps :cheesy:

commented: Good :SunnyPalSingh +1
Be a part of the DaniWeb community

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