|
-
don't know how to put images
I'm doing a project for class and I have a few questions
1. I need code to output an image to the screen in a "ready to program" type of thing(console)?
2. how would you convert these lines from an applet to be able to be used in an HSA console application template?
import javax.swing.*;
public class AnimationApplet extends JApplet
{
public void init ()
{
ImageIcon icon = new ImageIcon ("images/rolling.gif"); // animated gif
getContentPane ().add (new JLabel (icon));
}
}
Thank you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks