Total members 10261 | Gratitudes |It is currently Wed May 23, 2012 8:50 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 1 post ] 
Author Question
 Question subject: Java applet
PostPosted: Wed Nov 30, 2011 9:02 am 

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


TOP
  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 1 post ] 
Quick reply


  

 Similar topics
 video chat application in java
 navigating to database using java
 java mobile apps
 need help in java
 Read your gmail using Java code
 Java Programing to communicating port parallel
 Java Chat
 Steganography in java
 java code for listing folder contents from remote folder
 java

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: Yahoo [Bot] and 3 guests



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team