Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Mac > Xcode
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Xcode section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old May 22nd, 2007, 12:53 AM
Registered User
 
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem with images

Hey,
Im really new to xcode and im having some trouble just getting an image to display in an applet. I also use jcreator on a pc and this is the code i use for that:

Image img;

<init>
img = getImage(getCodeBase(),"test.png");

<paint>
g.drawImage(img,0,0,this);

when i typed it out in xcode it didnt display the image.
I think what is wrong is the image im using is not in the right place.. so where should you save the image to?

would appreciate any help on this topic, thanks.

An eye for an eye will only make the whole world blind
-Gandhi
  #2 (permalink)  
Old June 7th, 2007, 12:28 PM
Registered User
 
Join Date: Jun 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am Elkin Diaz from Colombia, i have the same problem; if you know how i solve it? please help me, thanks.






Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with images...... kethireddy435 ASP.NET 2.0 Basics 2 September 17th, 2007 11:37 PM
Problem with images....... kethireddy435 ASP.NET 1.x and 2.0 Application Design 1 September 14th, 2007 11:20 AM
Problem with Images in the MasterPage when .... kalchev ASP.NET 2.0 Basics 20 August 1st, 2007 03:58 PM
Problem with images upload M.Poalim Beginning PHP 1 May 11th, 2007 07:25 PM
problem in getting images downloaded Mystic C# 0 July 6th, 2006 04:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.