JTextPane caches my local HTML file... How can I fix it?

I have some problem with the JTextPane component.
I do following:
URL url = new URL( "file:////home/linux/myfile.html" );
jEditorPane.setPage( url );It works fine, but!
Then I try to rewrite "myfile.html" with other data and when I do again:
URL url = new URL( "file:////home/linux/myfile.html" );
jEditorPane.setPage( url );I see my last data. But why? How can I update jEditorPane with my new "myfile.html"?

Would be awesome if you could provide an small program showing your problem, and an mini html page, that can be used for testing :P, to lazy to write it my self and after that find an solution(I cannot guarantee that I will manage to find a solution, but the odds are higher if I/everybody else gets something to work with).
EDIT: Unless someone already know the solution ofcourse :)
Edited by: prigas on May 11, 2009 9:50 AM

Similar Messages

  • About Final Cut ProX: why a red line appears at the top o a file imported into a New Event? then when I restarted the Project that files comes as "Missed files" How can i fix it?

    About Final Cut ProX: why a red line appears at the top o a file imported into a New Event? then when I restarted the Project that files comes as "Missed files" How can i fix it? Thank you very much.

    Where are you importing from – a camera or computer? If you are optimizing at import, make sure the background processes are completed. (Command-9)
    Russ

  • I suddenly can't get any of the websites I use each day on Firefox to load. I tried clearing the cache. No difference. How can i fix?

    I use Firefox daily to access many sites. Yesterday it worked perfectly. Today it won't work at all. I just keep getting "Unable to Connect" message when I try to load the sites -- and sites work on other programs (though I need to use firefox to do certain things on some of them...) so it isn't an internet access problem. I've read the help articles and they don't help at all. I tried clearing the cache; it makes no difference. I tried checking that no proxy is highlighted under the advanced access settings. It is, and reviewing that makes no difference. I tried looking to see if Firefox is allowed to access the web thru my windows computer -- but I cant tell what program it would need to connect. And I haven't changed my settings since yesterday -- when it worked perfectly (or seemed to). So that shouldn't be the problem.
    Ive wasted most of the morning fighting with this. What the hell is going on here and how can I fix it?

    hello, normally such issues are caused by a firewall/security software which doesn't recognize & therefore blocks new firefox versions - firefox 23 was released yesterday: [[Fix problems connecting to websites after updating Firefox]]

  • I am having trouble on printing a pdf file. how can i fix it.

    How can I print PDF files with Microsoft Vista?

    Go here and download a version of Adobe Reader. Once it is installed, when you open a pdf file with it, you should be able to print to an installed printer.
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • My startup disk is full, yet i have deleted all my files, how can i fix this?

    I have a mac book air and 120 GB disk.
    I have tried to clean up my files and saved them to a external hard drive.
    My startup disk is saying its full, yet i have deleted all files to trash and then emptied trash.
    the storage is showing typical things like photos, movies, apps and 75GB of other.
    how can i clean up the disk to get back the full storage space?
    thanks in advance for your help, im hoping there is a mac expert that can assist.
    GG

    OS X: What is "other" space in About This Mac? - Apple Support
    Experts here recommend Omnidisksweeper for identifying hidden files. I haven't tried it personally but try a search through the forum for more feedback on this product.
    Be very careful with what application you choose regardless as many are worse than unreliable causing damage to the operating system itself. If you purchase a third party application for this venture make sure you buy it direct from the developer's website. Also make sure you have a working backup and you fully understand what it is you're deleting so you don't brick your Mac!
    best of luck!

  • Acrobat Pro 9.4.5 crashes when I open PDF file - How can I fix it ??

    Dear Fellow Mac Users,
    I have a MacPro4,1 with a 2 X 2.226 Ghz Quad-Core Intel Xeon
    Processor and 16 GB 1066 MHz DDR3 Memory. On my MacPro4,1,
    I have Adobe CS4 Suite installed. I now have Adobe Acrobat
    version 9.4.5.
    Whenever I open a PDF file, reguardles of size, Adobe Acrobat
    version 9.4.5 freezes. This happens even with files less than
    1 MB and with any other Acrobat software open. This happens
    even if Adobe Acrobat is the only software that is open.
    Any ideas about how I can fix this problem?
    Best Wishes,
    Paul

    I'd try uninstalling and reinstalling Acrobat Pro, then reapply the updates to 9.4.5.

  • I have my catalog on an external hard drive, trying to open it and the error message saying "lightroom encountered an error when reading from its preview cache and needs to quit" how can i fix this as all my work in in this

    I have let it close down put it keeps appearing

    I assume you know where your catalogue file (the lrcat file) is located. In the same folder is a previews lrdata folder which you should delete or rename in Explorer, then start LR again.
    If I've made incorrect assumptions above, sorry, and we'll go back over it from the start.
    John

  • I am able to download all the album I bought from itune store. The album contains 13 songs but 4 of them would not load up into my ipod. How can I fix that?

    I am not able to download all the album I bought from itune store. The album contains 13 songs but 4 of them would not load up into my ipod. An error code will pop up notified me that "my Ipod cannot convert some of the file" How can I fix that?

    Hi there mayway3000,
    You may find the troubleshooting steps in the article below helpful.
    iPod does not play content purchased from the iTunes Store
    http://support.apple.com/kb/TS1510
    -Griff W.

  • Images in my FrameMaker 10-sourced Robohelp Web Help project are turning out as blank JPEGS appearing as blank spaces in the final output. How can I fix this?

    I'm attempting to create online help sourced from a FrameMaker 10 book using Robohelp 9 and Web Help (primary layout).
    The text is interspersed with numeorus small icons which, in the FrameMaker documents, are .bmp images inserted into anchored frames in the lines of text.
    Most of these icons were imported by reference into the FrameMaker book's chapters. Some were copied from another FrameMaker book and pasted into the present book.
    Many of these images are turning out blank in the finished Help project.
    Robohelp seems to convert these images into JPEGS.
    In the source FrameMaker book, the images which appear OK in the Help project have Object Properties including: Facets: FrameVector   JPEG ... Referenced File: No File
    The images which appear blank have different object properties there: Facets: DIB ... Referenced File: (address of the image's source file)
    How can I fix this and make all of the images appear in the Online Help?

    Sorry, Jeff. I missed the key word in your instructions. Well, I did the import and still no luck. I'm getting the exact same results with the same images. (In some cases, I'm even getting hidden conditional text from the FM document body showing up in the image's frame instead of the image! See below.) This is bizarre behavior, but it's not new with the import. It is happening both in the linked and imported WebHelp with the same exact images. (Just another piece to complicate the puzzle.) So we have some jpeg images that are blank, and a few that are glitchy. From what I can tell, the commonality, besides the fact that all these new images are in jpeg format instead of gif format, is that all the blank and glitchy images are in a text inset. I'm beginning to think maybe RH just doesn't support text insets at all.
    Arnis, I'll have to ask my colleague how she created the images next week when she's back from vacation. I have no clue if there are any differences between the jpegs and why some are showing up correctly. What do you mean by "compression type or level?" Are you asking about the resolution (high, medium, low) she chose when saving the images, or which program she used to do the screen capture and editing? (We have Adobe Photoshop CS5 and FM 11).
    My next step is to copy-paste all the content from the text insets into my FM document (in the book I am linking) and re-render to see if that solves the problem. It will make single-sourcing impossible because I'll have to copy-paste the new content and images my colleague creates into my document each time we do an update, but oh well.
    Here is an example of a glitchy image in RH:
    And here is what it looks like in FM:
    So bizarre!

  • How to display local HTML file in web-view?

    Hello everyone,
    we have no problem with showing of remote HTML content from server in box on page in web view. But how we can show such a content when included in HTMLResources? In guide is just "Display a local HTML file in an in-app browser", which works wihout problem, but we don't want to show this HTML content in in-app viewer, it should be part of page.
    Thanks
    Martin

    Now i'm confused. In guide is this:
    To use local HTML files, click the folder icon and specify the local HTML file. The HTML file (such as index.html) should appear in a folder that includes any images or scripts used in the HTML file.
    But no info where such a local HTML file should reside. If this file is in HTMLResources, it is ignored.

  • How to load local html-file into webBrowser tool? [SDK 6.5]

    The webbroser tool lets you load an external html by inputting the adress in its "Url"-property.
    But how do you load a local html-file that is added to your project? Lets say the path is: Folder1/Subfolder1/Webpage1.html. What would I put in the Url-property to make this work?
    While on this subject, what is the support for css and javascript when using locally loaded webpages in the webbrowser?

    Thanks for the answer Malleswar, but I have now played around with all variations of that code-line that I can think of, but still I can not locate the html-file that is located within the project. Since Im planning to distribute the html-files with the executable (as one file) it should read it directly from wherever the application is installed.
    The html-file is included within the project. Solution Explorer -> Solution 'myProject' -> myProject -> Webpage1.html
    Which is (as usual) also where the Form1.cs (which contains the webBrowser-component) is located.
    Any ideas of how the Uri should be constructed in this case?
    Thanks,
    Daniel

  • When I try to open iweb I get the following message: Can't open file "~/Sites/NAVIGATOR/index.html." How do I fix this? Using 10.6.3 soon to be 10.6.6 and then Lion.

    When I try to open iweb I get the following message: Can’t open file “~/Sites/NAVIGATOR/index.html.” How do I fix this? Using 10.6.3 soon to be 10.6.6 and then Lion. I have never opened the product before and have had it on the computer since new.

    Go into your Users/Home/Library/Application Support/iWeb folder and see if there's a file titled Domain.sites.  If there is double click on it and see if iWeb opens.
    If there is no Domain file there do the following:
    delete the iWeb preference files, com.apple.iWeb.plist and com.apple.iWeb.plist.lockfile, that resides in your Home() /Library/Preferences folder.
    go to your Home()/Library/Caches/com.apple.iWeb folder and delete its contents.
    Click to view full size
    launch iWeb and try again.
    OT

  • On Pages 09, my word documents I've been saving it to iCloud, to access anywhere, but I would like to keep my docs organized in files on my finder as usual, and saving to iCloud, I lose my local one.How can I fix it and not desorganize my files?

    On Pages 09, my word documents I've been saving it to iCloud, to access anywhere, but I would like to keep my docs organized in files on my finder as usual, and saving to iCloud, I lose my local one.How can I fix it and not desorganize my files?

    It's either in local folders, as it seem you had been doing, or in icloud.  If you go into the mac's Pages and view the icloud files, you can drag on onto another to create a folder.  But you can only have folder one level deep, so you can't organize your files/folders like you can on a mac, using nested folder several levels deep.

  • Hi i have a learning HTML file with a data file include a swf files how can i open it in my ipad?

    hi i have a learning HTML file with a data file include a swf files how can i open it in my ipad?

    iPad do not support flash natively.
    Look in the app store, some browsers do support flash with limited functionality.

  • Can't select local html files with web object in captivate 8

    I can select pdf's via browse, but it I want to add local html files I have to type the path in manually. I'm guessing this is just a bug, I should be able to choose web pages for the web object even if they are local right?

    Fireworks is a graphics editor that can export code; it is not an HTML/code editor.
    If you have exported HTML from Fireworks, you ought to be able to re-import that, but I would think most people who use Fireworks exported code would just modify their Fireworks document and re-export. (Fireworks' code is not robust and it is only intended for mockups and prototypes. Fireworks is not intended for developing and maintaining live Web sites; Dreamweaver is.)
    If your developer used Dreamweaver, then I really don't expect that Fireworks would be able to import that, nor any code that isn't in exactly the format that it can export. If you know your developer used Fireworks, then you need to look for .png files. Fireworks uses an enhanced version of the PNG format for its native document format.
    If you are making small adjustments to your site, then you might be better off working in Dreamweaver. If you're doing a site re-design, then Fireworks is an excellent tool for laying out your design and producing your graphics, but you will, at some point, need to move over to Dreamweaver for coding.

Maybe you are looking for

  • ASA 5505 no internet

                       Dear all i have a problem with ASA 5505 i have three vlans : Inside, Guest, Outside the Inside's vlan network is 172.16.100.0  255.255.252.0 Guest                           is 192.168.1.0    255.255.252.0 Outside                   

  • Error when trying to do Photo Merge

    I have Photoshop CS4 and tried to use the Photo Merge feature (File > Automate > Photo Merge...). When I select it I get the following error box. I had used this feature in CS3 and it works great. I tried logging out and also restarting my Mac. Neith

  • Servlet that never stops...

    Hi, Is possible to do a threaded servlet that never finishes to response? something like a servlet that, when called, connect to a database and send the results of a query to client, update the database and try the query again ... like: while(true) r

  • IPhoto downloading photos from the camera

    Hi, is there any possibility to name the photo data other IMG_0001....whenever I import Photos from the camera,they are named with the same data and I have now about 20 photos named IMG_0001 and so on. I can give them a title but I want to change the

  • Affichage des images dans un site Full Flash

    Bonjour, Dans un site full Flash qui représente une galerie photos avec des menus simples comment peut-on garantir que des fichiers jpeg soient déformées  (+ grands en taille) par les navigateurs. Comment peut-on garantir, quoiqu'il arrive, le respec