Program:
public void imagdisp(String m)
{
try
{ image =
ImageIO.read(th is.getClass().g etResource(m));
} catch(Exception e)
{
System.out.prin tln(e);
}
c = new ImageCanvas( image );
add( c );
}
Here variable m containing image path
User Profile
Collapse
Profile Sidebar
Collapse
hridyakrishna
Last Activity: Dec 5 '11, 10:36 AM
Joined: Dec 5 '11
Location:
-
image display
We have a program for displaying an image wherein image uri is got from xml structure.As output we got only blank frame.
Program is :
public class DOM extends Frame
{
ImageCanvas c;
BufferedImage image=null;
public static void main(String[] arg)
{
DOM ob=new DOM();
ob.addWindowLis tener( new WindowAdapter()
{ public...
No activity results to display
Show More