JEditorPane html display problem

Hello,
I'm running a JEditorPane inside an Applet for a project im working on. The source included below is an over-simplified version that produces the same results. The problem i'm having is that the html displays in an odd fasion in the JEditorPane.
Since I cant include a screenshot let me attempt to describe it. Regardless of the FONT face in the html the paragraph displays as you would expect in the JEditorPane until the last line. The last has extra horizontal space separating it from the rest of the paragraph. This seems completely arbitrary. There is nothing in the html code near the line break.
I've linked this problem to the font face attribute tags. Regardless of the font I choose it displays improperly. Any idea on how to remove this spacing problem in my JEditorPane?
I'm using NetBeans 3.5.1 and SDK 1.4.2. I've tested this problem in the AppletViewer as well as online in a web browser.
* CourierTest.java
* Created on July 24, 2004, 8:28 PM
import java.awt.Font;
import java.io.*;
* @author LD Miller
public class CourierTest extends javax.swing.JApplet {
String html;
/** Initializes the applet CourierTest */
public void init() {
initComponents();
html = "<P class=MsoNormal style=\"MARGIN: 0in 0in 0pt\"><FONT size=3><FONT face=\"Times New Roman\">What is event-driven programming?It is a <I>computer programming</I> paradigm that is different from traditional, sequential programming. In traditional, sequential programming, one could follow the program and plot out exactly the sequence of execution of the program. However, in event-driven programming, it is not possible to plot out exactly the sequence of execution of the program since flow of the execution is determined by the events. Event-driven programming allows a program to interact with users and re-act to user-generated events in a more efficient and effective manner. </FONT></FONT></P>";
jTextPane1.setContentType("text/html");
jTextPane1.setText(html);
/** This method is called from within the init() method to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
private void initComponents() {
jScrollPane1 = new javax.swing.JScrollPane();
jTextPane1 = new javax.swing.JTextPane();
jScrollPane1.setViewportView(jTextPane1);
getContentPane().add(jScrollPane1, java.awt.BorderLayout.CENTER);
// Variables declaration - do not modify
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JTextPane jTextPane1;
// End of variables declaration

1) I have complex html page (having lot of html controls).
.when i resize the container, controls gets overlapped.
shall we avoid this? to my experience JEditorPane deviates from the display of typical browsers when HTML is displayed that contains complex table layouts (tables nested in other tables or non-explicit or non-existent size expressions in tables for instance). I recommend to try and simplify layout complexity as a workaround. Start with a most simple page and increase complexitiy until display gets unsatisfactory.
2) I used JEditorPane. My html contents are stored in
text. i called setText()...whether i need to use
HTMLDocument, HTMLEditorKit etc...to render
html in better way...I did not understand your second point, what is the question?
Ulrich

Similar Messages

  • Embed google calendar html display problem

    i have embeded the custom html google calendar code.   it looks ok on my page in adobe muse ,
    showing about 8 different calendars and colors, and the default display is supposed to be one week. 
    however  it is not displayed properly.  you can see my calendar , as published on
    http://http://farandawayfarms.businesscatalyst.com/weeklylessons.html
    my calendar should look very similiar to this  example i found on the support forum..
    http://http://www.learnadobesoftware.com/calendar.html
    if i insert the code into the html object many times and publish  the page,  occasionally I get the  correct display,
    but then after the page is opened and closed several times,  the display looks like the former link and not the latter.
    this seems to be some bug.   I am using the beta program, but see no indication that I am using the new cloud version, although I am a cloud subscription subscriber.   I have adobe muse 4.1.    all my software is installed from my cloud license. 
    I'm trying to go live with this site in a few days, and I need to solve this problem. 
    thank you. 

    I ran the w3 html validator on the google calendar code and it complained about the "border" 
    and the "no scrolling"  attributes, so I removed them since both were empty or set to "0"
    here is the google calendar "iframe" code from the google calendar:
    <iframe src="https://www.google.com/calendar/embed?title=Far%20and%20Away%20Farm%20&showTitle=0&mode=WE EK&height=800&
    wkst=2&amp;bgcolor=%23FFFFFF&amp;src=n1cmk9a9dcv5vfp6m1dcq2iuq4%40group.calendar.google.co m&amp;
    color=%23B1365F&amp;src=3prbo71caivm2rr2bcubin7mfc%40group.calendar.google.com&amp;
    color=%238C500B&amp;src=kr7vu7gp0o0rorh9skd2b06irg%40group.calendar.google.com&amp;
    color=%23711616&amp;src=7s9vjaa0880qpujfc53b23gpuc%40group.calendar.google.com&amp;
    color=%23AB8B00&amp;src=farandawayfarm%40gmail.com&amp;color=%231B887A&amp;
    src=jabb7olrvtt29c2umjlh5ead50%40group.calendar.google.com&amp;color=%235F6B02&amp;
    src=gk5mjc03hh2njundv9n37or2ac%40group.calendar.google.com&amp;color=%232952A3&amp;
    src=2sjio5skb4i7f84g8bej1jhqdo%40group.calendar.google.com&amp;color=%2342104A&amp;
    src=%23contacts%40group.v.calendar.google.com&amp;color=%23B1365F&amp;
    src=en.usa%23holiday%40group.v.calendar.google.com&amp;color=%231B887A&amp;
    src=p%23weather%40group.v.calendar.google.com&amp;color=%238D6F47&amp;ctz=America%2FNew_Yo rk" style=" border-width:0 " width="960" height="800" ></iframe>
    i appreciate any suggestions or help. 

  • JEditorPane Problem - HTML display

    Hi,
    In my swing application, i am using JEditorPane to display the html contents. Simple html pages are displayed without any problem.
    But when it is complex html page( it has more html field controls, different styling etc..)the display is not accurate. If i resize the container window..the HTML field controls(textfield, textarea blah..blah..) gets overlapped in case of complex html page and the html view looks ugly in jeditorpane.
    MoreOver, i set maxlength, size attribute for html textfield
    e.g. <input type="text" value="someval" maxlength="10" size="10">
    JEditorPane doesn't take care of these attributes in textfield during display...
    In Simple and short, i want to see and have all features of html page in JEditorPane just like as it is in InternetExplorer.
    any help/directions would be greatly appreciated..
    -Mani

    1) I have complex html page (having lot of html controls).
    .when i resize the container, controls gets overlapped.
    shall we avoid this? to my experience JEditorPane deviates from the display of typical browsers when HTML is displayed that contains complex table layouts (tables nested in other tables or non-explicit or non-existent size expressions in tables for instance). I recommend to try and simplify layout complexity as a workaround. Start with a most simple page and increase complexitiy until display gets unsatisfactory.
    2) I used JEditorPane. My html contents are stored in
    text. i called setText()...whether i need to use
    HTMLDocument, HTMLEditorKit etc...to render
    html in better way...I did not understand your second point, what is the question?
    Ulrich

  • HTML Link problem (Urgent!)

    I'm writing a prrogram that displays an HTML file. I used a JEditorPane. I tryed using the hyperlinkListener but it doesn't work! here's the class I wrote...
    can anyone help please?
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.*;
    import javax.swing.*;
    import browser.*;
    import java.net.*;
    import javax.swing.event.*;
    * Classe :
    * Description :
    * Societe : Medias France
    * @version 1.0
    public class Aide extends JFrame implements HyperlinkListener
         BrowserInterface bI;
         URL url1;
         static Interface parent;
         public Aide(String titre, Interface i)
              super(titre);
              parent = i;
              getContentPane().setLayout(new BorderLayout());
              //bI = new BrowserInterface(jp);
              setBounds(10,10,800,600);
              addWindowListener(new WindowAdapter()
                   public void windowClosing(WindowEvent e)
                   quit(null);
              try
                   url1 = new URL("file:/home/darkazan/java/BDO/tablegen-1.8/help/help.html");
                   //bI.URL_Process(url1);
              catch (MalformedURLException e)
                   System.out.println("probleme " + e.toString());
              JEditorPane editorPane = new JEditorPane();
         editorPane.setEditable(false);
         try
         editorPane.setPage(url1);
         catch (IOException e)
         System.err.println("Attempted to read a bad URL: " + url1);
         JScrollPane editorScrollPane = new JScrollPane(editorPane);
              editorScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
         editorScrollPane.setPreferredSize(new Dimension(800, 600));
         getContentPane().add(editorScrollPane, "Center");
         pack();
         setVisible(true);
         public void hyperlinkListener(HyperlinkEvent e)
              if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED)
         // do something on HL click
    System.out.println("ouverture");
              if (e.getEventType() == HyperlinkEvent.EventType.ENTERED)
              // do something on mouse over HL
         // do something on HL click
         System.out.println("bbbbbbbbbbbbbbbbbbbb");
    if (e.getEventType() == HyperlinkEvent.EventType.EXITED)
    // do something on HL click
    System.out.println("ggggggggggggggggggg");
    // do something on mouse moved away from HL
         public void hyperlinkUpdate(HyperlinkEvent e)
         public static void main(String[] args)
              Aide aide1 = new Aide("Help", parent);
         * Quitter l'application
         * @param     e L'evenement recu
         * @return     Sans objet.
         void quit(ActionEvent e)
              parent.bAide.setEnabled(true);
              dispose();
    }

    also check your file protocol it should look like this: file:/// with three slashes(i think?)
    here Mr. Urgent, my html viewer: (and it works) ;P
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    import javax.accessibility.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.URL;
    import java.net.MalformedURLException;
    import java.io.IOException;
    public class iROCHelp extends JPanel implements HyperlinkListener{
    //ATTRIBUTES
    JEditorPane html;
    private static boolean HelpShowing = false;
    private static JFrame selTopic;
    //METHODS
    //Constructor
    public iROCHelp(java.net.URL URLstr){
    //setBorder(new EmptyBorder());
    setLayout(new BorderLayout());
    try{
    URL url = URLstr;
    if(url != null){
    html = new JEditorPane(url);
    html.setEditable(false);
    html.addHyperlinkListener(this);
    JScrollPane scroller = new JScrollPane();
    JViewport vp = scroller.getViewport();
    vp.add(html);
    vp.setBackingStoreEnabled(true);
    add(scroller, BorderLayout.CENTER);
    catch (MalformedURLException e){
    System.out.println("Malformed URL: " + e);
    catch (IOException e){
    System.out.println("IOException: " + e);
    }//HelpTopic CONSTRUCTOR
    public void hyperlinkUpdate(HyperlinkEvent e){
    if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED){
    linkActivated(e.getURL());
    }//hyperlinkUpdate
    protected void linkActivated(URL u){
    Cursor c = html.getCursor();
    Cursor waitCursor = Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR);
    html.setCursor(waitCursor);
    SwingUtilities.invokeLater(new PageLoader(u, c));
    }//linkActivated
    class PageLoader implements Runnable{
    PageLoader(URL u, Cursor c){
    url = u;
    cursor = c;
    public void run(){
    if (url == null){
    // restore the original cursor
    html.setCursor(cursor);
    Container parent = html.getParent();
    parent.repaint();
    else{
    Document doc = html.getDocument();
    try{
    html.setPage(url);
    catch (IOException ioe){
    html.setDocument(doc);
    finally{
    // schedule the cursor to revert after
    // the paint has happended.
    url = null;
    SwingUtilities.invokeLater(this);
    }//else
    }//run
    URL url;
    Cursor cursor;
    }//PageLoader
    public static void spawnHelp(java.net.URL URLStr){
    if (!HelpShowing){
    selTopic = new JFrame();
    selTopic.getContentPane().setLayout(new BorderLayout());
    selTopic.getContentPane().add(new iROCHelp(URLStr),BorderLayout.CENTER);
    Dimension dim = selTopic.getToolkit().getScreenSize();
    selTopic.setLocation((int)dim.getWidth()/2-selTopic.getWidth()/2,(int)dim.getHeight()/2-selTopic.getHeight()/2);
    selTopic.setSize(500, 400);
    selTopic.setTitle("Remote Operators Console Help");
    selTopic.addWindowListener(new WindowAdapter(){
    public void windowClosing(WindowEvent e){
    closeHelp();
    }//windowClosing
    selTopic.show();
    HelpShowing = true;
    }//if help showing
    }//spawnHelp
    public static void closeHelp(){
    if (HelpShowing){
    selTopic.dispose();
    HelpShowing = false;
    }//closeHelp
    }//HelpTopic CLASS

  • JEditorPane, html, tables and images

    I am trying to use jEditorPane to display an HTML document. If images are included into cells of a table, the width and height of the cells do not adjust to the size of the images (as it happens with common web browsers), no matter what parameters I use for TD and IMG tags.
    Do you experience the same problem? Is there a solution?
    Thanks.
    Ruben Razquin

    Hi Ruben,
    you will have to implement adjustment of table cells yourself to achieve this. With the existing way JEditorPane et. al. render tables table cells always are sized either in default sizes or by attributes explicitly giving the size (such as attribute WIDTH).
    Ulrich

  • Ideacentre B320 display problem

    I'm suffering from a display problem, and cannot figure if it's a software or hardware issue... I'm on Win7 64bit. Here are the symptoms:
    1) For a while now, intermittently the screen would go grey (or some sort of a messed up pattern of rgb pixels) and I would have to power down forcefully. The frequency of this has gone up very much in the recent weeks
    2) When the machine freezes, I can still hear the music playing, and Windows continues to do whatever it was doing before
    3) Recently (I'm guessing after a Windows update), I wasn't able to boot into normal mode anymore. It would show the Windows splash screen, then before the login screen appears it would just go black and freeze. Leaving it for a long time doesn't lead to recovery
    4) To try and fix this, I've updated the ATI driver to the latest version, which didn't work so progressively tried every version between the11.6 and 10.3 (4?) which was the default when the machine was purchased. No luck there. I've also flashed the bios and that didn't help either
    5) I can boot into safe mode, so I disabled amdkmdap using sysinternal's autoruns.exe, which meant that I can boot into normal mode, but it woud fall back onto Windows' vga driver (1400x1050 only!)
    6) Now, even in the low res mode, almost daily the grey screen freezing would happen and I would have to reboot. Tapping the power button allows the shutdown dialog to come up (I'm guessing), and pressing enter would shut down the machine then.
    There's an awful lot of posts on the internet regarding people having issues with ATI HD6450 and similar category cards, some of which sound similar to my case. They too experienced the freezing problem and reverting or upgrading the drivers had no effect (many even reinstalled windows completely). It sounds like though, the problem is software in origin at a guess.
    On the other hand, the machine is now 3-4 years old and I could imagine that the GPU or graphics memory might have suffered wear and tear -- emailing Lenovo support took a week to get a response, the only thing they asked was whether my warranty is still active (after that it's been a complete silence) are they usually this terrible?
    The last thing is, when the problem first occurred I booted using a linux live CD and it was all fine, at full resolution graphics. I haven't repeated this experiment since it takes quite a while to boot from a CD... but suggested that the hardware is intact. In fact, by messing about with the drivers I was able to boot into Windows normal mode and operate for 1-2 days, after which the grey freeze happened again. I haven't been able to get back into that since.
    Here is my question: Is there a way to find out whether it's software or hardware that's at fault? If it turns out to be hardware, what are my options at replacements? The GPU is soldered onto the motherboard, so do I have to replace the whole thing? If it's a software issue, would restoring to factory default state fix this issue, given that an unknown update could cause the same issue at any time... This is the last time I will buy an AIO without removable everything. 

    Welcome to the Lenovo Community !
    Probably a good test of the hardware is use the Linux Live CD that you used earlier.   If the graphics are still good when using the Live CD then your monitor and GPU are fine. 
    If the hardware checks out Ok then I suspect you have a driver problem.  Try using a driver cleaner to fully uninstall the ATI driver since bit and pieces left over from previous driver installs can cause problems.  The link below is for a free and highly recommended utility for cleaning the system of the graphic drivers.  After the clean up I would try installing the original driver that came with your system.
    http://www.guru3d.com/content-page/guru3d-driver-sweeper.html
    Owner & Operator of the following:
    ● Lenovo Ideapad Z570 w/ Win 7 & Win 8.1 Dual Boot ● Lenovo Yoga 3 Pro w/ Windows 8.1 ● Toshiba A75-S206 w/ Win 7
    ● IBM Thinkpad T-23 w/ Win XP ● IBM Thinkpad T-22 w/ Win XP • As well as multiple desktops dual/triple booting XP, Vista and Win 7.
    ★ Find a post helpful? Thank that member by clicking on the ☆Star☆ to the left awarding them a Kudo.
    ★ Posting a problem and a reply is helpful and it answers your question, please mark it as an "Accepted Solution"
    ★ I'm not a Lenovo employee, just a volunteer geek who likes to help folks. Enjoy your time here, pay it forward by helping others !
    ★ Sorry, I don't answer questions via Private Messages. Posting in the appropriate forum is the best way to get assistance.

  • Display problem in Analyzer

    Dear All,
    I've met 2 display problems in Analyzer:
    1) some key figures are displayed like "~ 90kg ".Why will the "" be displayed?
    2) some others just have a "*" presentation. These are not totals which sum quantites with different units of measure.
    Looking farward to any ideas.
    Regards,
    Bolun
    Edited by: bolun li on Oct 14, 2008 3:14 AM

    Hi Bolun,
    1) some key figures are displayed like "~ 90kg ".Why will the "" be displayed?
    --> Strange, try to drill down lowest level and check & validate data(correct or not)
    2) some others just have a "*" presentation. These are not totals which sum quantites with different units of measure.
    --> Due to different Units of Measure. Try to drill down to lowest level, you can see proper values.
    Or convert all different Units of Measures into one Unit at Transformation/Update Rules or Query level.
    Please check: [How To... Report Data in Alternate Units of Measure|http://sapbwneelam.blogspot.com/2008/09/how-to-report-data-in-alternate-units.html]
    Hope it Helps
    Srini

  • PHP MySQL data display problem

    I am having trouble getting data to display on my web page.In Dreamweaver CS3, I created a new page.
    Selected PHP as the type.
    Saved it.
    Connected a database and created a recordset (all using Dreamweavers menus. I did not write any code).
    NOTE: The database is on a remote server.
    The TEST button displayed the records from the recordset with no problem.
    On the new page, I then typed some text.
    Then dragged some fields from the Bindings tab to the page.
    I saved it and then went to preview it in my browser.
    The page comes up completely blank. Not even the text shows.
    I then saved the page as an HTML page.
    When I preview this in my browser, the text shows, but the fields and data do not.
    I then tried creating a dynamic table (again, using the Dreamweaver menus.).
    A similar thing happens, ie. If I save it as an HTML, the text shows and the column labels and border shows, but no data.
    Nothing shows if I save it as a PHP file.
    I can view the data online using files created by PHPMagic, so I know the data is there and retrievable.
    It is just in pages created in Dreamweaver that don’t work.
    What am I doing wrong?

    My web server supports PHP. I can disply PHP pages created by other software packages, just not the Dreamweaver ones.
    Frank
    Date: Thu, 4 Jun 2009 19:04:03 -0600
    From: [email protected]
    To: [email protected]
    Subject: PHP MySQL data display problem
    To view php pages - or pages with PHP code in them - in a browser, the page must be served up by a Web server that supports PHP. You can set up a testing server on your local machine for this purpose. Look for WAMP (Windows), MAMP (Mac), or XXAMP for some easily installed packages.
    Mark A. Boyd
    Keep-On-Learnin'
    This message was processed and edited by Jive.
    It shall not be considered an accurate representation of my words.
    It might not even have been intended as a reply to your message.
    >

  • Graphics display problems (dialog boxes) Lenovo G50 AMD A6 Win 8.1

    Graphics display problems Lenovo G50 AMD A6 Win 8.1 Greetings to all. After having spent a number of days trying to find a solution to a display problem, I turn to this forum for help. I own a Lenovo G50 AMD A6 Win 8.1 ever since November 2014, and have had display problems ever since the first day, be it while using internet (Firefox or Explorer) or various software (Text editors, etc.). Many dialog boxes, including colour settings and controls (open, close etc.) either have an inappropriate appearance or even do not appear at all! I manage to "click" on the right places using memory: most areas are INVISIBLE! Another example would be that I do not see any backround colour or image on most webpages such as this one).  Some suggestions included checking for graphics updates (but the drivers used were already up-to-date).  I 'd be most obliged for any new suggestions. Thank you very much. George

    Greetings to all, I finally decided to express my utmost discontent with- the Lenovo G50-45 I bought before Christmas 2014,- the summary response with inappropriate links that I received after exposing  my problem- the fact that I tried to dowload the following graphics driver  (Beema) AMD Driver (VGA, HDAudio, SATA) for Windows 8.1 (64-bit)
    exe
    526 MB
    Windows 8.1 (64-bit)
    VGA V14.502.1002.1002-Logo'd_HDAudio v9.0.0.9905_SATA v1.3.1.220;VGA v13.302.1601.1001_HDAudio v9.0.0.9905_SATA v1.3.1.220
    3/19/2015from here(http://support.lenovo.com/fr/fr/products/laptops-and-netbooks/lenovo-g-series-laptops/g50-45-notebook-lenovo/downloads/DS100174), and after REFUSING to accept cookies and some "Lenovo Service Bridge", finally managed to obtain something  HERE(http://www.notebookcheck.net/Lenovo-IdeaPad-G50-45-Notebook-Review-Update.125641.0.html).  I find it quite disrespectful to NOT provide customers with EASY support, as well as avoiding to  answer their requests for further help when some simplistic "assistance" that one can find almost anywhere on the web leads to no further solution. I shall not repeat the problems I have faced till now: vide supra. The problem, however,  is NOT just with browsers.I simply cannot see any dialog box content and colour in MANY software programs, such as OPEN OFFICE; for instance:  PRESENTATION colour dialog boxes show BLANK squares instead of squares filled with different colours. This has occured AVER SINCE DAY ONE! Finally, a new bug has appeared: Windows 8.1 keeps popping up some email program to which I am invited to register - I never created a Windows email account, and certainly don't intend to do so.NOR shall I accept some "Lenovo Service Bridge", however "discreet and inoffensive" it might be. I don't know if there are any legal grounds for customers to complain for all these problems. I DO know, however, that I shall NEVER buy a LENOVO device ever again. The pricing and processor might be competitive => yet,  the support that ensues is, as far as I'm concerned, LAMENTABLE. To make a presentation, I have to switch to a Samsung R20 using XP..... What is the meaning of all this? George    

  • JEditorPane HTML load GIF from JAR

    I'm using a jeditorpane to display a html page from a local file system with images in it, will the editor pane load the <img src> tags from a jar file or must the images be on the local file system?

    gifs will have to be on the local drive

  • Display problems in Mail messages with image attachment

    Issue: Seeing intermittent display problems in Mail messages with image attachments
    Annoyance level: minor, but Apple techs need to pass it along
    Details: Regardless of mail client sending to iPhone (Outlook, OWA, Yahoo, Gmail) there are intermittent and what appear to be random occurrances of the pic being half rendered and/or the pic never loading (followed by message saying it can't be retrieved from server). In some instances the picture then appears fully rendered without a problem. Note: Image sizes varied from 14KB to 450KB

    Hi,
    I'm not familiar with C#, but if possible try the following:
    1. Removing all thead and tbody tags from the body of the message.
    2. Changing all inline CSS to embedded CSS.
    I've seen a user said the message stopped showing up after making the changes.
    If the issue persists, please note, since Outlook 2007, Outlook opens the HTML Email and converts it to Microsoft Word format before displaying it to the user. What happens during this process is that many CSS attributes and HTML support is completely removed.
    Some of the most notable absences are background-image, and padding and margin support. Hardly can we do much about this, so the message "If there are problems with how this email is displayed, click here to view it in a web browser" is actually
    a good workaround when we face this problem.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Serious display problem. Please help!

    I'm having a serious display problem all of a sudden. It is not application specific. Various different applications are pixelating, especially wherever I move my cursor and click the mouse. When I grab the entire application with the cursor and move it, the image duplicates into hundreds of images all over my screen. If I shake it around awhile, eventually it goes back to normal. What is going on??!!
    Here's some background info: I'm on a 2009 Mac Pro. I still use the old fashioned tube monitors with mini display port to VGA converters, but I've never had a problem up until now. Just before the problem started happening, I tried to open up some .jpg files in Quicktime Pro 7. 
    I would greatly appreciate any ideas of what the problem could be and how to fix it.

    Welcome to Apple Discussions!
    Might you have moved the Home folder or its contents, or renamed it? If you think that's what happened, this article may help:
    http://docs.info.apple.com/article.html?artnum=107854

  • Fail to use Jeditorpane to display a text with big5 encoding

    Hi All,
    I fail to use Jeditorpane to display a text with big5 encoding correctly.
    It only show machine code.
    I am using jre1.6.0_17. Yet it works well with earlier version of jre like jre 1.6.0_15, and jre 1.6.0_16
    bcpscsin

    bcpscsin wrote:
    ..I can find it in javax.swing
    FFS! It is JEditorPane, not Jeditorpane. Count the freaking upper case letters in both of those!
    Convince yourself by following these two URLs
    [http://java.sun.com/javase/6/docs/api/javax/swing/JEditorPane.html] -> produces a web page.
    [http://java.sun.com/javase/6/docs/api/javax/swing/Jeditorpane.html] -> "Page Not Found"
    My point is - do not type 'something like' the class name - get it right so we can be sure. Programming is a technical business and programmers need to be very accurate. It is even more important to be very accurate when asking for help on an forum. People have very little time to 'hold your hand' about the correct spelling and capitalisation of class names - or anything else for that matter.
    You still have not answered my question about the bug database.

  • HTML display

    I have about few hundred pages of HTML that I want to display in a Slide Show manner. Is there any way to display them in a java application OTHER than showing the HTML in a JLABEL ??
    thanks

    Of course there is. You can use a JEditorPane to display HTML nicely parsed. There is infoin the Java Tutorial on how to use JEditorPanes in the trail about creating a GUI with Swing

  • Html viewing problem

    Can anyone see y this wont work propoerly? it loads the file fine but wont display it, all i get is a gray blank screen. I have two classes but am not sure how the interact! Thankyou for any help.
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    class EditPaneExample extends JFrame implements HyperlinkListener{
    private JEditorPane html;
    final String sPath = System.getProperty("user.dir") + "/";
    public EditPaneExample(){
         setTitle("Jims Applicatijim");
         setSize (500,300);
         setBackground(Color.gray);
         getContentPane().setLayout(new BorderLayout());
         JPanel topPanel = new JPanel();
         topPanel.setLayout(new BorderLayout());
         getContentPane().add(topPanel, BorderLayout.CENTER);
              try{
                   //load the url
                   URL url = new URL("file:///" + sPath + "Main.htm");
                   //create the viewer
                   html = new JEditorPane (url);
                   html.setEditable(true);
                   JScrollPane scrollPane = new JScrollPane();
                   scrollPane.getViewport().add( html, BorderLayout.CENTER);
                   SwingUtilities.invokeLater(new PageLoader(html,event.getURL(),cursor));
                   //html.addHyperlinkListener(this);
              catch(MalformedURLException e){
                   System.out.println("malformed url: " + e);
              catch(IOException e){
                   System.out.println("IOException: " + e);
    public void hyperlinkUpdate(HyperlinkEvent event){
         if (event.getEventType() == HyperlinkEvent.EventType.ACTIVATED){
              //load some cursor
              Cursor cursor = html.getCursor();
              Cursor waitCursor = Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR);
              html.setCursor(waitCursor);
              //handle the hyperlink change
              SwingUtilities.invokeLater(new PageLoader(html,event.getURL(),cursor));
    public static void main ( String args[]){
         EditPaneExample mainFrame = new EditPaneExample();
         mainFrame.setVisible(true);
    import java.io.*;
    import java.lang.*;
    import java.net.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    class PageLoader implements Runnable{
         private JEditorPane html;
         private URL url;
         private Cursor cursor;
         PageLoader(JEditorPane html, URL url, Cursor cursor){
              this.html = html;
              this.url = url;
              this.cursor = cursor;
              System.out.println("h2llo world");
         public void run(){
              if (url == null){
                   html.setCursor(cursor);
                   Container parent = html.getParent();
                   parent.repaint();
              }else{
                   Document doc = html.getDocument();
                   try{
                        html.setPage(url);
                   catch(IOException ioe ){
                        html.setDocument(doc);
                   finally{
                        url = null;
                        SwingUtilities.invokeLater(this);
    }

    Generally, I've only ever seen the need to ensure the CHM is unblocked if it has been downloaded from the web. I could see where it could possibly occur if one moved the CHM from a network drive to a local drive, but I'm skeptical that would be required in that case.
    Cheers... Rick

Maybe you are looking for

  • How to find the screen name in a screen?

    Hello experts I  am  using loop at screen to make my selection screen dynamic please tell me how to find all screen-name of a screen. thanks in advance. Chitta Ranjan Mahato Moderator message: please think about it before asking, you are naming the s

  • How to incorparate managed metadata functionality in a web part

    Hello, I'm writing a web part that manipulates a list's managed metadata field . I want to give to the users all the functionality that SharePoint gives, like realtime searching, the popup window to add a new term and so on. I was thinking of (someho

  • Error in SOAP receiver adapter.

    Hi All, <b>Problem</b> : Receiver soap adapter not working 1)I have used Java mapping which is working fine. 2)After sending message; In RWB the SOAP channel is shown INACTIVE. 3)In SXMB_MONI it is shown successful. 4)My username pwd is right. 4)My w

  • UWL Action name="viewDetail"

    Hi, I have created a custom UWL for displaying HR tasks only. Everything is working fine, but the details view is not showinng by default. Instead, a button  View Detail appears and when clicked the details open in a new window. In my ItemType I have

  • Facetime with Iphone4

    I have an Iphone 4 with Verizon.  When I use facetime, it shows my wifes phone number instead of mine.  Is there a way to change this so my contacts will see my phone number instead of hers?  I went into settings/facetime and it says it is verifying