Please give me the code of a swing program which displays a button with an image on it.The image on the button should change when it's clicked.

Hey,

What your asking for is in Java books, so you don't need anyone to program it for you, you can simply search online, look through a Java book, & find what you need.

Regards.

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.