Can You remove Layers from JLayeredPane?

Hi,
Can you remove a layer that you once added to a JLayeredPane?
I am trying to use the "remove" method in the api.
I add a layer like this:
r_lp.add(r_close_but, new Integer(2));
But when i try to remove it like this:
r_lp.remove(2);
i get the following:     
ArrayIndexOutOfBounds Exception: No such child 2
Why?
is there a way to achieve what i want, to delete the layer?
thanks

Hi Axia,
You cannot remove a layer from the JLayeredPane, only the components added to the JLayeredPane using remove(int) where int is the indexed component from this pane. This is the absolute index, ignoring layers.
So you just need to do r_lp.remove(1) assuming there is only one component added to the pane.
nes

Similar Messages

  • Iweb question. How can you remove music from a page?

    How can you remove music from a your welcome page on iweb? Dumb but I can'f figure it out.

    Hi ...
    Try posting in the iWeb forum here.

  • How can you remove apps from my i cloud account

    How can you remove apps songs from i cloud account

    Welcome to the Apple community.
    The apps are not actually in your iCloud storage, they are links to the apps in the App Store. What you are seeing is your purchase history and as such cannot be deleted.
    You can however hide your purchases, which you can do from the QuickLinks > Purchased option from the main page in the iTunes Store on your computer.

  • HT203216 Can you remove contacts from an ipod updated with iTunes 11 software?

    Does anyone know how you can remove all contacts from an iPod under the new iTunes 11 software?  We sync to one family account and the kids don't want my contacts - how can you delete them?  We can't find the area to select to eliminate the sync of the contacts when the iPod is synced to our account.  Anyone able to help? 

    Ctrl + B for show Top Menu
    View > Show Sidebar
    itunes will now look more like itunes 10.
    You can click on your device in the lefthand window as before
    You may prefer to use the Music Sync page to select or deselect Playlists, Artists, Albums etc and click apply.
    Delete your files is enabled by ticking the Manualy manage music option on the Device Summary page. You may have to scroll down to find it

  • Can you remove items from the toolbar when opening a pdf in a browser?

    I know you can turn off the toolbar with open parameters, but we would like to only display the zoom controls on the toolbar.  Can I do this with an FDF file or some other way?

    Hi,
    You mentioned that "JavaScript in the PDF can hide toolbar buttons."
    According to the Javascript docs for Acrobat 7 the App.HideToolbarButton function only runs at AppInit.  Which means that I would have to have the javascript in a file.  How can I do that from within the document?  Is there another way to to do set this from our web application?
    Rob

  • Re: Can you copy layers from one scene and paste them in   another???

    you can very easily duplicate scenes also :)
    try opening the Scenes panel :)
    Chris Georgenes
    Adobe Community Expert
    mudbubble.com
    keyframer.com
    howtocheatinflash.com
    meesh meesh wrote:
    > And if so....how?
    >
    > (and if so...will they be placed in the same position as
    the others...or will I have to re-position them?)
    >
    > thanks!

    I don't think you can copy layers – at least not in the
    way you are thinking.
    But you can select frames or a range of frames and then
    copy/cut frames.
    In the new document you can then paste frames. It has a lot
    of variations depending upon how you many you copy, if there are
    multiple layers, what area you select before pasting and so on. It
    would take a lot to describe and I'm not sure I would describe it
    properly.
    Generally just give it a try and get an intuitive feel for
    it. The choices are available from the Edit menu but also from a
    right click.
    It is also possible to slect and edit multiple frames so if
    you do need to move a bunch of things on different key frames that
    is also possible.

  • Can you copy layers from one scene and paste them in another???

    And if so....how?
    (and if so...will they be placed in the same position as the
    others...or will I have to re-position them?)
    thanks!

    I don't think you can copy layers – at least not in the
    way you are thinking.
    But you can select frames or a range of frames and then
    copy/cut frames.
    In the new document you can then paste frames. It has a lot
    of variations depending upon how you many you copy, if there are
    multiple layers, what area you select before pasting and so on. It
    would take a lot to describe and I'm not sure I would describe it
    properly.
    Generally just give it a try and get an intuitive feel for
    it. The choices are available from the Edit menu but also from a
    right click.
    It is also possible to slect and edit multiple frames so if
    you do need to move a bunch of things on different key frames that
    is also possible.

  • Can you remove apps from the icloud?

    I want to remove some of my apps from the icloud but I don't know if one can even do this.

    You can hide them in your purchase history. You can not delete them. The purchase history is a permanent record of what you've purchased.

  • How can you remove "sent from my smartphone" from email messages?

    Can't find where to remove the sis signature line. Suggestions?Samsung Galaxy S 5

    In your inbox, select the three line menu button on the top left.
    Select "Manage Accounts" on the bottom of the menu.
    Select the account for which you want to make this change.
    Select the "Signature" section.
    You'll be able to turn it off or edit it from this menu.

  • HT204266 Can you remove money from a iTunes account and get Apple to send you cash in that amount?

    I really want to get rid of some money on my iTunes account because I do not buy items from the iTunes or App Stores. Is it possible for Apple to exchange that money into cash or a PayPal?

    ... I do not buy items from the iTunes or App Stores.
    You already bought 'em when you redeemed the card!   All you need to do now is pick out what you want.
    Just use the balance to buy some songs that you like.  Once they are downloaded, convert them to MP3/320 format (to remove the iTunes fingerprints), and...  enjoy the music!

  • Can you remove lists from contacts in yahoo mail

    Some lists are already there, which I don't need, like "test" and "photoimport" How do you get rid of them?
    10.6.8

    Hello edwina7, many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • Can you remove members from the outline using ESSCMD?

    The product line dimension in my cube looks something like this:Product Line Product 1 Product 2 Service Parts Part 1 Part 2 etc.I have an automated script which builds the product line dimension, loads a new data set, and does a CALC ALL to roll up Part 1, Part 2, etc., into Service Parts. Once that rollup has occurred, I want to remove Part 1, Part 2, etc., from the outline, but I have not found a way to do that from ESSCMD. Is there a way I can automate the removal of members from a dimension?Any hints or suggestions are greatly appreciated.-jimb

    You could create a new dimension build file for your products dimension but only down to the service parts level. then use a load rule with the remove unspecified box checked on the Dimension build setting tab. This shold cause a restructure of the database, hopefully your product dimension is sparse.Good LuckGlenn UrbanDirector of consultingVision BIA, LLC630.873.3165

  • Can you remove money from one itunes account to another

    I am trying to buy an add on to an app that we all ready have but for some reason it is saying that I connot purchase what I need because my account didnt purchase the app.  Can I move money over ot how should I go about doing this. 

    If the credit that you wish to transfer is just a remainder of a previous gift card that you redeemed, then it is not possible to transfer it to your other account.
    But if it is unused (redeemed 20 GC and it is still 20 on the account), you may request to have it underedeemed. You need to call the Account Security Team as you will need to verify the account info and also provide the redemption code for the caed.
    https://expresslane.apple.com/Issues.do

  • How can you remove mirroring from the digital images of old photographs?

    I have inherited several hundred old photographs and many of them display "silver mirroring" in the black regions which creates a bluish cast on the scanned image.  Is there a simple way to reduce this problem during the scanning process or is there a way within Photoshop to repair it?  With many such photographs, I shutter to consider the time required to repair them one-by-one in Photoshop.

    When scanning, try setting the black threshold up a bit.  This might loose some detail in the dark regions, but it will also make the slightly lighter images in the dark regions disappear.  It depends on how light the images are and how much dark-region detail you are willing to sacrifice.
    Yes the Photoshop forums should also help you.
    Good luck,
    Jay

  • HT3702 How can you remove a credit card from your account?

    How can you remove a credit card from itunes account?

    See if this support document answers your question. Why can’t I select None when I edit my Apple ID payment information? - Apple Support

