Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

Java applet

Wed Nov 30, 2011 9:02 am

java code
import java.applet.*;
import java.net.*;
import java.awt.*;

public class imgLoader extends Applet{
Image img;
public void init()
{
try{

img=getImage(new URL(getCodeBase()+"100.jpg"));

}catch(Exception e){showStatus("FILE MISSING");}



}
public void paint(Graphics g)
{
g.drawImage(img,0,0,this);
}
}


This program is working fine for me...But if the file is missing,its not printing the error message in the catch block...Plz help



Re: Java applet

Thu Jan 24, 2013 9:29 pm

Where is the definition of Java function "showStatus".

Post a reply
  Related Posts  to : Java applet
 java.security Exception in Applet     -  
 Des java Applet ( Data Encryption Standards )     -  
 AES (Advanced Encryption standards) Java Applet     -  
 load class to applet- load frame class to applet     -  
 First Applet     -  
 add applet to jsp     -  
 Snake applet     -  
 JFrame on applet     -  
 applet in netbeans     -  
 Ball sticker applet     -