Getting component out of the ContainerEvent with a TextPane

Hi,
Here's what i want to do, I have a JTextPane in which i am adding Components ... i added a ContainerListener to the JTextPane. Im am adding dynamically a class that extends JPanel which is representing something that is not important to the problem. When the user delete one of those JPanel, i need to which one.
if the method componentAdded(ContainerEvent e) the ContainerEvent have the getChild() which in my case is returning
javax.swing.text.ComponentView$Invalidator[,0,0,0x0,invalid,layout=javax.swing.OverlayLayout]
So i understood that when im addind a component in a textPane with the method insertComponent() he is creating a ComponentView. Now my problem is : how am i gonna get the reference of the deleted component out of the ComponentView ...
ps. the getChild() method is supposed to return a Component ... but ComponentView is not a subclass of Component, if someone one can help me with my problem or explain me how this insertComponent stuff is working it would be really appreciated
thanks
-JF

I can only reply to your P.S. as I'm not that familiar
with the JTextPane class. It looks like you're not
being returned a ComponentView object -- which you
rightly point out wouldn't be a Component -- but a
ComponentView.Invalidator object which would be
defined as a private inner class of theComponentView
class.
Shaunno one else answered so i have to pay u

Similar Messages

  • I have been trying to work on my homework all afternoon, via NAU's blackboard system. I am continuously getting booted out of the system, with an error stating "Data execution prevention". How can I prevent this from continuing?

    I have been trying to work on my homework all afternoon, via NAU's blackboard system. I am continuously getting booted out of the system, with an error stating "Data execution prevention". How can I prevent this from continuing?

    If you are wondering why you are not getting any responses, it is because you have vented a complaint without any details that make any sense or give anyone something to work on.
    If you want help, I suggest actually detailing what has happened, with versions of software etc. Anything that would let us assist.
    As a start I am guessing that you have not really got the hang of "How it all works". Firstly download the Pages09_UserGuide.pdf from under the Help menu. Read that and view the Video Tutorials in the same place. A good addition would be the iWork 09 Missing manual book and something to help you learn how to use your Mac.
    If there are specific tasks you need help with:
    http://www.freeforum101.com/iworktipsntrick/index.php?mforum=iworktipsntrick
    Is a good resource.
    Peter

  • I received a text today while at work about iCloud keychain verification code. I have not signed up for it or anything that uses it. I work out of the city with limited internet access so not sure why I would be getting this. Is my info safe??

    I received a text today while at work about iCloud keychain verification code. I have not signed up for it or anything that uses it. I work out of the city with limited internet access so not sure why I would be getting this. I only got this number about a month ago. Apparently someone else had the number before because I get texts from his family members wondering whats going on. I got one yesterday and the person didn't seem to thrilled that the number was cutoff and today I got 2 texts about iCloud Keychain which I don't even know what it is. Seems suspicious to me. If the person who use to own the number is doing it he should know it is not his number anymore because he obviously didn't pay his bills.  I'm not too sure about iCloud Keychain so just want to know my info safe?? It says it can store credit card numbers which is what gets me worried. Frankly I think it's pretty stupid to save that kind if information with any kind of app. But I don't want some random person trying to access my personal information because they are bitter they lost their number.  Please let me know as soon as possible so I can change passwords or anything that is needed.
    thanks

    If it were me, I would go to my carrier and get a new number. Since you have only had it for a month, the inconvenience would be minimal.
    Barry

  • How do I store 4 hours of data and get it out of the "while loop" into a spreadshee​t file for documentin​g purposes? "See additional Text for additonal info"

    What a have is a VI that uses the following SUbvi's, starts with FP OpenVI, then FP Create TagVI, into a "While Loop" which contains a FP ReadVI outputting data into a Index ArrayVI outputting to a Display (DBL). This shows the output of a FP-AI-100 monitoring a 9v battery. I have to monitor this battery for a 4 hour period my problem is storing the 4 hours of data and getting it out of the "while loop" into a "Write to Spreadsheet File VI" all I seem to accomplish is just one data sample which I get into a spreed ship file with no problem. I just can't get 4 hours worth. By the way this is my first VI and I'm self
    trained so have mercy.

    I figured it out thanks.
    John Morris
    Glendinning Marine

  • How do I store 4 hours of data and get them out of the "while loop" into a spreadsheet file for documenting purposes? "See additional Text for additonal info"

    What a have is a VI that uses the following SUbvi's, starts with FP OPENvi, then FP Create Tagvi, into a "While Loop" which contains a FP READvi outputting data into a INDEX ARRAYvi outputting to a Display (DBL). This shows the output of a FP-AI-100 monitoring a 9v battery. I have to monitor this battery for a 4 hour period my problem is storing the 4 hours of data and getting it out of the "while loop" into a "Write to Spreadsheet File vi" all I seem to accomplish is just one data sample which I get into a spreed ship file with no problem. I just can't get 4 hours worth. By the way this is my first VI and I'm sel
    f trained so have mercy.

    I figured it out Thanks.
    John Morris
    Glendinning Marine

  • How do you get multiple screens on the iPad with iOS 5.1.1?

    How do you get multiple screens on the iPad with iOS 5.1.1? We just upgraded to iOS 5.1.1, and we see no way to be able to open multiple screens at once. Before, there was a small button in the upper portion of any window. That button would take you from a particular window to the place where multiple windows are open at once. Does it do it differently? Is there a special setting button that we have missed? Thanks!
    One more thing: We are only talking about Safari.

    Guitaristica-
    I don't think I've seen a way to have separate Safari screens visible at the same time.  The small thumbnails were deleted in one of the iOS updates, and replaced with a multiple "Tab" system.
    You can open an additional screen in a new "tab" by pressing and holding on a link until a new menu comes up.
    Fred

  • HT4191 I have Notes that transferred to email when I set up a new email acct. They no longer appear in Notes. I can only access them in the email acct. How do I get them out of the email acct and back to the Notes app?

    I have Notes that transferred to an Email acct when I set up the acct. The Notes no longer appear in the Notes app only in the Email acct. How do I get them out of the Email acct and back to Notes? I stopped at an Apple store and they told me to copy them from the email back to Notes. But when I was in the email acct, I could not find a way to copy them. Shouldn't Notes remain in Notes unless I specifically send them somewhere else?

    Go into Settings > Mail, Contacts, Calendars, select that email account on the right-hand side of the screen and turn Notes 'on' for it - they should then appear in the Notes app instead of as an email folder in the Mail app (they will still be linked to that email account, so you may need to tap the 'Accounts' button at at the top left of the list of notes)

  • I bought the Adobe Photoshop Classroom in a Book for CS6 by accident and I have CC. I know, stupid mistake. But I can't take return the book. Is is similar enough to CC that I can still get use out of the book? Thank you so much

    I bought the Adobe Photoshop Classroom in a Book for CS6 by accident and I have CC. I know, stupid mistake. But I can't take return the book. Is is similar enough to CC that I can still get use out of the book? Thank you so much

    Each version of Adobe products builds upon the previous ones.  Some things like filters and advanced features may evolve or become deprecated over time, but the basic tools have remained pretty much the same for decades.  As long as you know there are subtle differences between versions, I think you will still get a great deal of value from C in a B for CS6.  
    Also refer to the CC online tuts
    Photoshop CC tutorials | Learn how to use Photoshop CC
    Learn Photoshop CC | Adobe TV
    Nancy O.

  • The icloud keeps asking for apple id but cannot get it out of the loop

    the icloud keeps asking for apple id but cannot get it out of the loop.  It will not let me delete or get to settings

    Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...

  • Part of my headphones plug broke off in the port. how do i get it out? the genius bar said their tweezers would not fit

    part of my headphones plug broke off in the port. how do i get it out? the genius bar said their tweezers would not fit

    get smaller tweezers.  you need some type of small instrument.

  • HT4847 My phone was stolen.  How can I get my photos off the iCloud with a Snow Leopard operating system?

    My phone was stolen.  How can I get my photos off the iCloud with Snow Leopard.

    Welcome to the Apple Community
    You can't, if the photos are in photostream you need a compatible device, if they are in a backup, you can only use the backup to restore to a new device.

  • HT203433 I am having trouble moving my music to my new computer. I have enable homeshare. it does not show any files in my homeshare. How do i get them out of the normal files into home share

    I am having trouble moving my music to my new computer. I have enable homeshare. it does not show any files in my homeshare. How do i get them out of the normal files into home share

    Welcome to the Apple Community.
    The following article(s) may help you.
    Moving your iTunes library to a new computer

  • HT1414 Mine keeps on saying that the device could not be restored, "an unknown error has occurred (2001)"!! Guess it's stuck in that dreaded "iPhone Recovery Mode" loop. The question is, which way out??? How do I get it out of the recovery loop??

    Mine keeps on saying that the device could not be restored, "an unknown error has occurred (2001)"!! Guess it's stuck in that dreaded "iPhone Recovery Mode" loop. The question is, which way out??? How do I get it out of the recovery loop??

    A quick Google search for Error 2001 would indicate that this occurs when you have a jailbroken phone or were trying to downgrade iOS. Is that true for you?

  • I have taken all measures to clear my iPad but still getting kicked out of the internet and sent to my home page. What next?

    I have taken all recommended measures to clear my iPad Air but, I still get kicked out of the internet. Problem seems to be more frequent as time passes

    I don't know what you mean by "all recommended measures."
    Please tell me that it has NEVER been jailbroke.  If that's the case, here are some standard repair procedures:
    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  It could take well over an hour!  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow the on-screen directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    At the end of the basic Restore, you will be asked if you wish to sync the iPad/iPod.  As before, say "yes."  Note that that sync selection will disappear and the Restore will end if you do not respond within a reasonable time.  If that happens, only the apps that are part of the IOS will appear on your device.  Corrective action is simple -  choose manual "Sync" from the bottom right of iTunes.
    If you're unable to do the Restore (or it doesn't help), go into Recovery Mode per the instructions here.  You WILL lose all of your data (game scores, etc,) but, for the most part, you can redownload apps and music without being charged again.  Also, if you have IOS-7, read this.

  • I just purchased Photoshop 11.  The serial number is not valid to get me out of the trial.

    I just purchased Photoshop 11.  The serial number is not valid to get me out of the trial.

    You need to contact Adobe Support either by chat or via phone when you have serial number and activation issues.
    Here are some links to help make contact:
    http://www.adobe.com/support/chat/ivrchat.html
    http://www.adobe.com/support/download-install/supportinfo/

