Search the web
Sign In
New User? Sign Up
EastCoastGames · East Coast Games Forum
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
[www.EastCoastGames.com Forum] Java Applet Problem   Message List  
Reply | Forward Message #182 of 195 |
Re: [www.EastCoastGames.com Forum] Java Applet Problem

but do i have to <include> any files?


--- Forest Handford <fhandford@...> wrote:
> I'm not familiar with Java, but I know in C++ you
> could shorten one line functions as follows:
>
> public void init()
> logo=getImage(getDocumentBase(),"logo.jpg");
>
> With just one line you don;t need the curly braces.
>
>
> ***On Sat 12:10p Dec 6 fireviper9999
> <fireviper9999@...> wrote***
> I'm having trouble running the applet. Can you tell
> me if I made a
> mistake?
>
>
_____________________________________________________________________
>
> import java.applet.*;
> import java.awt.*;
>
> public class loadimage extends Applet {
>
> public Image logo;
>
> public void init()
> {
> logo=getImage(getDocumentBase(),"logo.jpg");
> }
>
> public void paint(Graphics g)
> {
> g.drawImage(logo,0,0,this);
> }
>
> }
>
>
>
>
>
_____________________________________________________________________
>
>
>
>
>
>
>
>
>
> To unsubscribe from the East Coast Games Forum, send
> an email to:
> EastCoastGames-unsubscribe@yahoogroups.com
>
> Visit the website at:
> http://www.EastCoastGames.com/
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
>
>
>
>
>
>
>


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree



Mon Dec 8, 2003 12:10 pm

fireviper9999
Offline Offline
Send Email Send Email

Forward
Message #182 of 195 |
Expand Messages Author Sort by Date

I'm not familiar with Java, but I know in C++ you could shorten one line functions as follows: public void init() logo=getImage(getDocumentBase(),"logo.jpg");...
Forest Handford
fhandford@...
Send Email
Dec 8, 2003
3:40 am

but do i have to <include> any files? ... __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard ...
Touseef Hasan
fireviper9999
Offline Send Email
Dec 8, 2003
12:10 pm

even i'm not familiar with java.. but i think we dont need to declare logo as public.... may be it causes some trouble.... public Image logo; -> Image logo; ...
balajee_jobs
Offline Send Email
Dec 14, 2003
1:40 am

ok i'll try, ... __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree...
Touseef Hasan
fireviper9999
Offline Send Email
Dec 14, 2003
2:28 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help