Show HTML

are there any components to show HTML in a java awt application? can I load that HTML from a local file or from a URL?

The JEditorPane can show HTML or Rich Text :
public JEditorPane()
public JEditorPane(String type,String text)
public JEditorPane(String url)
public JEditorPane(URL initialPage)
Hope that was of help.

Similar Messages

  • Mail 5.2 doesn't show html/attachments in Lion 10.7.3

    I recently upgraded to Lion from Snow Leopard.
    The problem is that Mail version 5.2 (1257) doesn't show html content or attachments. Even Apple's own templates from the application itself doesn't show correctly.
    I've made sure that the "show remote html content in the Preferences is checked.
    I've also tried to rebuild the mailboxes without any changes. Html-content and pictures stil doesn't show. 
    How can I fix this?
    Is there a command for the Terminal that can fix this?
    MBP 15" 2.2 GHz (10.7.2) 4GB RAM

    Step 1
    Mail ▹ Preferences ▹ Viewing ▹ Display remote images in HTML messages: check
    Step 2
    If you still have the issue, back up all data before proceeding further. Whatever happens, you must be able to restore your system to the state it's in now.
    Quit Mail if it’s running.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running Mac OS X 10.7 or later, open LaunchPad. Click Utilities, then Terminal in the page that opens.
    Drag or copy – do not type – the following line into the Terminal window, then press return:
    defaults delete com.apple.mail PreferPlainText
    Quit Terminal. Launch Mail and test.

  • CQ page is not rendering properly. It is not rendering HTML. It is showing HTML source code as is.

    On some of the pages, I am getting this weird behavior wherein page is not rendering properly. It is showing HTML source code as is. Could you please help me out? What could be the issue? And how can we get rid of the same?

    Check your component jsp page. it is possible that it is just plan file without directives <@ or you might have miss to close tag which is creating source as text to render
    Paste your jsp code in case you need further help
    Thanks,
    Ajit

  • Show html in Grid, Forms

    I want to show parts of web pages inside a table.
    How does one show html inside the cells of grids or forms?

    hi Patricio,
    In Content Management,I have created a folder "abc" under the repository "document".This folder will hold the xml files created for the news items.
    The document repository is predefined and has been assigned the Repository Service "tbp".
    i have enabled the time-bound publishing for the folder "abc" in its Detail section.
    For the news reader , I have made the folder "abc" as "read only".
    But the news reader is not able to see the news.
    My xml form for the news Author has fields for entering date and time for both "Valid from" and "Valid To".
    On saving the news item ,i can actually see these values in the property "LifeTime" of the news document that has been created.
    I even set these ValidTo and ValidFrom at the "LifeTime" property also.
    But nothing is working.
    Also could u pls elaborate on ur statement :
    "time-dependent publishing service requires the application property service."
    Nothing is working for  me.
    Pls help.
    Regards
    Saurabh

  • Show HTML in Personal Profile?

    i'd like to show HTML (from a file or from a string) in any kind of component in an app running on a PDA. Probably i will use Personal Profile (and WSDD).
    Are there any components I could use to show HTML. Maybe in AWT?
    I know there are components like that in swing, but I don't know if I can use swing on a PDA??

    hi slomoman,
    i am also interested in the answer. Here is my research:
    You can show HTML in swing components like JEditorPane, But not in AWT.
    Also I could not find a way, how to run swing app with WSDD on PDA.
    good luck
    -fatbrain73

  • Text Catalog showing HTML tags

    We are having an issue after applying Bundle #22 for HCM 8.9 where the calls to the Text Catalog are now showing HTML tags. Has anyone else seen this? Im trying to figure out if its the bundle or something maybe with our customizations that have affected this change. Basically the page where the text from the text catalog displays now shows not only the text, but raw HTML tags as well on the page. Example: BR, B
    Thanks!
    Edited by: CoryU on May 11, 2010 2:00 PM

    We are having an issue after applying Bundle #22 for HCM 8.9 where the calls to the Text Catalog are now showing HTML tags. Has anyone else seen this? Im trying to figure out if its the bundle or something maybe with our customizations that have affected this change. Basically the page where the text from the text catalog displays now shows not only the text, but raw HTML tags as well on the page. Example: BR, B
    Thanks!
    Edited by: CoryU on May 11, 2010 2:00 PM

  • Servlet showing HTML page

    I ma using Tomcat as standalone server.
    have servlet showing HTML page which has frames in it . All frames are linked to some html pages. These pages are stored in
    webapps/project directory and servlet is in
    \Tomcat 4.1\webapps\Project\WEB-INF\classes
    Tomcat can show the servlet with al frames witherror402 means it is unable to take html pages from webapps/project
    what's wrong
    my codes are
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Htmlservlet extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException,IOException {
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    out.println("<HTML>\n"+
    "<HEAD> <TITLE>A frameset document</TITLE></HEAD>\n"+
    "<FRAMESET rows= \"20%,40%,40%\" >" +
    "<FRAME src=\"contents_of_frame3.html\" frameborder=\"0\" scrolling =\"no\">"+
      "<FRAMESET cols=\"*,200\">"+
          "<FRAME src=\"contents_of_frame1.html\" scrolling=\"no\">"+
          "<FRAME src=\"contents_of_frame2.gif\" >"+
    "</FRAMESET>"+
      "<FRAME src=\"contents_of_frame4.html\" frameborder=\"0\"> </FRAMESET>"+
    "</HTML>");
    }

    Hi,
    Please please try this
    <FRAME src=\"/contents_of_frame1.html\"
    thanks,
    nvseenu

  • DMP does not show html link

    Hi,
    We are deploying a DMM system with DIgital Signs, version 5.3.0. We are using DMP 4310G with the beta version of firmware 5.4 as this is the only one with a browser.
    We need to show Cisco unified Intelligence Center ( CUIC ) reports of IPCCE.
    When I first tried to use the GoTo URL method with play now, it worked fine. with the same link, I created a Presentation using the designer and we only saw a black box on the screen. I can see that the startup URL changes ( if I do play now with go to url method, then Startup URL chnages to what I push and it clears the contents of the Flash Variables Data_Url, if I create a presentation and schedule it to play at certion intervals then it shangec the Flash Variables URL and the Startup URL stays as default ).
    Now the problem with the Play Now + Go To URL is that you cannot schedule and cannot erally arrange the screen as you want. But Still, this might have been a solution at least until we figure out why it is not working with Presentation + Schedule method.
    So I have created a new report on CUIC by increasing the Font size to 30 ( by default it is 10 ). It shows fine, I again created a GoTo URL also cerated a presentation with the same link. The preview on the designer looks fine.
    So I pushed the GoTo URL using play now to one DMP and scheduled the presentation for the other DMP. The one with presentation shows a big black screen and the other one shows a big white screen.
    So if anybody have any idea what might be going wrong, or what I may be doing wrong taht wuld be great.
    By the way I am uisng the permalinks of the Dashboards from CUIC. I tried with both http and https.
    Thanks

    Hello,
    DMS 5.4 is officially out, so you could test this with a full 5.4 system. DMP running 5.4 is not officially supported with DMM running 5.3. See the compatibility matrix at:
    http://www.cisco.com/en/US/docs/video/digital_media_systems/dmscompat3.html#wp1207463
    Please notice that the 5.4 release do not support Show and Share and the scheduling system has been changed with a new Channel feature.
    Regards,
    Marco

  • Show html in af:richTextEditor

    Hi all,
    I use Jdev 11g.
    I have some html formatted emails saved in the database.
    To show them in an ADF faces application I use a af:richTextEditor.
    That worked for a while, but now I have some html code in a mail and if that mail is openend the page is not rendering completely.
    this is the html code in the mail that is causing the problem:
    <DIV class=Section1><SPAN lang=DE style="COLOR: #999999; mso-ansi-language: DE">
    <P class=MsoNormal style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"
    align=left></SPAN></P></DIV>How can i fix this problem so that the full page will show?

    Hi,
    when I type this sources into the richt text editor (source panel) then switching back to the WYSIWYG view, it seems to work.
    Frank

  • Show HTML Message Before Send..

    Hi All,
    Any help would be greatly appreciated as I am losing sleep, my hair, my
    sanity and any respect I had for groupwise... ; )
    Ok, heres the deal... I am trying to send a HTML formatted EMail
    programmatically using groupwise that the user will be able to edit
    before it is sent...
    I have tried several methods all without success...
    1) I create the Email using Groupware Object Model, attach a file called
    Text.htm. The file is correctly used as the HTML body but then if I
    attempt to show the mail to the user with Groupwise tokens all of the
    address fields (To, CC, BC) are reset???!!!
    2) If I create the whole mail using Tokens there is no way to Set the
    HTML body. If I attach the Text.Htm file then it is not treated as the
    HTML body, it is just shown as a normal attachment!!!
    3) If I use MAPI the TEXT.htm file is not treated as the HTML body and
    there is no way to set the HTML text via the MAPI Api.
    I just want to create a HTML formatted EMail from code... So far I have
    had to use 3 different API's and I am still no further forward.
    Thanks...

    Hi David,
    Thanks for your respone, don't worry on the spelling I am exactly the
    same. Many times I have sent a post only to read it back wincing...
    I notice that the 2 posts have re-appeared, bizarre.
    With regard to your suggestion, can you elaborate?
    In case 1, where I can get the HTML attached to the mail whenever I use
    Groupwise tokens to show the mail for editing it resets all of the address
    fields. Even if I manually fill these in it looses the HTML attachment. If
    I re-attach it using tokens it is treated just as a normal attachment (IE
    is not used as the HTML body). So basically I am stuck at this point. Are
    you suggesting that I write or use another HTML/EMail editor external to
    Groupwise and then just use Groupwise to send the Email?
    I must say that I would have thought that this was a pretty common
    requirement. Has no one at Novell on anywhere else done this before using
    Groupwise?
    Thanks,
    Dhugal.
    David Mair wrote:
    > BTW, spelling is often optional in my posts (I write them very fast and
    > jump from place to place editing them as I write them). Sorry about:
    > "The lack of probably indocates". It should, of course, read: "The lack
    > of a response probably indicates". I actually had to cancel and re-post
    > this one due to two typos. Believe me, English is my first language.
    > David Mair wrote:
    > > Yes, I noticed my message disappeared, let me quote from it:
    > >
    > > "These forums are not staffed by Novell, they are made available by
    > > Novell for peer support (as is the case with other software company NNTP
    > > servers). Several Novell employees "hang out" on the forums (I'm one of
    > > them) but those of us that do are volunteers. The lack of probably
    > > indocates that no-one knows the answer to your question or that someone
    > > with an answer has not seen it yet."
    > >
    > > The comment on how I believe GroupWise handles HTML wasn't intended as
    > > something you needed to know. It was intended to suggest there might be
    > > another way to solve your problem. The case you described that came
    > > closest to functioning, 1) in your OP might be re-workable such that it
    > > does work. My point was that if GroupWise uses external COM objects for
    > > its HTML handling then you might not need to use GroupWise to show the
    > > mail for editing. You could compose it externally from GroupWise and use
    > > the functional parts of your case 1 after the message is composed.
    > >
    > > dhugalleverett wrote:
    > >
    > >> Hi All,
    > >>
    > >> I don't know what is going on but 2 posts have disappeared from this
    > >> thread....
    > >>
    > >> Anyway, to the developer who originally replied:
    > >>
    > >> I am a little confused by your explanation. I do not need to know the
    > >> internals of how Novell handles HTML. I simply want to create a HTML
    > >> formatted EMail programmatically, and open it so that the user can
    > >> edit it
    > >> before it is sent.
    > >>
    > >> In Outlook it is a simple as setting a simple property:
    > >>
    > >> MailItem.HTMLBody = sHTMLString
    > >>
    > >> I have searched the Web, the NDK documentation and the forums and I have
    > >> not been able to find any information on how to do this, let alone
    > >> whether
    > >> it is possible or not.
    > >>
    > >> Could someone at Novell simply confirm whether or not this is possible
    > >> please?
    > >>
    > >> I am in the situation where a client using Novell Groupwise has asked me
    > >> (or my company to be more precise) to develop some software that
    > >> integrates with Novell and I am unable to tell them whether or not
    > >> this is
    > >> possible because none of the documentation covers it and none of the
    > >> Novell developers on this forum have been able to tell me.
    > >>
    > >> Personally I do not see it as a major issue if Groupwise does not support
    > >> this, although I would like to be able meet the clients requirements
    > >> exactly if possible.
    > >>
    > >> Thanks,
    > >>
    > >> Dhugal.
    > >>
    > >> dhugalleverett wrote:
    > >>
    > >>
    > >>> Hi all,
    > >>
    > >>
    > >>
    > >>> I am assuming from the lack of response that there is no way to achieve
    > >>> this?
    > >>
    > >>
    > >>
    > >>> Can someone from Novell confirm whether or not this is the case please?
    > >>> That was I can go back to my client and inform them what the
    > >>> situation is.
    > >>
    > >>
    > >>
    > >>> Thanks,
    > >>
    > >>
    > >>
    > >>> Dhugal.
    > >>
    > >>
    > >>
    > >>> [email protected] wrote:
    > >>
    > >>
    > >>
    > >>>> Hi All,
    > >>
    > >>
    > >>
    > >>>> Any help would be greatly appreciated as I am losing sleep, my hair,
    > >>>> my sanity and any respect I had for groupwise... ; )
    > >>
    > >>
    > >>
    > >>>> Ok, heres the deal... I am trying to send a HTML formatted EMail
    > >>>> programmatically using groupwise that the user will be able to edit
    > >>>> before it is sent...
    > >>
    > >>
    > >>
    > >>>> I have tried several methods all without success...
    > >>
    > >>
    > >>
    > >>>> 1) I create the Email using Groupware Object Model, attach a file
    > >>>> called Text.htm. The file is correctly used as the HTML body but
    > >>>> then if I attempt to show the mail to the user with Groupwise tokens
    > >>>> all of the address fields (To, CC, BC) are reset???!!!
    > >>
    > >>
    > >>
    > >>>> 2) If I create the whole mail using Tokens there is no way to Set
    > >>>> the HTML body. If I attach the Text.Htm file then it is not treated
    > >>>> as the HTML body, it is just shown as a normal attachment!!!
    > >>
    > >>
    > >>
    > >>>> 3) If I use MAPI the TEXT.htm file is not treated as the HTML body
    > >>>> and there is no way to set the HTML text via the MAPI Api.
    > >>
    > >>
    > >>
    > >>>> I just want to create a HTML formatted EMail from code... So far I
    > >>>> have had to use 3 different API's and I am still no further forward.
    > >>
    > >>
    > >>
    > >>>> Thanks...
    > >>
    > >>
    > >>
    > >>
    > >
    > >

  • JEditorPane problem with showing html file

    Hey,
    I have a JEditorPane in which I would like to show a HTML file that is stored in the same directory (local, not from the web).
           String url = "index.html";
            try
                JEditorPane htmlPane = new JEditorPane(url);
                htmlPane.setEditable(false);
                frame.add(new JScrollPane(htmlPane));
            catch(IOException ioe)
                System.err.println("Error displaying " + url);
            } It should also work once the whole program is "packaged" into a .jar file.
    With the code above I cant get the index.html file to be displayed in the htmlPane.
    Any suggestions?
    thanks.

    The JEditorPane has a method called setPage that loads a URL into the pane, you can always transform internal jar locations to URLs using e.g. CurrentObject.class.getResource("/internal/jar/location/text.html")

  • Showing html content in xml

    Hi!
    I really cannot find any answers to my question.
    I'm using the spry framework for outputting a table, from a source xml. In some records the xml holds HTML elements like links and line breaks. I want these element to show up on the table created by the spry.
    If I simply want to output the table leaving the HTML tags in the xml, it simply doesn't load.
    If I use CDATA, for storing HTML content, js changes the < and > to &lg; and &gt; so links doesn't work.
    Do you have any suggestions about this? What should I do?
    Thank you in advance!

    You probably did not set the correct columntype for your data: setColumnType

  • Showing HTML content in jspx page

    Hi,
    We have stored text/html email messages in database and we want to display this on our page.
    I tried with af:richTextEditor its not showing actual space & font. Few extra line breaks are added.
    I tried af:outputText with escape=false it looks perfect. But all the menu items, command links, tab header label are started showing underlines and the UI looks odd. When I check the documentation it says
    "In addition, nearly all attributes are ignored when "escape" is set to false"
    I believe this is the reason the UI is showing odd.
    All I need is just to show a html content inside a panelGroupLayout. Any suggestions?
    Thiru

    Hi,
    here's what I think works best:
    1. add an ADF Faces inlineFrame component to the page
    2. Have the inlineFrame source property pointing to a servlet that reads and streams the HTML from the database as an HTML document
    Frank

  • Date picker field shows html code?

    I have a HTMLDB 2.0 app that I have ported to APEX 3.1. I have one field that is a date picker field which has a before regions computation on it that calculates an expiration date. For some reason, the text area shows the HTML code of the page, not the calculated date. No idea why. Anyone? TIA

    Can you show us on apex.oracle.com?
    Scott

  • Show HTML page on initial SAP Screen

    Hi all,
    I know how to change the image on the initial screen by maintain table SSM_CUST and upload *.gif with tcode SMW0.
    In SMW0 there is another part about HTML templates. I have uploaded an HTML page but I was not able to see this on the initial screen.
    Any way to do this or we can only show images on the initial screen ?
    Thanks
    Utku UTKAN

    Hi Mike,
    I don't mean the login screen, I mean the initial screen which comes after we logon.
    Thanks

