Displaying HTML formatted text in JavaFX problem

Hello,
I need to display formatted HTML text in JavaFX (1.3.1).
The text for example is: "<html>abc<b>d</b>efg</html>"I found the way to display it by wrapping Swing JLabel component or using SwingLabel component.
When I launch the application from NetBeans it works fine.
When I launch the application from browser (IE, FF, Chrome) it works ok ONLY the first time I enter the page.
When I enter the page next time I do not see any text.
I can solve it by clearing browser cache OR clearing Java cache (removing just my jar and jnlp files from cache do not helps).
Any suggestions?
Thank you

Thank you,
1. I do not have directory you specified, I have C:\Users\[USER_NAME]\Sun\JavaFX\fonts folder instead (Win 7, 32 bit)
2. In this directory I have only one file: Amble-Condensed.ttf
3. Unfortunately, I can not delete the file (or folder) from the function you suggested, because the file is in use by Java (I can not delete it even from Windows Explorer)
Another thing I found: the text is displayed properly after I close the browser or go to another page that do not have applets...
Any other solutions?
Edited by: dpd on Dec 14, 2010 4:59 AM

Similar Messages

  • Javafx 1.3 with swinglabel displaying html formated texts

    Dear FX experts,
    I am using swinglabel to display html formated text, and it worked fine with the fx 1.2. However, as I moved to 1.3, the showing of the text is not so proper, because I want the content of the swinglabel be shown in the middle of the box(the label itself) I set. However, in 1.2 it's ok, but 1.3 gives me headache: it's not shown on the place it should be, like it's ignoring all the centering attribute I tried to declare...
    any ideas? or suggestions? or solution?
    (ps, it keeps saying a warning if I used the class under ext package, since swingLabel is under ext... maybe it means I can use another class to do this? but I can't find any...)
    my codes would be like the followings:
    public def contentLabel: SwingLabel = SwingLabel {
    text: "<html\><font size=6>test test</font></html>"
    width: 400
    height: 500
    horizontalAlignment: SwingHorizontalAlignment.CENTER
    public function run(){
    Stage {
        title:"test"
        scene: Scene {
             width: 800
             height: 600
             content: [contentLabel]
    }Edited by: 880613 on 20.08.2011 16:41
    Edited by: 880613 on 21.08.2011 05:13

    No one knows about this?
    the SwingLabel or all Class files under ext packages are simply going to be replaced but without substitutors???

  • How Do I Display HTML Formatted Text From A Data Table In Crystal Reports?

    I'm creating reports in Crystal XI.  The information being displayed in the reports comes from data tables where the text is formatted in HTML.
    I've worked with Crystal Reports enough to know that HTML text pulled from a data table doesn't appear in Crystal the same way it does in a web browser.  Crystal Reports ignores all the tags (...unless I'm missing something...) and just displays the text.
    Someone far more Crystal savy than I (...who I don't have access to...) came up with a Formula Field workaround that tricks Crystal Reports into displaying some basic HTML tags.  Here's that workaround:
    <!--
    stringVar TableName := ;
    TableName := Replace (TableName, "<ul>","<br> <br>");
    TableName := Replace (TableName, "<li>", "<br>   &bull; ");
    TableName := Replace (TableName, "</li>", "");
    TableName := Replace (TableName, "</ul>","<br> <br>");
    TableName := Replace (TableName, "<a", "<u><font color='blue'");
    TableName := Replace (TableName, "</a>", "</font></u>");
    TableName
    -->
    QUESTION - Does any similar workaround exist so I can display an HTML Table in Crystal Reports?  If not, is there any way to display HTML formatted text from a data table in Crystal Reports as it would appear in a web browser?

    Hi Steven,
    To display html text in Crystal Reports follows these steps.
    1. Right click on the field and select Paragraph tab.
    2. Under 'Text Interpretation' select 'HTML Text' and click OK.
    I have tried using the way,but it never works.So reply me if there is any way to solve the issue

  • How to display HTML formatted text in the field with Item Style: Raw Text

    How can I display HTML formatted text in the field with Item Style: Raw Text.
    Currently the Item Style is Raw Text, but the text is being displayed along with HTML tags without formatting.
    Regards

    Hi,
    Use Item Style formattedText.
    Regards,
    Gyan

  • It is possible to Display HTML Formatted Text?

    Hi
    This is what I want to accomplish:
    I created a system and now I want to add a help button on each page. This button will open a popup window which will display the help of the current page. (This is done)
    But now I want to display a formated text (plain or html) just like this example:
    h2. Help
    Page 20:
    Description:
    This page displays a list of users.
    And don't like this other:
    Help Page 20: Description: This page displays a list of users.
    Thanks a lot!

    This is still a problem...I'd like to add a bit to it.
    The HTML Editor correctly places formatting tags around the text and the item is saved to the db (or whatever)...however, when displaying the formatted text on an apex generated page, and it doesn't matter what type of DISPLAY (saved, non-saved, escape, etc..) is being used, Apex places <SPAN class="display_only"> around the text in question which is apparently overriding the html tags, so the text displays in the CSS defaults regardless of the formatting used by the HTML Editor. The reason the formatted text displays correctly in a "report" is because this span doesn't exist.
    I'd like to take the time to add a change request and request that item level classes are not buried within apex and the theme. It would be nice if they were displayed on the item, for example, so they could be easily removed or overrided...this span for example overrides even a TD level custom class because of it's placement, so there seems to be little or no way to override it.

  • Display issue with HTML formatted text in report builder

    I am using the FCKeditor in my application to allow endusers
    the ability to create formated text on reports. We curently are
    experiencing 2 issues: 1. If you copy and paste from MS Word
    2003/2007 it will not display the text correclty in the report; 2.
    If you use the FCKeditor toolbar to insert bullets or a numeric
    list it will not align the text correctly on the report. We are
    using Coldfusion 8 with Hotfix 1 and Coldfusion Report Builder's
    lastest build release.
    Has one experiences this same issue with HTML fields not
    printing correctly using the Report Builder? What other HTML
    editors besides FCKeditor might we use?
    Thanks,
    Dan VanWieren

    Can you tell me how to use </td> for each values
    Give me your example report - using before or after report
    Thanks
    MT
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by fdenis:
    Hi Gavin,
    If I understand well, your HTML tags are coded directly in your fields in the database, right? Because if it was not the case, you could have use a format trigger checking for which destination you're generating your report...
    if UPPER(:DESFORMAT) = 'HTML' or
    UPPER(:DESFORMAT) = 'HTMLCSS'
    then
    -- insert your HTML code in the value
    -- of your field. something like...
    newValue := '<B>' | | :YOUR_FIELD | | '</B>
    srw.set_field_char( 0, newValue );
    else
    -- when generating to other format,
    -- you'd have to add the formatting as
    -- you want.
    end if
    return( true );
    Of course, if it's not acceptable to remove the HTML tag from your database fields, you could develop a procedure that would translate your HTML tags to the good formatting (eurk... ;-)
    Good luck... :-)
    Frederic
    <HR></BLOCKQUOTE>
    null

  • JTextPane - HTML Formatted text Overlap!!!!!!!!!!

    The formatted text overlaps in the printed sheet, but
    it is displayed correctly in the JTextPane
    Code is below:
    import java.awt.*;
    import javax.swing.*;
    import java.awt.print.*;
    class Test implements Printable {
    static JTextPane pane;
    static public void main(String args[]){
    pane = new JTextPane();
    pane.setContentType("text/html");
    pane.setText("<html>"
    +"<font face=Serif size=-1>plain<b>bold</b>plain</font><br>"
    +"<font size=+0>plain<b>bold</b>plain</font><br>"
    +"<font size=+1>plain<b>bold</b>plain</font><br>"
    +"<font size=-1>...................................plain<b>bold</b>plain</font><br>"
    +"<font size=+0>...................................plain<b>bold</b>plain</font><br>"
    +"<font size=+1>...................................plain<b>bold</b>plain</font><br>"
    +"<font size=-1>.......................................................................plain<b>bold</b>plain</font><br>"
    +"<font size=+0>.......................................................................plain<b>bold</b>plain</font><br>"
    +"<font size=+1>.......................................................................plain<b>bold</b>plain</font><br>"
    +"<font size=-1>@@@@@@@@@@plain<b>bold</b>plain</font><br>"
    +"<font size=+0>@@@@@@@@@@plain<b>bold</b>plain</font><br>"
    +"<font size=+1>@@@@@@@@@@plain<b>bold</b>plain</font><br>"
    +"<font size=-1>@@@@@@@@@@@@@@@@@@@@@@plain<b>bold</b>plain</font><br>"
    +"<font size=+0>@@@@@@@@@@@@@@@@@@@@@@plain<b>bold</b>plain</font><br>"
    +"<font size=+1>@@@@@@@@@@@@@@@@@@@@@@plain<b>bold</b>plain</font><br>"
    +"<font size=-1>plain<i>italic</i>plain</font><br>"
    +"<font size=+0>plain<i>italic</i>plain</font><br>"
    +"<font size=+1>plain<i>italic</i>plain</font><br>"
    +"<font size=-1>...................................plain<i>italic</i>plain</font><br>"
    +"<font size=+0>...................................plain<i>italic</i>plain</font><br>"
    +"<font size=+1>...................................plain<i>italic</i>plain</font><br>"
    +"<font size=-1>.......................................................................plain<i>italic</i>plain</font><br>"
    +"<font size=+0>.......................................................................plain<i>italic</i>plain</font><br>"
    +"<font size=+1>.......................................................................plain<i>italic</i>plain</font><br>"
    +"<font size=-1>@@@@@@@@@@plain<i>italic</i>plain</font><br>"
    +"<font size=+0>@@@@@@@@@@plain<i>italic</i>plain</font><br>"
    +"<font size=+1>@@@@@@@@@@plain<i>italic</i>plain</font><br>"
    +"<font size=-1>@@@@@@@@@@@@@@@@@@@@@@plain<i>italic</i>plain</font><br>"
    +"<font size=+0>@@@@@@@@@@@@@@@@@@@@@@plain<i>italic</i>plain</font><br>"
    +"<font size=+1>@@@@@@@@@@@@@@@@@@@@@@plain<i>italic</i>plain</font><br>"
    +"</html>");
    JFrame frame = new JFrame("Printing test");
    frame.getContentPane().add(pane);
    frame.setSize(600,800);
    frame.setVisible(true);
    PrinterJob job = PrinterJob.getPrinterJob();
    job.setPrintable(new Test(), job.defaultPage());
    if (job.printDialog()) {
    try { job.print(); }
    catch (Exception e) { }
    System.exit(0);
    public int print(Graphics g, PageFormat pf, int pageIndex) throws PrinterException {
    if (pageIndex >= 1) return Printable.NO_SUCH_PAGE;
    Graphics2D g2d = (Graphics2D)g;
    g2d.translate((int)pf.getImageableX(), (int)pf.getImageableY());
    g2d.setClip(0, 0, (int)pf.getImageableWidth(), (int)pf.getImageableHeight());
    try { pane.print(g2d); }
    catch (Exception e) { }
    return Printable.PAGE_EXISTS;
    The bold text overlaps

    I think the textpane wisth has is not adustable to theformatted text to acccomodate

  • Email html formatted (Text) printing quality issue on hp 6500a (710a)

    I experience some quality problems printing html formatted mails (not attachments, only standard text). The characters are printed with different free space between every char. There is no special sign or format. It happens from different note/netbooks/iphone.
    Pure email-Text-Printing is ok (same text), Attachment-Printing (word-doc arial text only) is ok (same text).
    The  printer has the actual firmware, alle computers and iphone are uptodate. Reset is no solution. Problems are reproducable on other hp 6500 series printers.
    See attached example

    kaaemm,
    Unfortunately, HTML formatted emails are not currently supported. They may go through and print, but results will vary. Only HTML attachments are supported at this time.
    ============================
    If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • Netscape displays HTML as text

    We are running 9iAS 9.0.2.1 and I have a simple servlet setup for handling NullPointerExceptions. This is done in the web.xml.
    The servlet is working fine for Internet Explorer. In Netscape I go to a servlet that has a hardcoded NullPointerException and then get forwarded to the error handling servlet, but it displays the HTML as text.
    When I go directly to the error servlet in Netscape, it renders the HTML fine, the problem only occurs when the container is forwarding to the servlet because of an error.
    Any ideas?

    Try to check HTML source you are getting from the server. You can try to do this using NetCat, for example. You have to provide all the parameters in HTTP request, of course. Displaying page source after download is sometimes not enough.
    Internet Explorer fixes MANY of problems of HTML page it is trying to display, like missing <HTML> or <BODY> tags in source. Netscape is sticking more to HTML specification.
    Myrra

  • HTML formatted text in Spark

    I had a line in my old halo code that added new chat messages to a TextArea when they came in.  Each line had some formatting in it - like changing the color of the name of the user who sent the message.  Any thoughts on how to implement this in spark?  I tried the line below but spark.utils.TextFlowUtil doesn't know anything about a <font> element - just flow stuff.  How would this be done?
    txtArea.textFlow += spark.utils.TextFlowUtil.importFromString("<font color='#00BBFF'><b>" + e.msgObject.name + ": " + "</b></font>" + e.msgObject.msg + "\n");

    In Spark, you assign to the content, not the .text.  In MX, use the HTML
    renderer from my blog
    Alex Harui
    Flex SDK Team
    Adobe System, Inc.
    http://blogs.adobe.com/aharui

  • Exceptions for JLabel with HTML format text.

    Hi,
    When the follow code been runing, and press the "Submit" button,
    the follow exceptions are thrown.
    How could I got a right result?
    I could not find a way to work out it, and need a export help me.
    Thanks and Best Regards.
    Xue
    JFrame f=new JFrame();
              JPanel p=new JPanel(new BorderLayout());
         JLabel label=new JLabel();
         label.setForeground(Color.blue);
         StringBuffer sb=new StringBuffer();
         sb.append("<html>");
         sb.append("<head>");
         sb.append("</head>");
         sb.append("<body>");
         sb.append("<p>A<font color=\"#FF0000\">BCD</font>E<font color=\"#FF0000\">F</font>G</p>");
         sb.append("<form method=\"POST\" action=\"http://openelec.vicp.net:8080/\">");     
         sb.append("<p>Text:<input type=\"text\" name=\"T1\" size=\"20\"><input type=\"submit\" value=\"Submit\" name=\"B1\"><input type=\"reset\" value=\"Cancel\" name=\"B2\"></p>");
         sb.append("</form>");
         sb.append("<table border=\"1\" width=\"100%\" id=\"table1\">");
         sb.append("<tr>");
         sb.append("<td align=\"center\">Name</td>");
         sb.append("<td align=\"center\">Desc</td>");
         sb.append("</tr>");
         sb.append("<tr>");
         sb.append("<td align=\"center\"><font color=\"red\"><i>Xue Chen</i></font></td>");
         sb.append("<td align=\"left\">I am a Chinese. </td>");
         sb.append("</tr>");
         sb.append("</table>");
         sb.append("</body>");
         sb.append("</html>");
         label.setSize(600,400);     
         label.setText(sb.toString());
         p.add(label,BorderLayout.CENTER);
         f.getContentPane().add(p,BorderLayout.CENTER);
         f.setSize(new Dimension(600,300));
         f.setVisible(true);     
    Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: javax.swing.JLabel cannot be cast to javax.swing.JEditorPane
         at javax.swing.text.html.FormView.submitData(FormView.java:409)
         at javax.swing.text.html.FormView.actionPerformed(FormView.java:356)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.Component.processMouseEvent(Component.java:6038)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
         at java.awt.Component.processEvent(Component.java:5803)
         at java.awt.Container.processEvent(Container.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:4410)
         at java.awt.Container.dispatchEventImpl(Container.java:2116)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2429)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

    Hello,
    Thanks for you answer.
    There is a hard problem for this topic.
    how can I get the text value from text field in the html?
    I can got the Document object of the html in implement interface HyperlinkListener.
    Example, I input some chars in the text field<input type="text" name="T1" id="textField">.
    but I can not get the text that I input in the frame.
    Thanks and Best Regards
    here are the codes:
    * Called when a hypertext link is updated.
    * @param e the event responsible for the update
    public void hyperlinkUpdate(HyperlinkEvent e){
         Object src=e.getSource();
         //System.out.println(src);
         HTMLDocument doc=(HTMLDocument)e.getSourceElement().getDocument();//.getDefaultRootElement().getElementCount();
         Element el=doc.getElement("textField");//doc.getDefaultRootElement();
         System.out.println(el.toString());
         if(el!=null){                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to append html formatted text to JPaneText?

    Hi,
    I'm trying to append html to JPaneText and I can't do it. My code is below:
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.text.html.HTMLEditorKit;
    import javax.swing.text.html.*;
    import javax.swing.text.*;
    public
    class GUI
    extends JFrame {
         JTextPane wynikTxtAre = new JTextPane();
         JScrollPane suwak = new JScrollPane(wynikTxtAre);
         JPanel panelSrodek = new JPanel();
         HTMLDocument doc;
         HTMLEditorKit kit = new HTMLEditorKit();
         public GUI()
    super.setSize(640, 480);
    super.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    wynikTxtAre.setEditable(false);
    wynikTxtAre.setDocument(kit.createDefaultDocument());
    doc = (HTMLDocument)wynikTxtAre.getDocument();
    suwak.setPreferredSize(new Dimension(600, 400));
    panelSrodek.add(suwak);
    super.getContentPane().setLayout(new BorderLayout());
    super.getContentPane().add("Center", panelSrodek);
    super.setVisible(true);     
         public static void main (String [] args) {
              GUI g = new GUI();
              try {
         Style style = g.doc.addStyle("StyleName", null);
         StyleConstants.setItalic(style, true);
         StyleConstants.setFontSize(style, 30);
         StyleConstants.setBackground(style, Color.blue);
         StyleConstants.setForeground(style, Color.white);
         // Append to document
         g.kit.insertHTML(g.doc, g.doc.getLength(), "tekxt", 1, 1, HTML.Tag.B);
         //g.doc.insertString(g.doc.getLength(), "<b>Some Text</b>", style);
         } catch (Exception e) {
              System.out.println(e.getMessage());
    If i use insertHTML method then there is no text on the text area.
    If i use insertString method then text appear but it doesn't resolve html tags.
    Please help.

    I did something like this:
    public
    class GUI
    extends JFrame {
    //previous code - no changes
         public static void main (String [] args) {
              GUI g = new GUI();
              StringBuffer buf = new StringBuffer();
              try {
         buf.append("<b>bb</b>");
         buf.append("<b>ccc</b>");
         // First append to document
         g.pane.setText(buf.toString());
    //Second append
         buf.append("<b>ddddd</b>");
         g.pane.setText(buf.toString());
         } catch (Exception e) {
              System.out.println(e.getMessage());
    I know that this method is not smart and doesn't look good, but it works.
    If you know how to append html using HTMLEditorKit and HTMLDocument please write some example.

  • Problem reading external HTML format from text file

    I have a text file containing html formatted text which I try to get into a textfield.
    All works fine locally and even on my localhost test server, but when uploading to the real server - I get a blank.
    Anyone have any ideas? THANKS
    The text file :
    &t2=<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Comic Sans MS" SIZE="14" COLOR="#FF0000" LETTERSPACING="0" KERNING="0">Some text here</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Comic Sans MS" SIZE="14" COLOR="#FF0000" LETTERSPACING="0" KERNING="0">One more line</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Comic Sans MS" SIZE="14" COLOR="#FF0000" LETTERSPACING="0" KERNING="0">And more text here</FONT></P></TEXTFORMAT>
    and the AS code in the movie:
    viewData.onPress = function() {
         //get text
         loadText()
    var tz
    function loadText() {
    var my_lv:LoadVars = new LoadVars();
    my_lv.onLoad = function(success:Boolean) {
      if (success) {
      //trace(this.toString())
      mytext.htmlText= this.t2;
      } else {
      //trace("Error loading/parsing LoadVars.");
    my_lv.load("myfile.txt");

    Thanks kglad, I did it and it made me find the real problem:
    The text file is generated by PHP script that gets an html formated text from flash (it is an online editing part of an application):
    the AS code to call the php:
    var send_lv:LoadVars = new LoadVars();
    send_lv.t1 = "&t2="+editor.t1.htmlText+"&";
    send_lv.sendAndLoad("write.php", res_lv, "POST");
    the PHP:
    <?php
    $mydata = $_POST["t1"];
    $myFile = "recipe.txt";
    $fh = fopen($myFile, 'w') or die("can't open file");
    fwrite($fh, $mydata);
    fclose($fh);
    print "&done=done";
    ?>
    From some reason the online server adds \ before any " , but WAMP doesn't.
    here is the text generated on localhost (WAMP)
    &t2=<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Comic Sans MS" SIZE="14" COLOR="#FF0000" LETTERSPACING="0" KERNING="0">local text</FONT></P></TEXTFORMAT>&
    online server:
    &t2=<TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Comic Sans MS\" SIZE=\"14\" COLOR=\"#FF0000\" LETTERSPACING=\"0\" KERNING=\"0\">online text</FONT></P></TEXTFORMAT>&
    I know its not a Flash problem now, but do you have any idea?
    Thanks

  • Help with displaying formated text

    I need some advice in displaying the results from my program. I recieve these results from a CGI program and then display it. I can format how the CGI outputs the text however I want, but in an attempt to make it look nice I have the CGI output html syntax and place my data in nice tables. This text I then send to a JEditorPanel and tell it the text type is html. But there are two problems. The first is, that the results look terrible. It places huge spaces between lines of text, the text is formated bad and at the beginning is the text "head", and "/head" inside of two boxes. The thing is though, if I view this same text straight in Netscape it looks great, but whatever HTML I send to the JEditorPanel looks terrible. Is there a way to improve its results or is there another , better thing to use than the JEditorPanel or a better way to use the JEditorPanel that will allow me to create a pretty, formated text output?

    This was an old post of mine and I don't remember exactly how I was trying to do it, but the problem was just something with the way I was setting up my JEditorPane.
    Now I declare it like this:
         javax.swing.JEditorPane ResultsDisplay = new javax.swing.JEditorPane();
         JScrollPane ResultsDisplayScrollPlane = new JScrollPane(ResultsDisplay);
         HTMLEditorKit htmlEdKit = new HTMLEditorKit();And I do this to set it up during initialization:
              ResultsDisplay.setEditable(false);
              ResultsDisplay.setEditorKit(htmlEdKit);
              ResultsDisplay.setContentType("text/html");
              ResultsDisplay.setEditorKitForContentType("text/html", htmlEdKit);and this during run time to display my HTML formated text:
                   Document doc = ResultsDisplay.getEditorKit().createDefaultDocument();
                   ResultsDisplay.setDocument(doc);
                   System.out.println(inputLine);
                   ResultsDisplay.setText(inputStore.toString());
                   getContentPane().validate();
                           getContentPane().repaint();some of this could be redundant, but it works.
    But are you sure you don't want the dukes? They're stuck to this question and I don't know what else to do with them

  • New Safari 2.0.3 displays some Router Firmware pages as HTML Source text

      Hello Safari users and gurus.
    I installed the new 10.4.4 Combo Updater yesterday, preceded and followed by permissions repairs and other maintenance, including cleaning Safari Caches. Safari 2.0.3 works.
    My problem: 10.4.4's new Safari 2.0.3 displays HTML source text after I click "Save" from within my Linksys (latest firmware) router's web based administration pages that worked correctly with the previous version of Safari.
    When I check or change my router settings, the initial router settings pages appear as they did with the previous version of Safari. However, with 10.4.4's new Safari 2.0.3, as soon as I click "Save" to attempt to save a changed router setting, the confirming info from the router is displayed as HTML source code instead of the expected HTML page display.
    If I wait for the router lights to indicate activity has ceased and then reload the router's opening admin address, the page opens again normally, and I can navigate to other pages and see that the changes have been saved. However, any click on any "Save" changes button in the router's pages delivers another page of HTML source text.
    I will watch for future router firmware updates to see whether the issue is resolved from the Linksys side.
    Does anyone have any suggestions for improvement now? All assistance will be appreciated.
    EZ Jim

     Thanks glefand. As you suggested, I tried my old iBook G3 that is still running 10.3.9, and it works fine for me.
    My G5 DP also worked normally up through OS X 10.4.3. My problem only began after I installed the 10.4.4 update. I think the Safari update included with the 10.4.4 update is what is causing the issue with the firmware pages on my Linksys router.
    Hopefully a future router firmware update (or Safari update?) will restore proper operation. If not, I will continue to reload from the router's Start page. The need to work around this glitch is annoying, but the actual function of my router setup works without problem, even though the pages do not display properly.
    Thanks again for your helpful suggestion,
    Jim
    G5 DP 1.8, 4.5G RAM, 2x160GB Seagate, 1,000va UPS   Mac OS X (10.4.4)   20"ACD, iSight, AirportCard, Klipsch GMX A-2.1 Audio

Maybe you are looking for