HTML file is not being shown properly in the JEditorPane

Hi,
I am using JEditorPane to display an HTML file from the local disk. This HTML file contains the html tables. Now when this file is getting displayed in the JEditorPane, one top row grid is not being displayed in the editor pane. content of the row is there...but the column grid is missing. All other rows and columns are being shown but the first row-column grid which contains the heading for column.
Also when I m printing the content of this JEditorPane using Java Print API then no grid is being printed on the paper. content is coming properly but no table grids. when i have taken the print out of the original html file from the browser then table grids are being printed out properly.
Please do help me out in showing the HTML file in the JEditorPane properly and printing the same.
Many Thanks,
gshankar

Hi,
JEditorPane renders HTML with many limitations.
You can use JDIC for the same. refer: jdic.dev.java.net
But JDIC does not work on windows 98.
Anand

Similar Messages

  • File content not being displayeddisplaying properlyed

    Hi
    I have done
    cvs diff between two tags e.g. tag1 and tag3
    and stored the result in one file named diff.txt.
    I want to display the contents of diff.txt on browser using servlet.
    But the problem is that only content related to Tag2 is being displayed (or more precisely the second tag).
    But the diff.txt is having the complete contents.
    It is only during the servlet exceution and file reading in that I am getting only one tag contents.
    There is no exception being displayed.
    Following is the code related to file handling.
    =============
    BufferedReader bf = new BufferedReader(new FileReader( "/home/infyCM/diffSVN.txt"));
    while(bf.readLine()!=null)
    out.println(bf.readLine());
    bf.close();
    ================
    ~aman

    BufferedReader bf = new BufferedReader(new FileReader( "/home/infyCM/diffSVN.txt"));
    String line = null;
    while((line = bf.readLine()) !=null)
    out.println(line);
    bf.close();
    }Replcae the code like this.

  • Enter Key is not being accepted properly in the Applet

    We have developed a Telnet application which is in form of an Applet. We are facing some problems with respect to that.
    We are using Java 1.2.
    When login sessions are launched, the login prompt is displayed.
    After we enter the user id and press the "Enter" Key, the UI remains at the "user id" prompt and is not accepting the "Enter" Key.
    As a result, we are not getting the password prompt and hence NE UI is not deing displayed.
    This was verified with logs and found that the "Enter" key was interpreted as "char 7" instead of Ascii char 10(Enter Key).
    This problem was observed in both IE and Netscape.
    But this same code works fine when it is run as a Java application. Also the same applet works fine when viewed from the Applet Viewer.
    Iam of the view that the issue may be due to the restrictions imposed by the browsers on the Java Applet.
    Please give me suggestions to circumvent this problem ,if u have faced the same.
    Thanks in advance,
    Darshan

    The reason why ENTER doesn't work is because it's reserved for the default button. The SPACEBAR does what you want.
    http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/doc-files/Key-Metal.html#JButton
    To change the key mappings, read up on JComponent.getActionMap(), JComponent.setActionMap() and the ActionMap class.

  • HT1349 I have registered with my local library and can download books.  But these are not being shown in ITunes, the Library does not show 'audiobooks'.  I have an ipod 6G.  can anyone help please?

    I have recently purchased (from the States) an ipod nano 6th generation.  I belong to a local library and can download books from the audiobooks online section.  Problem is, my iPod when synced to iTunes, does not show Library as a category and audiobooks.  For some reason, it is allowing me to download the books to my iPod, but I am unable to delete them from the iPod, and also, it is giving an echo (I think somehow it is downloading twice which is giving an echo effect).  Not sure what is going on, but if anyone can advise me on this I would be very grateful.

    Hello mrsbonniesue
    If you have an issue with the audiobook showing up in music, check to see if those tracks are labeled as audio books or music. The article below will explained as well as I have highlighted the main portion for changing that information.
    iTunes 11 for Windows: Edit song and CD information
    http://support.apple.com/kb/PH12360
    Identify an item that you imported from a CD as an audiobook, so it appears under Audiobooks instead of Music (click the Options button and choose Audiobook from the Media Kind pop-up menu). If you do this, iTunes also remembers your place in the audiobook
    Regards,
    -Norm G.

  • OHS - Protocol (Periodic) Next due dates are not being captured properly

    Protocol (Periodic) Next due dates are not being captured properly in the Planning Cockpit (EHSH_D_PCP) report nor the Protocol report (S_SH8_7200013).  The Planned date is not resetting itself for the medical service sometimes.
    Any idea what might be causing this issue?
    Regards
    Naveen

    HI Naveen
    Have you overridden the std BADI for calculating Next due date?
    Thanks
    Jagdsh

  • [svn] 1978: Bug: vendors. properties file which is used in vendor specific login commands was not being read properly and as a result some login related error messages were not being displayed correctly .

    Revision: 1978
    Author: [email protected]
    Date: 2008-06-06 08:05:34 -0700 (Fri, 06 Jun 2008)
    Log Message:
    Bug: vendors.properties file which is used in vendor specific login commands was not being read properly and as a result some login related error messages were not being displayed correctly.
    QA: Yes - we need automated tests to make sure that errors.properties and vendors.properties in BlazeDS/LCDS are loaded properly.
    Doc: No
    Modified Paths:
    blazeds/branches/3.0.x/modules/common/src/java/flex/messaging/util/PropertyStringResource Loader.java
    blazeds/branches/3.0.x/modules/opt/src/jrun/flex/messaging/security/JRunLoginCommand.java
    blazeds/branches/3.0.x/modules/opt/src/tomcat/flex/messaging/security/TomcatLoginCommand. java

    I have a lot of grief with this version of Windows Media Player.
    It is very buggy and frustrating to use.
    I have my Music library on a QNAP NAS, which is as reliable as they come.
    System notifications make it not save changes.  It also does not do a good job of interpreting albums and artists from folders.  Changes to track names are not saved, nor are tracks moved to other albums, renamed albums, changes to genre, artist
    or date.  It separates and merges albums/tracks without sense or reason.  Some changes I've made up to 4 times, then closed WMP and re-started my machine to check if it has/hasn't saved the changes.  Often it has not.
    This is the first time I've used WMP in this capacity, and I do not recommend it.
    New service pack please.

  • " File does not being with %pdf"

    Sir
    I have download a file from website. I use windows7 os. But there is a problem that a massege display " File does not being with %pdf". this problem is same in other browsers like- mozela firefox, google chrome etc. I use adobe reader 11. Please tell me its solution in detail.

    Originally posted by: bryant.harris.irisfinancial.com
    Upgrade to 2.1.0. The font stuff is fixed in 2.1.0
    Bryant
    "Brian Kallay" <[email protected]> wrote in message
    news:ege41t$9qp$[email protected]..
    > Hi,
    >
    > I am running BIRT 2.0.0 and pdf generation which works properly on windows
    > is not working correctly on linux (Red Hat Enterprise Linux ES release
    > 3). I am able to generate pdf's from charts but textual reports display
    > varying results from completely blank to "File does not begin with
    > '%PDF-'" errors depending on the report being used.
    >
    > I did find the following on a BIRT 2.0.1 project plan page, however I was
    > not able to find anything corresponding in bugzilla:
    >
    > "BIRT Runtime can not find font for PDF generation on Linux. PDF document
    > is missing text content although it displays images and outlines of
    > tables."
    >
    > This seems to describe the behavior I am seeing in many cases, however
    > with very simple reports the pdf contains the header row with the first
    > column header displayed so fonts are not failing completely.
    >
    > I am going to try upgrading to the newest BIRT version but I am hoping
    > that someone can confirm this is in fact a bug and not a configuration
    > issue that has a workaround for 2.0.0.
    >
    > Thanks,
    > Brian

  • I have installed itunes 11.0.2.26. When I delete a file or podcast I am not being prompted to delete the file from its folder at the same time.

    I have installed itunes 11.0.2.26. When I delete a file or podcast I am not being prompted to delete the file from its folder at the same time. How do I restore this facility? I am running a 64bit Windows 7 OS

    Is the media files in question in the iTunes library or elsewhere on the computer?

  • "texts on html file" are not updated "when edited on server"

    Hi All,
    QUESTION
    What are the solutions, for having editable text/content on .html published files, so clients can edit through their server control panel
    Scenario:
    Client wants to update the "text" by editing the .html files on a server.
    I published the website as static html so the text can be included in .html file, but edits made on server's control panel, doesnt appear in live website.
    I also noticed that the texts located in edgeActions.js are editable through server, i am not very interested to define all my text content as the dynamic
    code because then I must worry about empty .html files and SEO questions.

    Here is what I ve found in regard to my own question...
    For a Client, to be able to change the text on server (Ex: phone numbers in a contact page), they should access and modify the text in the   edge.js or sometimes edgeaction.js page. Changing the text on .html page will create no result. I assume, this is because, the .html page is exported ONCE and only at the point of Publishing a project, to satisfy the SEO needs or whatever. Think of the text on .html page as a Sticker to fool the rest of the world, changing it will not change anything on webste and. Also if you change the text in .js, the change will not be relfected on .html file.

  • PDF Export Options not being Shown

    Need to export to pdf again. Last export was for only 6 pages, as a test. Now want to export the entire document. However, only 6 pages are created in the export. No options to revise the pages, are presented.
    The iD app is acting strangely, in that many other options are not being shown. Also, on loading a document, there are notes about hyphenation and missing LILO. Beginning to believe I need to reinstall.
    Pleae advise best course of action at this point.

    before you reinstall, see if trashing the prefs helps. See Replace Your Preferences

  • When is the next ios update and will it fix/address the issue with photos not being shown in chronilogical order?

    when is the next ios update and will it fix/address the issue with photos not being shown in chronological order?

    All of us here are users just like you. We have no inside info of when Apple products or operating system updates/upgrades will be released. The next iOS may not even change the issue you have.
     Cheers, Tom

  • ALL OF MY FILES ARE NOT BEING SAVED WHEN I CLOSE FINAL CUT PRO X ?

    ALL OF MY FILES ARE NOT BEING SAVED WHEN I CLOSE FINAL CUT PRO X ?

    WHAT FILES AREN'T BEING SAVED? WHAT FILES ARE SAVED?

  • In My Shared View the inbox tabs like My Tasks , Initiated Tasks are not being shown

    In My Shared View the inbox tabs like My Tasks , Initiated Tasks are not being shown :
    How to display the tabs in shared views also.
    I just wanted to created one shared view that will look like Inbox but filter data for State = 'Completed'

    Please update me if you can find any way to achieve this in BPM workspace

  • M2v files are not being read on my  new mac.

    I installed quicktime pro, dvd studio pro 3, final cut pro 4...and my m2v files will not play in quicktime or the preview window. I get a pop up window saying, "Movie could not be opened. not a movie file." With any of those programs installed, shouldn't mpeg-2 codec be installed automatically? I plugged in my external HD with all my movies on it back up to my old g4...and they play fine there. I noticed there was a problem on the new mac when i tried to import them into DVD studio pro. So how do i get the m2v files to be viewable in quicktime and in DVD studio pro?
    Thanks,
    Tony

    You must also install the MPEG2 playback component. It is also a good idea to use MPEG Streamclip which has some nice features for MPEG.
    http://www.sjoki.uta.fi/~shmhav/SVCDon_a_Macintosh.html#edit_convertMPEG

  • JavaScript files are not being updated while updating managed solution over Dynamics CRM Online

    Hi Support,
    While I am updating a managed solution over Dynamics CRM 2013 Online, JavaScript files are not being updated and is showing the source as of the last version of the managed solution. 
    I tried the same versions of solution on my CRM 2013 on-premise install (test organization) and it updated successfully.
    This is a bit urgent issue. Please suggest how to resolve this.
    Online version of the CRM is
    Microsoft Dynamics® CRM Online Spring '14
    (6.1.1.1855) (DB 6.1.1.1847)
    blog: <a href="http://technologynotesforyou.wordpress.com">http://technologynotesforyou.wordpress.com</a> | skype: ali.net.pk

    Our technical team managed to find the immediate cause for the problem, and a solution.
    According to them there was a corruption on a speciffic OLAP file. By deleting it, they allowed it to be recreated on the next application processing. The file in question was found in \Microsoft SQL Server\MSSQL.2\OLAP\Data\UGF.0.db\<APPLICATION>.38.cub.xml
    Where <APPLICATION> is the name of the problematic cube.
    After that everything is working.

Maybe you are looking for