Maybe you are looking for

  • How can I get Firefox to print at normal size (like IE). to a full A4 page,?

    Up to about 3 updates ago, amy printing from Firefox worked fine. Since then an A4 pahe is squessed into the top LH corner (about 1/4 the size). So if I need to print anything from the browser (e.g. a map) I have to use IE. Looks like a bug in that u

  • How to generate sessions manually in Oracle

    Guys can anybody tell me how I can automatically generate sessions by using some codes rather manually triggering sessions. See I'm going to implement a multithreading tool by running the tool on different sessions but on a single instant. So I have

  • Junk Amount Values in Table Maintenance Generator

    Hello All, I have created an event (01) in table maintenance generator. In this i am triggering a workflow. The problem here is, in my table there is a fields of type CURR and CUKY. I am inserting new values by using SM30. I am entering some 100 doll

  • MDM Web Service authentication issue. How to use ?

    Hi, I' am a Microsoft technology person I' am working on integrating SAP MDM 7.1 to SharePoint 2010 using MDM Web Services interface and consuming the same in .NET custom component. I tried the WS with "None" authentication and it worked great. I' am

  • Use of Tab key in Mavericks

    I used to be able to navigate between such buttons using my Tab key on the keyboard. Now it seems I'm stuck to the mouse. Awful. Please help. How do I enable my Tab key again? Thanks