Explanation of AbstractDocument

I'm just curious about this PlainDocument as I discovered it used in a piece of example code in "Thinking in Java". Unfortunately, the PlainDocument itself is not really discussed. I read the JavaDoc and it is a child of AbstractDocument, and I read this JavaDoc.
I guess I am just not clear on the purpose of Documents -- they seem to be some sort of cross between a File object and a large String. Well, they don't have to come from Files, so I guess that's not really true, but apart from the locking mechanism, is there anything that really distinguishes an AbstractDocument child class from a simple String object?
Thanks.

I haven't used document class much.. But my understanding is that document class serves several utility purposes. U dont have to confuse between Document and String classes. They are totally diffeent when it comes to objective of use.
Document serves the purpose of Rich Text. Using StyledDocument u can associate attributes (Font, colour, size etc) to different sections of ur document. To be more clear u can have one line of text with one set of attributes and another line with a different set of attributes.
This is just one interesting feature i noted. U can see lot more as u go into the classes that extend from abstract document.
Document class also provides support during printing.. Again i have not explored this area in detail..
Hope it helped
Regards
deepu

Similar Messages

  • Extensions like Ghostery, WOT or AdBlock stop working after two or three times. Restarting the webpage in a new tab the extensions will work again for several times and then stop again. Has anybody an explanation or a workaround for this bug in Safari 5?

    Extensions like Ghostery, WOT or AdBlock stop working after two or three times. Restarting the webpage in a new tab the extensions will work again for several times and then stop again. Has anybody an explanation or a workaround for this bug in Safari 5?

    Remove the extensions, redownload Safari, reload the extensions.
    http://www.apple.com/safari/download/
    And if you really want a better experience, use Firefox, tons more choices and possibilities there.
    Firefox's "NoScript" will block the Trojan going around on websites. Best web security you can get.
    https://addons.mozilla.org/en-US/firefox/addon/noscript/
    Ghostery, Ad Block Plus and thousands of add-ons more have originated on Firefox.

  • I am trying to set up Sharing amongst several computers on my home network.  I have followed all the setup instructions but after completion Sharing does not appear in my iTunes window (on any of the computers I've set up).  There is no explanation why.

    I have been trying to set up Sharing between two computers on my network. I did this once and it worked.  However, when I try to set this up now the Sharing feature does not appear on the left side of the iTunes window (on either computer).  There is no explanation as to why not.  Is this a configuration problem, a network problem or what?   Can it be fixed?  I have tried turning sharing off and back on on both computers but to no avail.  What am I missing?  Thanks for any help you can provide.

    Hey innerev2003,
    Thanks for the question, and welcome to Apple Support Communities.
    If, while searching through your past purchases, items are unavailable to download and show a "Purchased" button, they are still on your computer. It may be best to search your iTunes library by clicking Music, then use the search bar at the top right.
    If you are completely sure the items are no longer in your library, try signing out of the iTunes Store, and then back in.
    iTunes 11 for Windows: Manage your iTunes Store account
    http://support.apple.com/kb/PH12507
    Thanks,
    Matt M.

  • Help/explanation needed - Using an external hard drive

    Hi everyone,
    I bought an external 250gb hard drive as my MBP was very close to full capacity. Yesterday, I had a bit of a scare...
    1. I backed up my Aperture Library onto the external hard drive.
    2. I had about 500 of my favourite images rated 5 star and so I selected these and set up a new project.
    3. I went through my Aperture library deleting folders/projects that I have completed.
    4. I went back into the 5 star ratings and they did not exist. I assume this is because I deleted the master files.
    5. I wanted to have the 5 star images on my laptop and so I connected my external hard drive once again. [This is where I felt I lost control and understanding of what was going on].
    6. I looked for the seperate Aperture files but could only find a file called Aperture Library. I clicked on this but nothing happened at all [I had thought that it would open up Aperture with the previous library].
    7. I dragged the library onto my desktop and waiting for all the images to reload onto my laptop. I then saw that everything was as it was previously, i.e. all the files and images existed. However, my hard drive space was even lower [I assume this was because the current workflow that I had left on the laptop was now duplicated?].
    8. Then I got a message saying my iDisk space is critically low and may damage my Aperture library. Moments later the majority of my images disappeared and a red space appeared where every photo had previously been. Since I have 2 weddings that I am yet to deliver I was very panicked. I tried to drag and drop the Aperture library once again and the message came back that the operation could not be completed due to the current file already existing.
    9. I unplugged the external hard drive and the photos re-appeared [much to my delight]. However, my concern is that I really don't understand what happened and more importantly why. I will need access to the data on the external hard drive in the event in the near future and am worried that the same thing will happen next time I connect it.
    As a result of all this I have some questions, as follows:-
    - Have I adopted the completely wrong approach to backing up data?
    - Can the master files be compressed as I shoot RAW and these are huge files?
    - Why could I not use the Aperture library stored on the external hard drive without downloading it back onto the laptop?
    and a more general question about file storage...
    - I am confused as to how much hard drive space is being used on my MBP. I have 13gb in Aperture, 1gb in iTunes and 1gb in iPhoto. However, I only have 50gb available, so half the capacity is currently being used. I know that Aperture and Garageband applications use about 10gb between them and there is of course the operating system, but 50gb in total seems a lot. On investigation in the finder screen I see that on my personal drive the Aperture, iTunes and iPhoto data is stored there. However, it is also stored under pictures and music respectively. Does this mean that it is storing duplicate copies of this data and that is the explanation for such high hard drive usage? If this is the case, can one be removed?
    I appreciate that this has been a long email, but I felt it was important to illustrate the steps I have taken. As you will no doubt glean from this post I am not the most computer literate person. Any help/explanation would be most appreciated.
    Many thanks,
    Jamie

    Hi Jamie.
    I am not sure what went wrong with your setup but I will let you know my configuration as an example and you can decide if you think it is a good way to have it. I am asuming you are using ver 1.5?
    Like you I have only a Laptop (G4 17" 1.5Ghz 2 Gig Ram - would love a macbook) so hard disk space is a premium. I also have an external firewire drive to hold all the HiRes RAW images. When I download my images from the Camera I do it manually into folders on the external drive (Cataloged by Date and maybe description of location). I then Import the images from those folders into Aperture but use the option when importing to "Store Files - In their current location".
    My Aperture library file is on my laptop so all that it has to store is the "Preview" file that gets generated automatically (in the preferences I have it set up to the resolution of my laptop 1440pix so that if I did a slide show it is only as big as my screen - anything more is a waste of disk space IMO.)
    I do it this way so that it is easy to find and work on my files with other programs such as Photoshop by going straight to the image rather than exporting from Aperture.
    Obviously I cant edit the RAW files while the drive is disconnected but I can still do ratings and keywords without the original files being there.
    I hope this helps.
    Regards
    Andrew
    G4 17inch   Mac OS X (10.4.8)   2 Gigs RAM

  • Hello I send imessages to a phone number I receive delivery notice but sms does not show on receiving phone. Otherwise when receive imessage from other phone I reply and receiver sees SMS !!! Any explanation ?

    Hello I send imessages to a phone number I receive delivery notice but sms does not show on receiving phone. Otherwise when receive imessage from other phone I reply and receiver sees SMS !!! Any explanation ?

    To my knowledge, I've only seen this for imessage only and not SMS.
    The other users would need to have send read receipts enabled on their phone.

  • Some pictures in I-Photo seem to be corrupted. When I click on them, the photo comes up for a second, then the picture turns black with a white fuzzy circle inside it and what looks like an explanation mark. Some older, some newer,  no common thread.

    Some pictures in I-Photo seem to be corrupted. When I click on them, they come up for a second, then turn black with a white circle in the middle and what looks like an explanation mark. There does not seem to be any rhyme or reason to the photos that are a problem, some older ones, some newer, some albums have none, some albums have a lot.
    Thanks,
    Mark

    time to time (when I have a chance), I will go to Finder, bring up ALL Images and start going through them to label them (before I put a label on them, they are simply listed as 123 jpg, 124 jpg etc.).
    You're damaging the Library doing that, and that's the cause of your problem.
    Never, ever, ever use the  All Images search and work on items in yoyr iPhoto Library. They must only be accessed via the iPhoto window.
    Restroe from abck up or try rebuild the Library:
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places 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.
    Next: You need to learn how to use iPhoto. There's no need to be dragging things to the desktop:
    For help accessing your photos in iPhoto see this user tip:
    https://discussions.apple.com/docs/DOC-4491

  • I have had itunes on my computer (Vista) for years. It suddenly "disappeared" could not be opened at all although still in programme list. I ininstalled it and have tried to download again. I get a message it cannot be downloaded, no explanation. Help!

    I have had itunes on my laptop for years, no problems. A couple of weeks ago I could not open it at all. It still showed in programmes. I uninstalled it and have tried on a number of occasions to download again. I have been unable to do so. No explanation just "couldn't be downloaded". The Apple page just goes immediately to page "Now that you have downloaded itunes", but of course it has not downloaded.
    I have another newer laptop and the itunes on that is fine. Recently got automatic updates - no problems.
    Anybody got any ideas? Please

    See the further information area of Troubleshooting issues with iTunes for Windows updates.
    tt2

  • Can somebody help me in finding a solution or an explanation to the problem I am currently experiencing as well as others wherein we cannot connect to the iTunes store (iTunes could not connect to the store. An unknown error occurred (0x80096004))?

    Can somebody help me in finding a solution or an explanation to the problem I am currently experiencing as well as others wherein we cannot connect to the iTunes store. An error message appears and either says "iTunes could not connect to the store. An unknown error occurred (0x80096004). Make sure your network connection is active and try again" or "iTunes could not connect to the store.Make sure your network connection is active and try again." Despite the fact that my network connection is working quite fine, this problem still persists. I can say that my connection is fine because I can surf the internet and furthermore, I used to connect to the iTunes store just before this incident happened which started from April 17, 2014 and persists until today. I tried to solve the problem by following the troubleshoot procedures given in the support section of this site but it really did not solve the problem. I believe that others are experiencing this situation as well very similar to mine when it comes to the time of occurrence as I have read in the discussions in this site. Even though we have different network connections, operating systems and other specifications, we still experience the same problem, so is there really a problem with our computers or is it with the iTunes? And by the way, my computer works under Windows XP. Thanks a lot. God bless.

    Try this...
    Triple click anywhere in the line below to select it and press Ctrl+C to copy it.
    cmd /k netsh winsock reset
    Press the WinLogoKey+R to open the run dialog, then Ctrl+V to paste, then press enter/return.
    You should get something similar to this:
    Reboot the computer and the problem should be resolved.
    If it doesn't work then perhaps a full tear down and rebuild of iTunes will fix things. See Troubleshooting issues with iTunes for Windows updates for details.
    tt2

  • My entire music library (purchased and my own) can't be put onto my itouch.  All these files have a little explanation point next to it.  When I click on it to play it it says file could not be found.  How do I get my music back?

    I've downloaded a normal software upgrade and now my computer doesn't recognize that my music files are mine....I guess.  Itunes library has tons of songs that I've either downloaded from disc or purchased from itunes.  Now, they all have this little explanation point next to the file name.  Can't put them on my itouch and can't play them on the computer.
    Tried to ask apple to help...they want $29.  I don't understand...I was simply upgrading my itouch with their software updates and now this.  Had the same problem with my apps.  Had to redownload all of them individually.  Didn't have to pay for them again.  They, too, had the little explanation mark next to them.
    Help me.
    I'm music-less.
    Kathy

    Ok, I had a glitch, forced to restart, and lost my train of thought.
    Reinstalling iTunes should fix the major issue that might have gone wrong, perhaps your explaination points will disappear and everything will be peachy again.
    But if they don't, you can open the XML file in iTunes Folder using a Text edit program to see what the common pathname is to the iTunes Music folder or where your content is located.
    If you moved the itunes folder, it needs to go back.
    I can't  download iTunes to my Vista virtual machine to test it out right now because iTunes is down, so I can't verify the pathname, perhaps your issue and the iTunes being down are related somehow?
    You don't want to import all your music again, but it's a option, but you lose all your playlists, that's what I'm trying to recover.
    If oyu don't have a whole lot of playlists, then simply select all the explaimation point music and delete, select File from the menu and import your itunes folder again.

  • I have two iPads and giving one to my grandson. Using my Apple id for both, can we use different passwords to access our "own" apps. Also I don't want the downloaded App to go to both iPads. Been looking for hours for an explanation! Thanks for any help.

    I have two iPads and giving 1st gen. to my grandson. Using my Apple idI for both... can we use different passwords to access our "own" apps. Also I don't want the downloaded App to go to both iPads. Been looking for hours for an explanation! Thanks for any help.

    Look at this link.
    Giving your former iPad to a spouse or family member: the quick guide
    http://www.tuaw.com/2012/03/17/giving-your-former-ipad-to-a-spouse-or-family-mem ber-the-quick/
    How to Share a Family iPad
    http://www.macworld.com/article/1163347/how_to_share_a_family_ipad.html
    Using iPhone, iPad, or iPod with multiple computers
    http://support.apple.com/kb/ht1202
    iOS & iCloud Tips: Sharing an Apple ID With Your Family
    http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/
    How To Best Use and Share Apple IDs across iPhones, iPads and iPods
    http://www.nerdsonsite.com/blog/2012/06/07/help-im-appleid-confused/
     Cheers, Tom

  • My iPhone 6 order was canceled without my permission and without reason or explanation. I have had a verizon cell phone for 13 years and have gotten your cable/internet/phone when i moved out on my own because i had been so happy with the experience i had

    I have had a verizon cell phone for 13 years and have gotten your cable/internet/phone when i moved out on my own because i had been so happy with the experience i had with the cell phone service. i ordered my new iPhone 6 on October 6th along with my husband. i was told by the sales associate at the vierzon store where i placed the order that it would ship a week before halloween. instead of a shipping confirmation, i received an email a week before halloween letting me know that my order had been placed on 10/24/14. i thought this was weird, but figured i could weight another week or two, no big deal. my husband got his phone in the mail yesterday. still no sign of mine. then this morning i got an email letting me know that my order was cancelled and if id like to place another order for a phone, then i can go back to the store and do so. why would i want to go through another month of this??? verzon lost my order. i never canceled it and i am beyond annoyed. i am looking to switch my entire house to another provider. this is ridiculous.

    i did not get any reasons or explanations. the email just stated that my order was canceled and that it won't be posted to my credit card (i have more than enough to cover the cost, so that is not the issue). also my husbands phone was paid for from the same card moments before me. my balance is always paid automatically and on time. so that couldn't be the reason either. that's what so frustrating is because they didn't explain what happened. this is what the email read exactly:
    "This email is to confirm that your order has been cancelled; you have not been billed for this merchandise.
    If you would like to place a new order, you may do so by visiting your local retail store or going online to www.verizonwireless.com.
    Business customers should refer back to their local Verizon Wireless Sales Representative if you have any questions or would like to place a new order.
    Thank you, and we look forward to your business in the future.
    Verizon Wireless"
    it almost feels like its saying that i canceled it and that this was to confirm that i did. but i didn't cancel anything.

  • Outlook to iPhone sync failure – Sync suddenly stopped working for calendar events but continued for contacts and notes.   Finally Fixed!!!  SUPPORT TEAM – PLEASE SEE THIS – Complete explanation of cause and correction steps.

    The issue:  Outlook to iPhone sync failure – Sync suddenly stopped working for calendar events but continued for contacts and notes.   Finally Fixed!!! 
    SUPPORT TEAM – PLEASE SEE THIS – Complete explanation of cause and correction steps.
    The cause:  It is now clear what caused this problem.  For years I had several “all-day” events in my Outlook calendar (birthdays, anniversaries, etc.).  In May 2012 I decided to make some of them one hour  events so I could add alerts to remind me of the event.  I did this by dragging them in Outlook to the time I wanted and expanding them to the time slot desired and then adding the alarm.
    The symptom:  Syncing stopped working for the calendar but continued working for contacts and notes.  I didn’t realize sync was failing until months later when I missed two very important phone calls, so when I noticed it the cause was not obvious. 
    The failed attempts:  I’m head of a software firm and my calendar sync is a crucial to my business life so I took this on with a vengeance.  From a quick look at events in Outlook and the iPhone I could see that the problem started in May 2012.  Events before May were in both Outlook and the iPhone but events after May were only one or the other.  Unfortunately I had changed several other things at the same time relating to other events so again the cause was not obvious.  MANY calls with AppleCare proved them incompetent so my internal IT guys assisted trying many things.  We tried a huge number of calendar changes and several versions of iTunes, iPhone OS and Office as well as both iPhone 4 and 5, all without success.
    The fix:  After 18 months of frustration, MANY  hundreds of $ expense and MANY hours of wasted time I saw a blog that had a calendar sync  problem and it indicated all day events were related.  I changed the display of the Outlook calendar to the list view, added columns so I could see “all day” event check marks as well as times of events,  sorted on the “all day” event column to move them to the top, and for all events that were “all day” events AND had a start and end time, I removed recurrence and then added the annual recurrence back…
    After I fixed all events that had BOTH “all day” set and had a start/end time, I tried another sync.  It synced for the first time in 18 months! 
    Problem occurred May 2012 – fixed Nov 2013

    Hi, to remove dummy '_ModGrp' entries, rather than crashing the 'Suppr' key on your keyboard, you can use this basic VBA macro (launched for instance from Excel).
    It will recursively remove all '_ModGrp...' folders
    Sub RemoveFolders_Click()
        Dim oOutlook As Outlook.Application
        Set oOutlook = New Outlook.Application
        Set objNameSpace = oOutlook.GetNamespace("MAPI")
        Call CleanFolders(objNameSpace.Folders)
    End Sub
    Sub CleanFolders(objFolders As Outlook.Folders)
        For i = objFolders.Count To 1 Step -1
            If Left(objFolders(i).Name, 7) = "_ModGrp" Then
                objFolders.Remove( i )
            Else
                If Not objFolders(i).Folders Is Nothing Then
                    Call CleanFolders(objFolders(i).Folders)
                End If
            End If
        Next i
    End Sub

  • Some songs, which are bought in the iTunes store, will be played iTunes but not on my iPod touch. Has somebody an explanation for that? Thanks,

    Some songs, which are bought in the iTunes store, will be played iTunes but not on my iPod touch. Has somebody an explanation for that? Thanks,

    No, you should have Restrictions OFF.
    Computer's iTunes > Preferences > Parental Preferences > everything should be unchecked.
    Are the songs also on computer's iTunes?

  • IOMMU explanation of kernel parameters

    Hello!
    I've set up an HTPC with an AMD A4-5300 CPU, A75 (Hudson-D3) chipset and a PCIe sound card (Asus Xonar DX). Whenever I tried to get a sound out of it (e.g. aplay blubb.wav) I only got dozens of these messages in the kernel log:
    [ 46.215678] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0000 address=0x0000000000100000 flags=0x0050]
    The messages appeared only on the first aplay command. When the program finished and I ran it again, I got no additional messages but sadly also no sound.
    Spending two evenings on this problem with google I found out it might be some trouble with IOMMU features of the processor or mainboard. So after trying out several of the options, I found iommu=soft in the kernel parameters got the sound to work fine. I have the possible options from here: https://www.kernel.org/doc/Documentatio … ptions.txt
    But I don't really understand what's the matter with this IOMMU thing. It seems like a memory management for I/O Components and seems related to DMA access. But what does the IOMMU do? Which side effects come with these options? I understand the "soft" option in that way, that some features present in hardware are now managed in software. "can be used to prevent the of an available hardware IOMMU" sounds even worse since the option might completely disable the hardware feature. But is this really bad? I mean with the option I finally have good quality audio output but for what price? Can I expect disadvantages from this setting? Since I'm not really into all this kernel and hardware stuff, this all seems so confusing. Or is it possible that the error causing the above message has a totally different source and it's just luck that the option kind of worked around it?
    Can anyone here maybe explain even a little bit about the IOMMU and what might have caused these problems?
    I opened a thread in the multimedia section here where I asked for help to get audio output but no one replied. So I think the people living over there are also not familiar with the topic. And since I found kind of a workaround which is hardware related I hope it is ok to open this other thread to maybe get some explanation about what I have really done there...

    Thanks for the detailed explanation!
    But isn't the GART something Video Card related? Or is it that what you mean with "abusing" the GART?
    So when I set "iommu=soft" the IOMMU basically gets disabled? Quoting the file about the boot options, it says:
    3. <arch/x86_64/kernel/pci-swiotlb.c> : Software IOMMU implementation. Used
          e.g. if there is no hardware IOMMU in the system and it is need because
          you have >3GB memory or told the kernel to us it (iommu=soft))
          Kernel boot message: "PCI-DMA: Using software bounce buffering
          for IO (SWIOTLB)"
    What I don't fully understand... Is the IOMMU actually a CPU feature or is it on the mainboard's hand? For what I read, the A-Processors from AMD are IOMMU supported, so my setup should work with it. Or could it be my mainboard not having correct support for it? (MSI FM2-A75IA-E53)
    For testing, I disabled the IOMMU switch in GRUB, dmesg shows the kernel already automatically chooses software buffering. ("[    0.654086] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)") but then I get those tons of AMD-Vi messages. When I set the IOMMU to force software buffering, I have not a single problem. The entry in dmesg also tells it is using software bounce buffering. But shouldn't there be no difference if the kernel chooses the software option or if I force it to do so?

  • Following error occours when running a BI Publisher report in Siebel: Operation ' ? ' of Web Service ' ? . ? ' at port ' ? ' failed with the following explanation: " ? ".(SBL-EAI-04308)

    I am installing a new reporting server.
    When running a report I get the above error:
    Operation '<?>' of Web Service '<?>.<?>' at port '<?>' failed with the following explanation: "<?>".(SBL-EAI-04308)
    Any ideas?

    Have a look here for Oracle's guidelines on troubleshooting such errors:
    http://download.oracle.com/docs/cd/E14004_01/books/Reports/ReportsTroubleshoot.html

Maybe you are looking for

  • Game Center: Different Language from the rest of my phone

    Hey everyone, A few weeks ago I noticed that the language of game center was different from what I had set it to. I would get the normal "Welcome back, *my name*" on the top that pops up showing that it's linked to game center, which is fine. Except

  • How do I get my Course Manager to display in English and not German?

    My company is registered in both Germany and United Kingdom, and conduct business mainly in English Language. I signed up for iTunesU in order to create courses to share on iTunesU on behalf of my college. However, each time I insert the link below t

  • Help needed in linked lists...

    I have been working on this computer assignment lately but I still don't understand linked lists yet..I did an assignment on array based implementation and now I am supposed to do the same thing in linked list implementation.. I need help on how to c

  • FDM download site not working

    Hello FDM download site not working for 11.1.1.3 version http://www.oracle.com/technetwork/middleware/bi-foundation/downloads/hyperion-fin-data-quality-111130-085525.html From Sarilla

  • URGENT: regarding data load in essbase through ODI after upgradation

    Hi, I have got this error, Please give me the solution... org.apache.bsf.BSFException: exception from Jython: Traceback (most recent call last): File "<string>", line 29, in <module>      at org.hsqldb.jdbc.Util.sqlException(Unknown Source)      at o