?
Solved

image icon

Posted on 2003-02-25
1
Medium Priority
?
168 Views
Last Modified: 2012-05-04
how can i display an image on to a Jpanel, using javax.swing.ImageIcon. the image is saved as a jpeg on the hard disk and the version is java 1.3
0
Comment
Question by:mcmon999
1 Comment
 
LVL 86

Accepted Solution

by:
CEHJ earned 200 total points
ID: 8016263
panel.add(new ImageIcon(Toolkit.getDefaultToolkit().createImage("x.jpg")));
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month12 days, 23 hours left to enroll

579 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question