Removing Images From an Applet

Is it possible to remove an image from an applet? For example, if you click on an image, it is deleted permanently.
Thanks,
gigabit

Yes, sorry. I phrased it poorly.
I have multiple images on my applet, however. I only
want to make certain images no longer visible to the
image. Is it possible to specify which images you
want to hide?Just don't draw them.
Not being able to select which pictures are to be painted and which aren't hint at a design flaw of your program's. Have a list of pictures and booleans whether they are to be shown. Run through the list and draw each picture as needed. Or skip the booleans and simply remove the reference to the image from the list.

Similar Messages

  • How to writing an image from my applet to my apache webserver

    hi everyone,
    i have a big problem, writing an image from my applet to my apache
    webserver. i tried three way's of writing that file. every way was
    described in forums to solve this problem, but non of them worked and
    i don't know why. i'll give you the code of my writing-methods and
    describe, what happen when i test them, in order someone of you can
    give me an usefull tip, where the problem is.
    as inputparameter i give my method a new URL referring to
    http://localhost/test.jpg (this is the same directory, where my applet
    is loaded from, so i should have reading and writing permission,
    havn't i? while i'm developing, my applet runs on the same pc as my
    webserver, just in case you're wondering about localhost) and a
    selfmade BufferedImage (i already testet if it is not null and shows
    the correct things ... all ok).
    1. try:
    private void writeImageToServer(URL fileURL,BufferedImage img){
    try {
    URLConnection urlConnection = fileURL.openConnection();
    urlConnection.setDoOutput(true);
    OutputStream urlout = urlConnection.getOutputStream();
    BufferedOutputStream out = new BufferedOutputStream(urlout);
    ImageIO.write(img,"jpg",out);
    out.close(); // i also tried without this line -> same result
    // additionally a question: do i need
    out.close()?
    catch( IOException e ){
    e.printStackTrace();
    result:
    test.jpg doesn't appear in the webroot. but some very strange messages
    in the error.log of my apacheserver:
    [Tue Jun 08 11:40:22 2004] [error] [client 127.0.0.1] File does not
    exist: c:/programme/apache
    group/apache/htdocs/meta-inf/services/javax.imageio.spi.ImageOutputStreamSpi
    [Tue Jun 08 11:40:22 2004] [error] [client 127.0.0.1] File does not
    exist: c:/programme/apache
    group/apache/htdocs/meta-inf/services/javax.imageio.spi.ImageReaderSpi
    [Tue Jun 08 11:40:22 2004] [error] [client 127.0.0.1] File does not
    exist: c:/programme/apache
    group/apache/htdocs/meta-inf/services/javax.imageio.spi.ImageInputStreamSpi
    [Tue Jun 08 11:40:22 2004] [error] [client 127.0.0.1] File does not
    exist: c:/programme/apache
    group/apache/htdocs/meta-inf/services/javax.imageio.spi.ImageWriterSpi
    [Tue Jun 08 11:40:22 2004] [error] [client 127.0.0.1] File does not
    exist: c:/programme/apache
    group/apache/htdocs/meta-inf/services/javax.imageio.spi.ImageTranscoderSpi
    i cannot explain this lines to myself, because my apache should have
    nothing to do with java. all my javacode is executed on the client
    side in the browser. do this messages mean i have to add the ImageIO
    package from the sdk to my jar-applet. the jre, used by my iexplorer,
    doesn't contain this files in the meta-inf/services directory of
    rt.jar, but that's version 1.4.2_03, the same as my sdk, and the
    rt.jar contains the corresponding classfiles at javax.imageio.spi. so
    i'm realy confused by this messages.
    2. try:
    private void writeImageToServer(URL fileURL,BufferedImage img){
    try {
    URLConnection urlConnection = fileURL.openConnection();
    urlConnection.setDoOutput(true);
    OutputStream urlout = urlConnection.getOutputStream();
    BufferedOutputStream out = new BufferedOutputStream(urlout);
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
    encoder.encode(img);
    out.close(); // same comments as above
    catch( IOException e ){
    e.printStackTrace();
    result:
    nothing. no error-messages in the error.log, no exceptions in the
    java-console and no test.jpg in the webroot. i searched my whole
    harddrives for it: nothing. isn't this the way, the JPEGImageEncoder
    works?
    3. try:
    private void writeImageToServer(URL fileURL,BufferedImage img){
    try {
    File file = new File(fileURL.toString);
    file.createNewFile();
    BufferedOutputStream out = new BufferedOutputStream(new
    FileOutputStream(file));
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
    encoder.encode(img);
    out.close(); // same comments as above
    catch( Exception e ){
    e.printStackTrace();
    result:
    the SecurityManager denies this action with "access denied" while
    calling createNewFile(). well, this way was dedicated to run from an
    application, not from an applet. i'd have to sign my applet to get the
    rights to do this, or i can edit java.policy on my client, what i
    don't want, because i cannot do this on every client, the applet will
    run, when i'm finished with it. this brings me to the question: does
    anybody know's how to sign my applet and give it full access to the
    harddrive and the webserver without paying 400$ to VeriSign for a
    commercial CA? i want to do this by myself, without paying anything
    and without giving a lot of information to another company.
    i would realy appreciate, if someone could give me a hint where i am
    wrong or how to do this correct.
    thank you very much
    [email protected]

    You hold several misconceptions. The first is that an applet can write to a server without help from the server. That will never work on a real server (though it might work in testing, if the server is on the same PC as the applet). Applets cannot get a File object that points to any place on the server.
    If you write a servlet designed for accepting image uploads, the applet can communicate back to that servlet and feed it the bytes of the image. There are other technologies that can replace the servlet, of course (PHP, ASP..) but I mention that because you say you are running Apache - and that is very Java oriented.
    For more help on servlets, try the [Web Tier APIs - Java Servlet|http://forums.sun.com/forum.jspa?forumID=33] forum.

  • How do I remove images from aperture?

    Totally new to apple and aperture so I apologise if this seems like a somewhat noob question but how do I remove images from aperture (using the latest version, 3.4.1)? Coming from a PC and using lightroom I'm used to being able to remove images in two ways:
    - removing the image from the "library", so that it no longer shows up in the program at all but is still on your hard drive (when I say removing it from the program entirely, I mean entirely, i.e. not sitting in a trash can or some other place where it's still taking up memory)
    - deleting the original image off the hard drive
    Is it possible to do either of these things in aperture, on both just a single image or a selection of multiple images, and if so how? I've tried googling this already and am getting a bunch of mixed solutions, none of which have really worked so far, so any answers would be appreciated. Thanks!

    The answer partially depends on whether you have a managed or referenced library. Since you're totally new to Aperture, I'm assuming you have a managed library since that's the default.
    FYI: Managed means Aperture handles image files and places them inside the library file. Referenced means you manage the image files and Aperture only points to (references) them.
    For a managed library, select an image you want to delete. Type command-delete. (That's the reverse delete key next to the "=" key). (You can also right-click an image and choose Delete Version) That will remove the images from their Project and place in the Aperture Trash. They're still taking up space in the Trash. If you really want them gone for good, right-click the Trash in the library pane and select Empty Trash. Poof.
    For a reference library, I forgot the exact details since I don't use this type of library, but you'll be asked (or can check a box) to delete the original file from the disk.

  • How do I remove images from Notes app?

    How do I remove images from Notes app?
    I sometimes find that, when cutting and pasting text from the web, an image is also copied (pretty much at all times I try and avoid this, but sometimes the selection process doesn't allow for fine enough control - e.g. a whole block of content may be selected, rather than just the few words I'm trying to copy).
    I then find, once it's part of my note, that I cannot select the unwanted image and remove it. Can anyone tell me if this is something that can be done, and if so... how?
    Thanks, Sebastain

    Hi Drew & Kilgore*
    Thanks for your replies. I also have and use Simplenote, although I went off it for a while, when it started crashing all the time on me. It seems to be more stable again now, so I'll start using it more regularly again, perhaps.
    I am, obviously, disappointed that one can't simply select ANY object within a Notes document and choose to delete it. As I rather suspected, the only solution is an annoying workaround. Apple stuff seems to get more like this as time goes by. At least in my experience.
    I solved the issue my own way in the end, but I guess it was close to your 1st idea DR, and your 2nd option, KT: I basically cut and pasted everything above, and then everything below, the image, and pasted both chunks of text into a new note. So it took two passes, and left me with the original note just displaying the image, which I then trashed.
    Tapping to the right of the image followed by deletion was what I hoped & expected would work. But instead the image stayed put and the text below the cursor would simply slide along the right hand side, moving upwards as I deleted! Most bizarre, to my mind at least.
    Anyway thanks for the feedback. But, for anyone else that might want to know how to do this, the answer is: NO, you can't select and delete an image once it's in one of your notes!
    * I quite recently watched the rather strange Bruce Willis / Nick Nolte 'Breakfast of Champions' movie... I think I still prefer the book to the film!

  • Removing Images from iPhoto

    I don't know how to remove images from iPhoto 8 or 6. I prefer to use PhotoShop Elements and I want to move the iPhoto images from wherever they are into a separdate folder so that I can put them into Bridge CS3 and use Elements. But I cannot figure a way to do this. Thanks.

    Terence
    I purchased the Duplicate Annihilator that you recommended and with about an hour it had detected almost 5,000 duplicates, so I went ahead and identified them, also did the thumbs and found about 300 there, so I put them in the trash and deleted all that came up and now I am down to 5,000 - pictures. I will run it again tomorrow
    Thank you for your help, and a bargain to boot, I must tell my Mac store about this!
    Very much appreciated.... the reason that I hesitated to bring over the old iPhoto is that a few months back a bunch of my pictures from there 'disappeared' -so I didn't want to import a corrupt application?
    Happy trails
    Jan

  • Unable to remove image from photoshop

    unable to remove image from photoshop

    in the top line under adobe photoshop cs6
    the data of the 2 images appears if  i check the x it goes away  only to return the next time I close photo and reopen cs6
    same thing happens  if I close individually  or close all    seems that any I way close it  or empty  the data bar
    then close photo shop and reopen it  the 2 images are back   open photo shop from application in the application folder same thing
    cut clear grayed out under edit

  • Remove images from library without deleting referenced files

    Hi,
    I cannot find solution: how do I remove images from Aperture library completely (all versions, etc), but keep the referenced master files? (all my images are kept outside aperture lib, as referenced masters).
    If I delete all versions and projects, they go to Trash, and attempting to empty the Trash brings only two options: delete permanently and move to system Trash. But I do not want to touch the referenced masters in any way. Is there a way to keep them safe, while emptying Aperture of all references to those files?
    Thanks.

    If the originals are referenced when you empty the Aperture trash the confirm box will have a checkbox asking yf you also want to move the referenced originals to the system trash.
    If you do not select this option the referenced originals are left where they are. If you of not see this option in the confirmation box then the originals in the Trash are not referenced.

  • How to sync different image folders from pc without removing images from ipad

    how to sync different image folders from pc without removing images from ipad as ipad asks to replace the already existing images in ipad with the pc folder.

    Spare yourself the frustration, use Photo Manager Pro.
    https://itunes.apple.com/sg/app/photo-manager-pro/id393858562?mt=8

  • Pages 5.0 removing images from tables.

    After upgrading to Pages 5.0 I now receive a message when opening any file with a table that has images in the cells.  Basically Pages is removing all images from table cells.  Anyone having this problem and is there an easy fix?

    DrBrian, this is what I did to resolve this issue.  I found out that we may still have Pages 09 installed on our systems! Go into Finder - Applications.  If you have a folder titled iWork 09 click it and you may find Pages 09 there.  Double click to open Pages version 09 where you will be able to open all of your files just as they should be. 
    I will not be using the new Pages upgrade.  I have too much time invested in creating documents and templates for my business and I am not willing to re-learn a new package which has much less functionality.  Hope this helps you.

  • Does anyone know how to remove images from google

    i had instagram and i didnt upload images of myself but i only used my own image in the display picture and some how it has gone on to the google image search yesterday i deleted my account but when i checked to see if my images do appear in the google images i had some really bad regrets !! i reallywant to know how i can remove pictures off the google image search  even doe this does not kind of relate thank you .

    Does anyone know how to remove vocals from an import from I tunes...a  polyphonic stereo mix ?
    If you are talking about some "Karaoke" method using Logic I'll try to offer one. Before that I must say that most of the Karaoke methods are based on reversing the Phase of one of the stereo channel and bussing or merging the stereo into Mono. The result is: killing all Pan Centered in the mix - like Main Vocal, Bass, Kick, SN ect.
    The artifacts of the Stereo FX of the main vocal will stay in the Karaoke, cause the FX is stereo etc.
    Here is the Logic Setup I can offer to try some Karaoke trick using Logic.
    1. Import a Stereo mix into a Logic Stereo track.
    2. Create another stereo track and duplicate (copy) the Original Mix region to the duplicated track.
    3. Hard Pan L/R both stereo tracks.
    4. Insert an EQ and Gainer plugins into the duplicated track (R).
    5. Set the Output select of the both tracks to a Bus and assign the new Aux Track Switch mode to "Mono".
    6. Open the Gainer plugin and thick the "Phase Invert" Right button.
    7. To keep the "lowend" instruments like the bass and kick, open the EQ plugin and enable the Low Cut filter and try some Hz settings 80-115, or different Q which will sounds better for your Karaoke.
    P.S Click the image below to show its real resolution!
    Regards,
    A.G
    ======================================
    www.audiogrocery.com
    Author of: Logic GUI Deluxe(Free), Vox De Bulgaria s.a.g.e vocal pack for RMX, Logic Snapshot Console, RMX Power CTRL - Logic Environment Midi editor for Stylus etc.
    ======================================

  • Removing images from cover flow

    I haved added some album art to my iTunes library. This was for songs I had downloaded from my own CD library. Some images I found online, but for those I could not find I used iTunes command in the advanced menu – GET ALBUM ARTWORK. This resulted in a few wrong choices on Apple's part. Now, I don't know how to get rid of them. Using "Get Info" in the File menu and going to Artwork only lets me change these new images in the small box below the playlists. I can't seem to remove the image from the Cover Flow view.

    Hi-
    On the flip-side, how do you remove album artwork created by ones self?! I added some images in the "artwork frame" that were from my personal image bank and now I can't delete or change them. I have searched for a solution and can't seem to find an answer. Am I stuck with them now?
    Thanks,
    Beth

  • Removing images from Apple TV

    How do you remove cached images from your Apple TV library? Home sharing is on; we have library's on our computer but old images remain on the Apple TV.

    I have an iPad and Apple TV with Photostream used on both. I tried deleting photos from Photostream (on the iPad) and some still remain (most did delete).
    In order to clear Photostream, I completely eliminated it from the iPad and turned it off. I signed off Photostream on Apple TV and restarted it. Even though the photos originated on the iPad and it's been completely deleted from there and completely turned off there ... they still show up on Apple TV.
    I restored Apple TV back to factory state and it reloaded the software update. After all that (and with no Photostream on the iPad) Apple TV still, somehow, gets all the old photos (including some of the prior deleted ones) when it should be getting none at all. Photostream has been "on" nowhere at all.
    I don't seem to be even able to get rid of all the pictures in Photostream, no matter what I do!

  • Remove images from camera album when in a folder

    I created a images folder (in the photos app) and transferred some of my pictures there. How can I remove those pictures from my main camera roll without removing it from the folder?
    Note: I am using a iPhone 3GS with iOS 5.

    You can't.

  • Removing images from PSE7 catalog whenever try to enlarge view

    Just recently, I have started to have an issue whenever I try to enlarge some of my images for viewing on PSE7. When I doubleclick on the image that I want to enlarge, the image is removed from the thumbnails as if it was removed from the catalog.When I try to import the image back, the "already in catalog" message pops up,but I cannot find the image anywhere. Does anyone know what can be causing this and how can I bring the image to show back in the thumbnails index? I thought that I had accidentally hid the images from view, but that does not seem to be the case.
    Thanks for your help.

    Hi,
    One change done for Network drives is that it shows only those folders present on network (along with its parents) from which you have imported files to Organizer. This is done mainly to enhance performance of Folder Location View when working with Network drives. (Overhead of showing the entire folder hierachy in Folder View is that expanding the folder tree takes significant amount of time.) It is because of this change that new folders created on network don't show up in folder view until they are managed.
    Same happens when you create a new folder on a network drive via folder view. The folder is created but since it is not managed/imported to Organizer, it doesn't show up in the view.
    So for your workflow, I would suggest the following workaround:
    1. Place all folders inside a parent folder on network drive
    2. Import files from atleast one sub folder of the network using Get Files and photos
    3. The manged sub folder and its parent will now show up. Import all other sub folders of the parent by using 'Import to Organizer' available for the parent folder.You may keep adding new folders to this parent folder in future and import them using import option available for the parent
    Hope that hepls. thanks.

  • Remove images from slideshow

    Is there any way to remove an unwanted image in a Muse slideshow??

    Hello,
    In  order to delete the images from a slideshow widget in a convenient way, I would suggest you to enable thumbnail by clicking on whit arrow in  blue circle which comes up at the to right of the widget when it is selected (Widget properties) and check the option which says Thumbnail.
    Now you will se thumbnails of the images. Select the one you want to delete and press delete on keyboard.
    Now you can uncheck the thumbnail option once you are done.
    Hope this helps.
    Regards,
    Sachin

Maybe you are looking for

  • Upgrading to CS4 web premium ... or wait for CS5 ?

    The actual question I have for anyone who may have some insight:  Is there anything groundbreaking in the works for Dreamweaver, Photoshop or Illustrator in CS5 which is due to be released in about 6 months ? We have CS3 Web Standard, and now want to

  • Separate amount for each individual customer to valuate quantity

    Hi, I have a requirement where the amount to valuate the quantity for each customer can be different. If the customer is generating power, the credit that he gets paid is dependent on the contract price which was agreed at the time of signing up the

  • MIRO Tax Codes being changed from PO Tax codes

    Hi, When I raise a PO with GL acc assignment to 466001 if I use a tax code other than V0 i get the error message "G/L account 466001 permits only tax code V0; this is correct as the only tax code allowed should be V0 for this GL account and this is i

  • Created by field determined  in sales order creation

    Hi, I am trying to integrate SAP with a third party program. Sales orders are created by idocs but I want to differentiate the sales orders created by interface from the orders created in SAP directly. So I created a user id as RFCUSER. I want to sho

  • Unable to see the "Password Reset" tab in Indentity Store (SAP IDM 7.1)

    I am trying to implement Password self-service as per the document "SAP NewWeaver Idenitty Management Identity Center Self-service password reset Implementation Guide" Version 7.1 Rev 2. In this guide, references are made to the Password Reset Tab in