Welcome to itsitrc blogspot .
This article is for Java Applet .
How to change image on JPanel on action Command button ?
To satisfy this output we have step by step code described below.
To carry out this code you need to save images in your bin folder inside your workspace and just for example you need have .jpg extension images.
Save it as :
"1.jpg ", "2jpg" ... so on just for testing issue....!
This article is for Java Applet .
Problem :
How to change image on JPanel on action Command button ?
Answer :
To satisfy this output we have step by step code described below.
To carry out this code you need to save images in your bin folder inside your workspace and just for example you need have .jpg extension images.
Save it as :
"1.jpg ", "2jpg" ... so on just for testing issue....!