I can't see my image in an applet

I am drawing an image in an applet, I see the image in jbuilder but i can't see it with IE 5.0 , I am using graphis 2D, please help me

this is the code in the applet class:
package untitled9;
import java.awt.event.*;
import java.awt.*;
import java.net.*;
import java.applet.*;
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2003</p>
* <p>Company: </p>
* @author unascribed
* @version 1.0
public class Applet1 extends Applet
boolean isStandalone = false;
Image imagen,fondo;
double alpha = -0.2;
int r = 0;
URL u,fondo_url;
PopupMenu popupMenu1 = new PopupMenu();
MenuItem menuItem1 = new MenuItem();
//Get a parameter value
public String getParameter(String key, String def)
return isStandalone ? System.getProperty(key, def) :
(getParameter(key) != null ? getParameter(key) : def);
//Construct the applet
public Applet1()
//Initialize the applet
public void init()
try
jbInit();
catch(Exception e)
e.printStackTrace();
//Component initialization
private void jbInit() throws Exception
menuItem1.setLabel("rotar");
this.addMouseListener(new java.awt.event.MouseAdapter()
public void mousePressed(MouseEvent e)
this_mousePressed(e);
popupMenu1.add(menuItem1);
//Get Applet information
public String getAppletInfo()
return "Applet Information";
//Get parameter info
public String[][] getParameterInfo()
return null;
public void paint(Graphics g)
Graphics g_3 = g.create();
Graphics2D g2 = (Graphics2D)g_3;
Graphics2D g3 = (Graphics2D)g;
if (r==1)
g2.rotate(alpha,100,100);
try
fondo_url = new URL("file:/C:/Documents and Settings/macastro/Escritorio/untitled9/src/untitled9/fondo.gif");
catch (MalformedURLException e)
g3.drawString ("Mal formado el URL",10,10);
fondo = getImage(fondo_url);
g3.drawImage(fondo,100,100,this);
try
u = new URL("file:/C:/Documents and Settings/macastro/Escritorio/untitled9/src/untitled9/imagen.gif");
catch (MalformedURLException e)
g2.drawString ("Mal formado el URL",10,10);
imagen = getImage(u);
g2.drawImage(imagen,100,100,this);
void this_mousePressed(MouseEvent e)
r = 1;
alpha+=-0.1;
repaint();
and this is the code in the html file:
<html>
<head>
<title>
HTML Test Page
</title>
</head>
<body>
untitled9.Applet1 will appear below in a Java enabled browser.<br>
<applet
codebase = "."
code = "untitled9.Applet1.class"
name = "TestApplet"
width = "400"
height = "300"
hspace = "0"
vspace = "0"
align = "middle"
>
</applet>
</body>
</html>

Similar Messages

  • When I have video clips on my timeline, they do not play in the monitor screen. I hear the sound track but can not see the image. To test if my new files are somehow the problem, I went back and used video files that I used successfully a year ago, and th

    When I have video clips on my timeline, they do not play in the monitor screen. I hear the sound track but can not see the image. To test if my new files are somehow the problem, I went back and used video files that I used successfully a year ago, and they no longer play in the monitor window. I hear the sound track, but do not see any video. Have I changed some setting that controls video playback in the monitor window?

    Randy Ruttger
    Thanks for the follow up.
    Missing in this equation were the version of Premiere Elements that you were using and the computer operating system on which it was running. But...
    The deed is done. But.....Until now and after you went ahead and moved to version 12, we now learn what version of Premiere Elements you were using. We still do not know the computer operating system involved.
    You just said Premiere Elements 10. Premiere Elements 10 is hit by a serious known display issue if the computer uses a NVIDIA GeForce video card/graphics card. In this issue, the only remedy is to roll back the driver version to about May 2013. The description of the problem and how to do the roll back are described in one of the Announcements at the top of this forum. What video card/graphics card does your computer use?
    On another front, Adobe will be releasing a new version of Premiere Elements any day now. No one but Adobe knows the feature set for the new version. That type of information is announced at the moment of release of the new version.
    So the remedy to the problem that you presented in this thread could have been...
    1. Rolling back the NVIDIA GeForce driver version to about May 2013 if possible (Windows 8 or 8.1 64 bit, may not be possible)
    2. Move to another version of Premiere Elements (which you did)
    I offer the above for consideration so that you can review your decisions. We are pleased to learn that Premiere Elements 12/12.1 works for you.
    Please do not hesitate to ask questions and ask for clarifications, but remember that the answers are in the details.
    Best wishes,
    ATR

  • I can't see the images on a web page, instead of them I get an interrogation.

    I can't see the images on a web page, instead of them I get an interrogation.This is only one page, and none of the browsers can view your images, and this happened after updating the operating system to Yosemite.

    Safari > Preference > Advanced
    Checkmark the box for "Show Develop menu in menu bar".
    "Develop" menu will appear in the Safari menu bar
    Enable Images.
    Make sure that"Disable Images" is not enabled.

  • In Windows 8, how can I see an image of the psd file instead of the Photoshop icon?

    In Windows 8, how can I see an image of the psd file instead of the Photoshop icon?

    There are a number of third party solutions for this.  I just use Bridge, so can't recommend one in particular.

  • How do I drag an image or text box to the "workspace" off of my working file but where I can still see the image and text box for future use?

    How do I drag an image or text box to the "workspace" off of my working file but where I can still see the image and text box for future use?
    When I drag the item off of the trifold that I am creating, it just disappears but I still want to use it.  I just need to move it out of the way to modify other portions of the document.
    thanks,
    C

    Add another page below the current one to use as a storage area. You can't use the grey area around the page for storing items you want to use later.
    Go to the Pages Menu>Provide Pages Feedback if you would like to request this feature be added in future versions.

  • Why i can't see table, image, attacth files in meeting request mail.

    Hi, I'm Narongdech
    i have a little question in outlook 2013. Why i can't see table, image, attacth files in meeting request mail. i try make a new meeting request for my partner. but them can't see new mail in the correct format. 
    below,This is a image in my outlook 2007. i try to make this format. Please Help me, and let me know that.
    Thank you.

    Hi Narongdech,
    What’s your Exchange server version? I have tested to send a meeting request to my colleague with a table, a PNG picture and a word attachment in my Outlook 2013 with Exchange 2010 environment. And it can be viewed well.
    Please check whether the issue happens to all Outlook 2013 users or some specific ones. We can close Outlook and send a meeting request with pictures and attachments in OWA to have a test. If the OWA test returns everything is OK, the issue may be related
    to Outlook client. Please run Outlook in safe mode and disable all related mail software to check whether the issue persists.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • When working in my photo album in iphoto my photos are replaced with a grey box and an !. I can't see the image on the page.

    Lately when I am working in my photo album in iPhoto my images are replaced with a grey box and an ! . I can't see the images on the page. All my photos are high quality.  What am I doing wrong?

    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • Photos in album are only a hash-marked outline the image only shows when scrolling how can I see the image and open the photo?

    Photos in iPhoto album are only a hash-marked outline the image only shows when scrolling how can I see the image and open the photo?

    Make a temporary, backup copy (if you don't already have a backup copy) of the library and apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Select the options identified in the screenshot. 
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • In capture, i can control the dvd camera, but i can't see the image,...

    in capture, i can control the dvd camera, but i can't see the image, it says "preview disabled."
    Philippe

    Hi,
    I posted the same issue.
    I upgraded FCE 3 to FCE 3.5 on Mac 10.4.6
    At first I had nothing: every attempt at capturing resulted in shutting down of FCE.
    After upgrading to QT 7.1.1 I now have device control but the capture proces is aborted as there seems to be "no video" (miniDV deck)
    Everything is normal with iMovie 6
    Frank

  • Can´t see the images from my contacts

    Since yesterday i can´t see the images from my contacts when receiving a call on my iphone 4S. Please help me.

    Yes they are.
    Enviado do meu iPhone
    No dia 26/06/2014, às 20:15, Apple Support Communities Updates <[email protected]> escreveu:
    You received a reply
    James Ward4 has replied to your question. You can view the full discussion in Apple Support Communities.
    can´t see the images from my contacts                                                                            
    Are those images still in your Photos app?
    Correct Answer  Helpful Answer
    Use the buttons above to tell James Ward4 and the rest of the community if this reply solved your question or helped you get closer to finding a solution.
    To reply to James Ward4, go to the discussion in Apple Support Communities.
    You are receiving this email from Apple Support Communities. You can change your email preferences in your Apple Support Communities Profile.
    TM and copyright © 2014 Apple Inc. 1 Infinite Loop, MS 96-DM. Cupertino, CA 95014.
    All Rights Reserved | Privacy Policy | Terms of Use | Apple Support

  • When i plug my 3rd generation ipod touch into my computer, itunes doesn't notice it, and the computer says it is just a digital camera. i can only see the images on it. Can anyone help?

    When i plug my 3rd generation ipod touch into my computer, itunes doesn't notice it, and the computer says it is just a digital camera. i can only see the images on it. Can anyone help?

    Try
    iOS: Device not recognized in iTunes for Windows
    I would start with              
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or              
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    Before you reinstall the Apple software, also remove iCloud vi Control Panel Remove programs. The reinstall the Apple programs
    New cable and different USB port?
    Runs this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests
    Try on another computer to help determine if computer or iPod problem

  • Why i can't see any image on flickr. That happens most of the times but not always? Both Safari and Firefox

    Why i can't see any image on flickr.
    That happens most of the times but not always?
    Both, on Safari and Firefox i experience the same problem!
    I reseted Safari but seems to be useless

    You can use these steps to check if images are blocked:
    *Open the web page that has the images missing in a browser tab.
    *Click the website favicon ([[Site Identity Button]]) on the left end of the location bar.
    *Click the "More Information" button to open the "Page Info" window with the Security tab selected (also accessible via "Tools > Page Info").
    *Go to the <i>Media</i> tab of the "Tools > Page Info" window.
    *Select the first image link and scroll down through the list with the Down arrow key.
    *If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.

  • Can you see a image in the Get Info Window?

    After upgrading to Mt LIon and while using CS6, I can't see image previews in the Get Info window.  Can't see images in the upper left corner of the get info window, so I can't make a selection and then do a copy- paste like I could do before I upgraded to Mt Lion with CS6.  I want to be able to paste a image of the subjects in my folders..  IE folder of Panda Bears would have a image of a Panda showing on that folder.  Folder of The Great Wall would have a image of the Great Wall on the Folder of Great Wall pictures.  This has always worked for the past many years I have used a Mac and Photoshop.  I started with Photoshop 2.  All my photo folders are represented by images so I have a good idea of what is contained in each folder.  Now after 2 weeks in China, 20 folders are represented by 10-11-12, 10-12-12, 10-13-12, 10-14-12 and so on.  Shows me nothing but dates.  I have tried saving as Jpeg, Tiff, and PAD, and still can't  do a copy-paste in the Get Info window.   Apple says it is a Adobe problem, Yesterday Adobe told me it is because I am uusing a Nikon D800 and Adobe does not have a  patcdh for the NEW Nikon camera.  I then tried using my Nikon D2Xs, Nikon D3X, Nikon 800 and even my wife's D50 and none of these camera allow me to copy paste the thumbnail image to the clipoboard like I have been able to do for YEARS...   I can see images in a folder in Bridge, but the images dont show in my desktop folders.IE, a folder on my desktop with 200 pictures only show with words/ numbers/letters NO IMAGES appear in the folders on the desktop.  On some folders the folders in a folder don't show up as Folders either.
    Can Any one help me.  Same thing happens on my MACPRO w 16 GB Ram and on my 17" MacBook Pro.

    Allan Sicks wrote:
    Thanks for your input.  Problem might be with the EASTER BUNNY..... have to have someone to blame.
    I can't blame you for saying that.
    Adobe is the clear owner of the responsibility to make functional their product that they claim is compatible with your operating system.  Adobe is the one who sold you the product.
    I just went looking for what Adobe has said about Mountain Lion compatibility, and they both list Mountain Lion as compatible and include such language as that on this page (emphasis mine):
    Adobe and Apple have worked closely together to test Adobe® Creative Suite® 5, 5.5 and CS6 editions and individual products for reliability, performance and user experience when installed on Intel® based systems running Mac OS X Mountain Lion (v10.8). Earlier versions of Adobe Photoshop® (CS3 and CS4) software were also tested with Mountain Lion and there are currently no known issues.
    I suggest that Adobe needs to get on the ball and get this fixed.  The time for user patience is over.
    If someone from Adobe is saying "Adobe can't fix it" then that someone is at the wrong authority level and/or is thinking on the wrong level.
    This is business and the business is making products that have value and are sold to people who perceive that value.  Adobe doesn't get to keep selling products that don't work while standing on principles that "it's someone else's problem".   Customers don't care why it doesn't work. 
    It's obvious to a child that if Photoshop CS5 can write the proper things to the Apple OS so that the thumbnails are visible, that there's something Adobe could do to fix it.
    But EVEN IF this were something only Apple could fix, that Apple hasn't fixed it yet says pretty loudly that Adobe isn't making the right overtures to Apple for their mutual benefit.  Adobe, are your executives so greedy that they can't grease a few palms of their friends over at Apple to put some priority on this?  What's the problem here?  Has Adobe actually forgotten how to do business?
    -Noel
    P.S., You should know that I don't use a Mac and am personally having no issues with seeing proper thumbnails and previews on my Windows 7 and 8 systems, since the software that does that isn't from Adobe.

  • Can't see RAW images in Preview of Nikon D80

    When I connect camera, Import window shows icons of images on camera.
    Jpgs are visible as photographs; Raw images are just icon placeholders.
    How can I see which Raw images to import?

    Jack
    Some of the answers to your original question must have well and truly confused you by now. Now here's my contribution:
    (a) you don't need to shoot RAW + JPG's in order for a preview to be displayed. Just by shooting RAW you are also in fact creating a very small JPG image which is embedded into the file and which needs additional software in order to extract it. It is this small embedded JPG file that Lightroom uses in it's preview. To all intents and purposes you can forget all about it.
    (b) whether or not the fact that you are not seeing a preview image on attempting to import is down to not using a Card Reader or not I can't say - I only ever use a Card Reader. It might well be worth your while trying, not only is it more reliable but it is also faster. But just to reiterate - you DON'T need to shoot RAW + JPG to see a preview image. Where this idea came from I have no idea - I have never ever shot RAW and JPG together and have ALWAYS got a preview image.
    Marcos
    I also have EOS Utility installed (on both Laptop and Desktop PC) and as far as I can ascertain the update to v1.1 has not had any effect, either to LR or EOS Utility. If there is a problem with placements as opposed to thumbnail images then the problem lies elsewhere in all probability.

  • I can't see my image map

    I made an image map that I need to edit. For some reason when I take live view off the image disappears, and without being able to see it I can't edit the image map. Is there a way in cs6 to do this? Why can't I see the image??
    http://granthoneymoon.com/faith_boosters.html is the sample site with the image map.

    You can fix your file names in DW from the Files window. When you change the name there to replace spaces with hyphens or underscores, DW will ask if you'd like it to automatically update the links. Hit "yes" it saves a lot of find & replace time.
    Generally speaking it's best to use all lowercase alpha numeric names, avoid any special characters like $%& and use hyphens or underscores instead of spaces for all of your web files/folders.
    Lowercase: Because many servers are case sensitive so AboutMe.html is a separate file from aboutme.html. On your local OS, a link to the uppercase version will give you the lower case page, on the server it will throw a 404 File Not Found error in most cases.
    Special Characters: Many special characters have special meaning in html, css, javascript or other coding languages used online. Throwing one in your file names can cause scripts to malfunction, among other problems.
    Spaces: As Nancy mentioned, it's invalid and can cause broken links in certain browsers. IIRC, FireFox is especially susceptible to spaces causing broken links.

Maybe you are looking for

  • Photoshop won't load

    I am running a new install of windows 7 Ultimate 64 bit on a quad core 2,4 GHz processor with 4 GB of memory. I have a Ge Force 88oo GTS graphics card with 320 MB of GDDR3 and a further 1800MB of shared graphics memory. I have updated windows &, I ha

  • Could both of my USB ports have stopped working at once?

    Before today, I have repeatedly connected my printer and camera to my MacBook Pro. But today nothing has worked through either USB port: not a Seagate external hard drive, not the printer, and not my camera. Could something have gone wrong with the p

  • Sculpture, ultrabeat etc.

    hi again! i can`t find ultrabeat, sculpture etc. in my logic pro7, can anyone give me a step to step list of finding these features and using it? ståle

  • To get WBSElement details

    Dear gurus,        i want to retrieve the all the WBSELEMENTS related to personal number from PS module not from CATSDB table. Is there any function modules regarding this.Please help me. Thanks in advance

  • LSMW testing - Development server to Production server

    Dear Experts, I have made a LSMW for ROH material in development server by changing External number ranger to Internal number ranges. It is working fine & is generating internal number ranges. What i wish to know is, what kind of testing (tables or t