Maybe you are looking for

  • W540 - Sound and Display in Linux

    Hey dear supporter/user/reader! After calming down due to the vast loss in quality of the new Lenovo ThinkPads (2.2k€ for such a plastic toy - rly?) I started installing a Debian sid with XFCE d/e. There were a couple of problems to solve, especially

  • Update photo names in the library?

    Hi all, I've added all my pictures to iPhoto, but now they appear only with their name (eg. IMG_001, IMG_002 etc.) and i don't have any way to split them into single albums. On the drive all photos are categorised in folders, for example TRIPTO_USA_0

  • IPHOTO is not working

    Process:         iPhoto [376] Path:            /Applications/iPhoto.app/Contents/MacOS/iPhoto Identifier:      com.apple.iPhoto Version:         9.2 (9.2) Build Info:      iPhotoProject-626000000000000~2 Code Type:       X86 (Native) Parent Process: 

  • Add fields in the SRM Change PO Screen

    Hi SRM Gurus, I have a requirement to add a buyer id and country id in the Change Purchase Order (Extended Search of the Find Screen). Can anyone suggest which structure needs to be extended for adding the 2 fields so that it appears in the Change Pu

  • Program used for EDI Inbound

    Hi As RSEOUT00 is   a report used for the edi outbound process, can some 1 help me and tell me which report to run for startinmg the inbound process? I know the Function module      EDI_DATA_INCOMING is used for the process,but its supposed to be aut