Display java docs

When a certain button is clicked I would like to show the java docs that I have created, It does display but not very well and it keeps showing the below error in my JEditorPane.
<H2>
Frame Alert</H2>
<P>
This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
<BR>
Link to<A HREF="overview-summary.html">Non-frame version.</A>Below is the code I am using to display my javadocs
import java.awt.Dimension;
import java.io.IOException;
import javax.swing.*;
public class APIDialog {
    private String apiFileName = "file:///F:/NetBeansProjects/TrussOptimizater/dist/javadoc/index.html";
    public APIDialog() {
    public void createGui() {
        JEditorPane ep = null;
        try {
            ep = new JEditorPane(apiFileName);
            ep.setPreferredSize(new Dimension(400, 400));
        } catch (IOException ex) {
            System.out.println("Error reading in javadocs " + ex);
        JDialog dialog = null;
        dialog = new JDialog(dialog, "Test", false);
        dialog.add(ep);
        dialog.setResizable(false);
        dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
        dialog.pack();
        dialog.setVisible(true);
}Any ideas?
Thanks in advance

JEditorPane doesn't support all HTML features. Perhaps you could use Desktop#browse(...) or open(...) instead.
db

Similar Messages

  • Cannot gat java docs to show Mac OSX

    Hi All,
    I get the error message : Cannot find java doc . Check the java doc Library Reference to make sure the documentation is mounted.
    This happens when I control click on a class in the Java editor . This is my first week with studio creator and I have un zipped the ref docs that came with the application.
    Thanks in advance
    Jim Ascroft

    Hi Jim,
    What was the class on which you control clicked in Java editor? I entered the following line of code in the page constructor:
    String myString = new String();
    I then selected String, control clicked and chose Show Javadoc. The javadocs literature for String class was displayed.
    Hope this helps
    Cheers
    Giri

  • Where are the latest java docs for the 9i JDBC drivers

    Hi, I'm trying to locate the java docs for the latest 9i JDBC drivers. I have searched all over the otn and oracle sites and still haven't found them. Does anyone know where they can be found.
    Thanks,
    Simon

    I believe they're right on the download page where you download the drivers.
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com

  • Is it possible to design a GUI for Displaying KM Docs with limited options?

    Hi all,
    The task is to secure the documents published in KM and accessible (read&write)to a limited group,the proposal is to display the docs in a new GUI which lacks options like, "save as , print,copy,paste," and i should also be able to disable certain Keyboard strokes like "printscreen,ctrl+C" etc.
    Request you all to tell me the possiblity of such GUI design else kindly suggest me any other alternative like role based splitting....etc...
    Many thanks in advance
    SantoshKumar Adapa

    Hi Santosh,
    you may fulfill your requirement from these links
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/504e31fc-f46f-2910-98b4-dd94478c22f8]
    see the link "customization – Change the layout, context menus as per your choice!" from the below link
    [https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/u/251732004]
    hope this helps you
    vv

  • Question about the java doc of String.intern() method

    hi all, my native language is not english, and i have a problem when reading the java doc of String.intern() method. the following text is extract from the documentation:
    When the intern method is invoked, if the pool already contains a string equal to this String object as determined by the equals(Object) method, then the string from the pool is returned. Otherwise, this String object is added to the pool and a reference to this String object is returned.
    i just don't know the "a reference to this String object is returned" part, does the "the reference to this String" means the string that the java keyword "this" represents or the string newly add to the string pool?
    eg,
    String s=new String("abc");  //create a string
    s.intern();  //add s to the string pool, and return what? s itself or the string just added to string pool?greate thanks!

    Except for primitives (byte, char, short, int, long, float, double, boolean), every value that you store in a variable, pass as a method parameter, return from a method, etc., is always a reference, never an object.
    String s  = "abc"; // s hold a reference to a String object containing chars "abc"
    foo(s); // we copy the reference in variable s and pass it to the foo() method.
    String foo(String s) {
      return s + "zzz"; // create a new String and return a reference that points to it.
    s.intern(); //add s to the string pool, and return what? s itself or the string just added to string pool?intern returns a reference to the String object that's held in the pool. It's not clear whether the String object is copied, or if it's just a reference to the original String object. It's also not relevant.

  • Problem with Java doc -- any ideas

    This is the command which produces the java docs:
    javadoc  -d docs -author -overview e:\workspace\ckviewer\src\overview.html -doctitle
    "CkEntry / CkViewer Application and APIs" -sourcepath e:\workspace\ckviewer\src
    cprs.as400 cprs.ckentry cprs.ckviewer cprs.pc5250 cprs.roi cprs.util
    neva vistech.imageviewer vistech.jai.render vistech.util The java docs are built correctly except that the package.html files for each source folder are being left out. These are the errors:
    E:\ckviewer\ckviewer.jar: Body tag missing from HTML
    E:\ckviewer\ckviewer.jar: Body tag missing from HTML
    E:\ckviewer\ckviewer.jar: Body tag missing from HTML
    E:\ckviewer\ckviewer.jar: Body tag missing from HTML
    E:\ckviewer\ckviewer.jar: Body tag missing from HTML
    E:\ckviewer\ckviewer.jar: Body tag missing from HTML
    E:\ckviewer\ckviewer.jar: Body tag missing from HTML
    E:\ckviewer\ckviewer.jar: Body tag missing from HTML
    E:\ckviewer\ckviewer.jar: Body tag missing from HTML
    E:\ckviewer\ckviewer.jar: Body tag missing from HTMLOne error message for each of the 10 packages. What I don't understand is that the source within the packages is found. Each package is documented, methods listed, etc. The package.html is not processed.
    Any ideas?
    Thanks
    Bill

    I'm not familiar with the -overview option, but I bet
    it's complaining about your overview.html file.That is a good suggestion but actually the overview file is being processed and shows up in the java docs. The "package.html" files in each of the source folders are being ignored. There are 10 source folders, 10 "package.html" files and 10 errors.
    Any other ideas or suggestions how to call javadoc?
    Thanks
    Bill

  • Displaying java applet using webseal authentication

    Hi all,
    i'm facing a problem about displaying Java applet using Webseal junction for accessing  an application Server based on Websphere.
    I've defined a webseal ACL on accessing a http url that contains link to Java applet: after webseal authentication, the homepage is loaded; in the home page are presented links to java applet, but when I try to load these applets, it seems not working.
    If I load the same applets without Webseal authentication, it seems working.
    Is there any sort of configuration to make for applet regarding Webseal?
    Thanks in advance
    Danilo

    Hi all,
    i'm facing a problem about displaying Java applet using Webseal junction for accessing  an application Server based on Websphere.
    I've defined a webseal ACL on accessing a http url that contains link to Java applet: after webseal authentication, the homepage is loaded; in the home page are presented links to java applet, but when I try to load these applets, it seems not working.
    If I load the same applets without Webseal authentication, it seems working.
    Is there any sort of configuration to make for applet regarding Webseal?
    Thanks in advance
    Danilo

  • How to know whether a method is thread-safe through the java-doc?

    In some book, it says that SAXParserFactory.newSAXParser() is thread-safe,but in the java-doc,it doesn't say that.
    newSAXParser
    public abstract SAXParser newSAXParser()
    throws ParserConfigurationException,
    SAXExceptionCreates a new instance of a SAXParser using the currently configured factory parameters.
    Returns:
    A new instance of a SAXParser.
    Throws:
    ParserConfigurationException - if a parser cannot be created which satisfies the requested configuration.
    SAXException - for SAX errors.
    I want to know, how to know whether a method is thread-safe?

    System.out is a PrintStream object. None of the methods there use the synchronized modifier, but if you look in the source code, you will find out it is thread-safe, because it will use synchronized blocks whenever it writes some text.
    The source code is in the src.jar file which you can extract.
    I didn't find any comments about that PrintStream is thread-safe in the API.

  • Java Docs for the Module Process Classes

    Hi,
    I would like to start creating my own JDBC and file-based modules for interface development. I have found several  SDN contributions which step through the creation of these modules. These are very helpful.
    However, I have not yet found comprehensive documentation describing the classes used in module develpment. i.e.:
    - com.sap.aii.af.mp.module.Module
    - com.sap.aii.af.mp.module.ModuleContext
    - com.sap.aii.af.mp.module.ModuleData
    Does anyone know where to find the Java Docs for these classes? Or is there any other equivalent explanation of how to use these classes, their methods and fields?
    Any help would be greatly appreciated.
    Carl Engel
    CSC Australia

    Hi Carl,
    Another link for you
    http://help.sap.com/saphelp_nw04/helpdata/en/87/3ef4403ae3db12e10000000a155106/frameset.htm
    This says that the java documentation is available in the example adapter/module that is there with XI.
    I vaguely remembering seeing the docu..it was long back though..right now i donot have access to a system...
    Get the rar(java archive) that i talked about in the above link...
    Thanks,
    Renjith

  • Is there Java doc & tutorial for AQ

    hi,
    where can i get java doc for the classes: AQDequeueOption and classes located in apapi13.jar?
    We need to do a POC which uses Streams, AQs and oracle JMS. Right now we are able to do capture and apply process, and now we are left out with AQs and oracle JMS. Can i get any links to tutorials please.......
    ravi
    Edited by: user480471 on 17 Sep, 2008 6:21 PM
    Edited by: user480471 on 17 Sep, 2008 7:16 PM

    http://www.czpet.cn/java/jdbc/oracle/javadoc/oracle/jdbc/aq/package-summary.html
    Hope this Helps.
    Sanju.

  • Newbie to Java Doc

    Hello All,
    I am pretty new to JavaDoc - i got a general hang of it and did some sample java doc generations for some java files to understand more better. Now I have been requested to create custom javadoc tags for an existing project. How do I go about this? It would be appreciated if anyone could help me out with pointers .
    Thanks

    Depending on how complex the produced output of your custom tags should be you can either use Javadoc's -tag option or write a custom Taglet.
    See [http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javadoc.html#tag] and [http://java.sun.com/j2se/1.5.0/docs/guide/javadoc/taglet/overview.html] for related documentation.

  • Java Docs for Internet sales

    I was looking for the ISA Java docs and tried to download the file ISAWAC40SP09P_9-10002109.SAR, but I cannot find it anywhere. SAP site has file ISAWAC40SP08_0-20000529.SAR but the javadocs are missing. Could anyone please let me know the location from where I can download the file ISAWAC40SP09P_10-10002109.SAR or alternatively Java docs for Internet sales

    Hi Pankaj,
    you can try with the first patch of the SP 9 - for example try the file ISAWAC40SP09_0-10002109.SAR. Extract the file using the sapcar program and search for docs.sar file where the documents are.
    I hope this will help you.
    Regards
    Borislav

  • Safari 5.1 will not display Java applet window

    I Just updated to safari 5.1 via software update.  It will not display java applet window on http://www.goldprice.org/live-gold-price.html ,i can view it using firefox. I have done a Safari reset, done a new install of 5.1, ran disc utility, unblocked popo up winows and restarted machine

    1). restart system with original start up disc, holding down "c" key.
    2). using time machine restore from non "lion" operating system. this will kill p.o.s. lion.
    3). once back in non 10.7 OS be careful not to install via software updates, sarafi 5.1
    4). sarafi 5.1 like lion *****.
    5). if you have sarafi 5.1, degrade by typing in this: support.apple.com/kb/dl1939
         a). a very large software update that degraded my sarafi 5.1 back to sarafi 5.05
    6). streetsmart.com and java worked fine for me after this fix.
    7), also you can download firefox, and though slower than sarafi 5.05 it will load java, and stock screens.
    GOOD LUCK. my first microsoft moment with apple in 8 years of chronic love for their products. time to
    sell AAPL shares.

  • How to make Quick java Doc to works for j2ee APIs (CTRL+D)

    Hi
    Thank you for reading my post
    i find that jdeveloper can show a quick java doc for java API , but i do not know why it does not show any document for j2ee stuff.
    can some one tell me the solution ?
    Thanks

    Hi
    Thank you for reply ,
    where i can find source codes for java ee stuff ?
    I want all of APIs to have quick java doc as it is very usefull.
    thanks

  • Looking for JAVA DOC

    Hi all,
    I'm looking for java doc about web dynpro (with Sap Netweaver developer studio).
    I need knowing sometihng about standard methods.
    Any one can help me?
    Thanks
    enzo

    Hi Enzo,
      Simple. Open your NWDS IDE and go to Help --> SAP Web AS documentation --> SAP Web AS Technologies and give the search query as "webdynpro api". You will get the javadoc installed in your system.
    See this thread too
    https://media.sdn.sap.com/javadocs/NW04/SPS15/wd/index.html
    https://media.sdn.sap.com/javadocs/NW04/SPS15/um/index.html
    Regards, Suresh KB

Maybe you are looking for

  • [SOLVED] midnight commander - show size in MB or GB

    mc displays size in KB .. can it show file size in MB or GB ? Last edited by xhc (2012-05-25 22:01:20)

  • Where is the store menu?

    Where is the store menu in iTunes?

  • My 27" i7 iMac is slow

    My 27" iMac is slower than my first issue MacPro I in all ways, starting up, editing in FCPX and entering Mail or Gooogle.    Very frustrating.   I have Motion and Compressor but haven't got them in use.   No other progs are present to be blamed.   E

  • Outgoing Cheques

    Hello Experts, We have gone live this finanacial year (i.e 01/04/2009)..However we have some outgoing cheques whose posting date is that of March but their dute date is that of April..How to handle such transactions in SAP... AND after making tarnsac

  • Nano software bug- Track time...

    I just noticed whilst listening to my Nano the track times (both counting upwards and counting the remaining time) skip from time to time by two seconds. Does anyone elses Nano misbehave like this?!