Results 1 to 4 of 4
Thread: Displaying moving images
- 03-27-2011, 03:46 PM #1
Member
- Join Date
- Mar 2011
- Posts
- 2
- Rep Power
- 0
Displaying moving images
Hi everyone. I am new to Java Swing and want to develop a swing code to show a moving image along with static images just like the file transfer box which is shown when you are copying(not the progress bar). Any help in terms of examples to demonstrate the same will be helpful for the same.
-
sorry to burst your bubble but the file transfer boxes usually use a GIF animation to appear to have a moving image.
anyhow, this is how you display an image:
Java Code:java.net.URL IMG_URL = new URL("http://www.myfitnessstudio.co.uk/wp-content/uploads/megan_fox4.jpg"); ImageIcon myImage = new ImageIcon(IMG_URL); JLabel myLabel = new JLabel(); myLabel.setIcon(myImage);
try and add your three pictures first and tell us if u run into a problemLast edited by ozzyman; 03-28-2011 at 12:33 AM.
- 03-29-2011, 06:49 AM #3
Member
- Join Date
- Mar 2011
- Posts
- 2
- Rep Power
- 0
What other options do I have??
What will be the other options that could help me show the file transfer if it needs to be influenced by the amount of transfer (any code that allows animation in Java)??
thanks for the reply...
-
Similar Threads
-
Images not moving Please help!!!
By reborn567 in forum New To JavaReplies: 11Last Post: 11-09-2010, 05:25 PM -
ordering moving images in swing
By IAnkit in forum AWT / SwingReplies: 2Last Post: 09-21-2010, 03:56 PM -
[Applet] Clicking images & moving them.
By Perfectworld in forum Java AppletsReplies: 17Last Post: 01-16-2010, 08:09 AM -
Moving Images in JPanel
By killpoppop in forum AWT / SwingReplies: 7Last Post: 03-08-2009, 02:54 PM -
Images not displaying in JSP in IE7
By chadscc in forum Advanced JavaReplies: 0Last Post: 11-13-2007, 03:24 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks