Glad you got it to work. Good luck on your projects.
Type: Posts; User: Norm
Glad you got it to work. Good luck on your projects.
Please post all of the code to be sure we using the same code as you are.
I still see repeated if tests that should be merged.
If you expect more than one image to be shown in a box, what code will make that happen? Is the code doing what you want it to do? By printing out messages showing where the code is executing and...
First you need to fix this: What about the repeated if tests in the actionPerformed() method?
See post#14
Did you merge them?
Then do some debugging by adding println statements to show when the...
Do you want the three image display boxes to display a "slideshow" of images before stopping on an image? The SpinSimulator program has logic to chose an image, display it, wait some, chose another...
Can you explain what you mean by "act the same"?
What does the code do now?
What do you want it to do differently?
Is your problem solved now?
What is there about the Timer you want to know? What was printed: javax.swing.Timer@a3bcc1 is the String returned by the TImer class's toString() method (really the Object class's method): the name...
Do you know how to code a println? Here's an example:
System.out.println("obj="+object);
The code has lots of logic like if statements and switch statements, print out the values...
Have you tried debugging the code by adding lots of println statements to print out the values of variables used to control execution flow and to show the execution flow. That will be how I debug...
What is shown when the posted program is executed? What is the problem with the posted code?
When the Spin button is pressed, It shows some images and then stops
By spinning do you mean showing different images over time? Like a slideshow?
What is shown when the posted program is executed? What is the problem with the posted code?
Can you make a small, complete program that compiles, executes and shows the problem?
What do you mean by "picture spin"?