Maybe you are looking for

  • Bit locker Recovery

    Hi,   Can anyone help me on this, I am using Win 8.1 Ent edition and Hard-disk has been encrypted from control panel, now I changed my Laptop motherboard and prompting me the recovery key on booting :(, when I log into my Microsoft account error will

  • Error message: The wireless radio is not functioning.

    I spent 2 hrs on HP support chat last night, trying to get an answer to whether this is a fixable problem, and finally was disconnected from chat. The printer is a Photosmart 7460 and it recognizes the network and I could get to its IP addres online.

  • Problems with iweb and safari - 'buttons' not working in safari/firefox...

    Hello. Help! I've been using iweb for a while with no probs - but on trying to launch my most recent site I'm finding the navigation buttons (graphic images not text buttons) work fine in iweb on my mac, plus fine on a PC but only partially in safari

  • 2009 iMac 24" GeForce 120 problems after 10.6.7 upgrade

    Hi all, I've read a lot of threads about iMac graphic problems on these boards, but I haven't really found anything here that sounds like my problem. Several weeks ago, I upgraded my early 2009 iMac to 10.6.7. Up until this point, I have had zero pro

  • A woman in her 50's using her first macbook air :)

    hi i do not know if i am in the right area to ask this but i purchased my very first computer in my whole life it is the macbook air 13" the newest one. my son helped me installed the apple care cd onto my computer and ran the test. everything passed