hi guys am new to java and i have to display rotating images on a gui and use multithreading to alternate the four images. and i managed to create the gui but the images are not visible. the rotating images must be in the center of the frame.

help..

Recommended Answers

All 3 Replies

You forgot to post your code (Be sure to use [code]

[/code] tags)

yeah when you have programming problems you need to post your code. To me though it sounds like you might have used the 2D Graphics rotate method wrong. Make sure to check it against documentation online.

Just a guess - but do you have a loop with a sleep or wait in it to display the images? If so, read up on the Event Dispatch Thread (EDT) AKA the Swing Thread, and use a javax.swing.Timer instead. If not, ignore this post.

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.