How can I delete an object?

If I create a JLabel, how can I delete it?
Somebody told me that with remove.
How do you use it?

[Swing Tutorial|http://java.sun.com/docs/books/tutorial/uiswing/]
[java.awt.Container.remove(java.awt.Component)|http://java.sun.com/javase/6/docs/api/java/awt/Container.html#remove(java.awt.Component)]
This is not "deleting an object" it is "removing a GUI element from a container". You can not "delete an object" in Java, you can remove all references to it and let the GC get rid of it, but from the body of your question it sounds like you want to "removing a GUI element from a container" not "delete an object".

Similar Messages

  • How can I delete Z.SAPB18.8_MyPO object from B1iSN 8.8

    Dear All,
    I have created only one object type (apart from the B1iSN default one)
    Ex: For the Purchase Order object (LocalObjectId = 22) I defined only one B1iSN object type.
    but I have the same error message "Sender SysId, Sender ObjectType or Sender payload is missing".
    suppose If by mistake I create two B1iSN object types for the same B1 object (same local object id)
    how can I delete one object from those two objects.
    Thanks and Regards,
    Anvar

    Hi Anvar,
    Z-objects always have priority against standard objects.
    =>  if you have more Z-objects for the same local object ID, it's always the latest created object
    If you created an Z-object, please make sure, that the BIUs can handle this object.
    All default integration scenarios need to be adjusted or copied to support the newly created z object.
    If you want to delete your newly created object, go to SAP B1iSN Tools -> Repository Tools -> Entities - Remove:
    Select your Entity Type (e.g. Object Type) and your Entity Instance (e.g. Z.SAPB18.8_MyPO) and press button Delete Entity.
    B1iSN gives you information, if there're constraints (e.g. Publication Object or object is used in an active integration scenario) and the object can't be deleted.
    Best regards
    Bastian

  • How can I delete objects in my list of purchased objects?

    How can I delete objects like books or music from my list of bought items?

    You can't.
    Being able to do so would NEGATIVELY affect Apples iCloud system of memorizing all consumer purchases as a means of storing such info in the Cloud.

  • I am trying to delete pages I have crated in numbers, but can only see them in print preview. Without print preview I do not see them. How can I delete these pages, but keep others before and after?

    I am trying to delete pages I have crated in numbers, but can only see them in print preview. Without print preview I do not see them. How can I delete these pages, but keep others before and after?

    Hi Crushed,
    Numbers doesn't have pages. It has a canvas that holds objects such as tables and charts.
    Drag the objects from the bottom of the canvas onto the white space above. That will reduce the number of "pages" (sheets of paper) that will print.
    Regards,
    Ian.

  • How can I delete or reset bookmark data in iCloud?

    How can I delete or re-set bookmark data in iCloud. I have sync'd with blank from safari, then re-loaded safari with new list. Sync to phone works fine.
    Now everytime I re-enable backup to iCloud 500 duplicates are made and all old folders restored.
    Reset should not be that hard to do. FFs I would be fine with a delete all button on the phone.
    Deleting 1000 bookmarks one by one is ridculous.
    Thanks for any suggestions.

    Hi,
    If you want to delete the organisation units / positions
    go to T-code PP01 and give the specific object, number and date period.
    first you have to delete the relationship info type and then object, if object is TCC 1 you can't delete system give error message that TCC 1 will not be deleted.

  • How can i delete software component in the IR

    How can i delete software component in IR,when there are too many SCs?

    If you have to delete a SWCV, you have to delete all the namespaces with in that first. Open a name space and delete all the user defined objects in that first. Then delete the Std Fault and log data types and delete it and remove the name space from the SWCV by opening the SWCV and using - button on the name space. Now activate the changes. This will delete the name space.
    Repeat the step for all the name space with in the SWCV. After all objects are deleted. Open the SWCV and use the menu, SWCV ->Delete object.
    Regards,
    Jai Shanakr

  • How can I write new objects to the existing file with already written objec

    Hi,
    I've got a problem in my app.
    Namely, my app stores data as objects written to the files. Everything is OK, when I write some data (objects of a class defined by me) to the file (by using writeObject method from ObjectOutputStream) and then I'm reading it sequencially by the corresponding readObject method (from ObjectInputStream).
    Problems start when I add new objects to the already existing file (to the end of this file). Then, when I'm trying to read newly written data, I get an exception:
    java.io.StreamCorruptedException
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.readObject(Unknown Source)
    Is there any method to avoid corrupting the stream? Maybe it is a silly problem, but I really can't cope with it! How can I write new objects to the existing file with already written objects?
    If anyone of you know something about this issue, please help!
    Jai

    Here is a piece of sample codes. You can save the bytes read from the object by invoking save(byte[] b), and load the last inserted object by invoking load.
    * Created on 2004-12-23
    package com.cpic.msgbus.monitor.util.cachequeue;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.RandomAccessFile;
    * @author elgs This is a very high performance implemention of Cache.
    public class StackCache implements Cache
        protected long             seed    = 0;
        protected RandomAccessFile raf;
        protected int              count;
        protected String           cacheDeviceName;
        protected Adapter          adapter;
        protected long             pointer = 0;
        protected File             f;
        public StackCache(String name) throws IOException
            cacheDeviceName = name;
            f = new File(Const.cacheHome + name);
            raf = new RandomAccessFile(f, "rw");
            if (raf.length() == 0)
                raf.writeLong(0L);
         * Whne the cache file is getting large in size and may there be fragments,
         * we should do a shrink.
        public synchronized void shrink() throws IOException
            int BUF = 8192;
            long pointer = getPointer();
            long size = pointer + 4;
            File temp = new File(Const.cacheHome + getCacheDeviceName() + ".shrink");
            FileInputStream in = new FileInputStream(f);
            FileOutputStream out = new FileOutputStream(temp);
            byte[] buf = new byte[BUF];
            long runs = size / BUF;
            int mode = (int) size % BUF;
            for (long l = 0; l < runs; ++l)
                in.read(buf);
                out.write(buf);
            in.read(buf, 0, mode);
            out.write(buf, 0, mode);
            out.flush();
            out.close();
            in.close();
            raf.close();
            f.delete();
            temp.renameTo(f);
            raf = new RandomAccessFile(f, "rw");
        private synchronized long getPointer() throws IOException
            long l = raf.getFilePointer();
            raf.seek(0);
            long pointer = raf.readLong();
            raf.seek(l);
            return pointer < 8 ? 4 : pointer;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#load()
        public synchronized byte[] load() throws IOException
            pointer = getPointer();
            if (pointer < 8)
                return null;
            raf.seek(pointer);
            int length = raf.readInt();
            pointer = pointer - length - 4;
            raf.seek(0);
            raf.writeLong(pointer);
            byte[] b = new byte[length];
            raf.seek(pointer + 4);
            raf.read(b);
            --count;
            return b;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#save(byte[])
        public synchronized void save(byte[] b) throws IOException
            pointer = getPointer();
            int length = b.length;
            pointer += 4;
            raf.seek(pointer);
            raf.write(b);
            raf.writeInt(length);
            pointer = raf.getFilePointer() - 4;
            raf.seek(0);
            raf.writeLong(pointer);
            ++count;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#getCachedObjectsCount()
        public synchronized int getCachedObjectsCount()
            return count;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#getCacheDeviceName()
        public String getCacheDeviceName()
            return cacheDeviceName;
    }

  • Two apple I.D., one with the .me email address I want, how can I delete it so that I can use that .me address on my other account?

    I have two apple I.D., one with the .me email address I want, how can I delete it so that I can use that .me address on my other account
    Or is it possible to transfer the purchases (apps) to my new .me account so that I can re-download them in the future without having to switch accounts?

    crazyshark wrote:
    I have two apple I.D., one with the .me email address I want, how can I delete it so that I can use that .me address on my other account
    Or is it possible to transfer the purchases (apps) to my new .me account so that I can re-download them in the future without having to switch accounts?
    You can't do this, and you can't transfer purchases between accounts. There is no conflict about using one ID for iTunes, iTunes in the Cloud and iTunes Match (the ID you've been using for iTunes) and using the other ID for iCloud.

  • HT1918 how can i delete credit card from the itunes store?

    I prefer just to use gifts cards instead of my credit card but itunes wont let me delete my credit card information, and now I cant even redownload applications that i have previously purchased on my ipad. How can I delete and leave my account with no credit card info?

    Moorside01 wrote:
    I have the same issue. My son has an iPod Touch, but it seems that he has to have a credit card associated with the Live ID
    Live ID is for Microsoft.
    Are you saying you do not have the None option when you review his payment info?

  • How can I delete an iTunes account that has been deactivated?

    I deleted an old Apple ID with the help of a call to Apple Support.  However, my iphone is still trying to use the old ID.  How do I log out of the old ID and into the new?  Or, how can I delete the old ID when it has already been deactivated?  (Cannot delete with phone)

    Only iTunes Support can potentially delete an account (which would also delete any purchase history for it, so you would no longer be able to authorise that content on a computer, redownload it, and download updates to its apps) : http://www.apple.com/support/itunes/contact/
    Or you could just remove any personal info from it (e.g. payment details if you have any on it) and stop using it

  • How can I delete an iTunes account ?

    How can I delete an iTunes account ?

    Only iTunes Support can potentially delete an account (which would also delete any purchase history for it, so you would no longer be able to authorise that content on a computer, redownload it, and download updates to its apps) : http://www.apple.com/support/itunes/contact/
    Or you could just remove any personal info from it (e.g. payment details if you have any on it) and stop using it

  • How can I delete my itunes store account

    How can I delete my itunes store account

    At the moment you can't - just remove any personal info from it (e.g. credit card details) and stop using it. If you purchased any content from Apple with it (music, films, apps etc) then you will need to remember the account id and password in case you ever want authorise it so as to use it on a different computer (or the same computer if, for exampel, you upgrade the OS)

  • How can I delete an old iCloud account for which I do not remember the password?  The email address linked to that account is no longer active.

    The email linked to that account is no longer active.  How can I delete this old account and use a new one?

    Although your profile says you're running iOS 5.1.1 it sounds like you're running iOS 7 (otherwise you would not need your password to delete the old account).  Assuming that's true, and your iCloud ID has changed but you need to delete the old account in order to change to your new one, go to https//appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Tap edit next to the primary email account, tap Edit, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https//appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • How can I delete my old OTN Account ?

    Hallo,
    I create a new OTN Account, because I can't change my e.Mail.
    How can I delete my old Account ?
    With kind regards
    Roanld Breuer

    You cannot delete old accounts.

  • My emails do not go - they exit outbox and go to recovered. How can I delete my Icloud account and just use gmail.

    My emails go from outbox into I cloud recovered section. I have gmail too. how can I delete my icloud account and just use gmail? Speed test on wifi good.
    Any ideas please.

    Sign out of iCloud (System Preferences>iCloud)

Maybe you are looking for

  • Relative Path for Attach menu forms or icon file

    How should i able to provide relative path while attaching Forms,menu or icon files in the Form application. So that it can be easily portable Thanx in advance Upendra

  • Cannot type in invitees in ical event.

    Hello, I am facing a problem in adding invitees when creating an ical event I cannot type an address that is not stored in my address book. Is there any way to help please? Thank you

  • How you refresh the planning application

    how you refresh the planning application ? what is an enhanced calculation script?

  • Why is everything appear squeeze in my GUI

    Hi I have created a JPanel that contain a bunch of buttons and a JScrollpane that contain a table. The JPanel is then add to a JFrame. The problem is that when I run my program, the label in the button which should appear as ----------- | newcat | |

  • Wait while loading

    Hello All,      I created a BSP Application and the output is shown on a table view. But while execution it's taking quite amount of time. Finally the output will be displayed. But during this period the page footer says "DONE". So it leaves a impres