Total members 11890 |It is currently Thu Apr 18, 2024 9:08 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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




Author:

Where is the definition of Java function "showStatus".

_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 2 posts ] 

  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     -  
 applet in netbeans     -  
 Snake applet     -  
 JFrame on applet     -  
 Ball Sticker{Applet}     -  









Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com