Is it possible to have an html link in a pure java application ???

can you put click me in a java component, say, a dialog?
i tried and the link appeared blue and underlined but it didn't respond to clicks (nothing happened when clicked).
thanks.

You could use a JEditorPane. It supports HTML 3.2. There you have to register a HyperlinkListener. I think you have to set the editable property to false, too.
-Puce

Similar Messages

  • How connect an HTML page to a running Java Application?

    Hi,
    Exists a way to connect an HTML page to a running Java Application?
    the idea is, If we use SWT, the Browser widget have an instance of IE/Firefox attached to it, and we load local HTML pages inside, then i wish to have a way to bridge Java Application from HTML page. Then with that we can do follow JScript:
    var javaApp = document.getJavaApplication(); //here is the trick
    //below is like we do today with applets
    var person = container.create("myapp.Person");
    person.setName("Test");
    container.save(person);its great if we can Have an attribute for object tag or anything to conect HTML page to Java Application.

    I think that the better idea is to create a new mime type for that, maybe "application/x-java-connect-to-local-jvm", and use embed tag, to connect via plugin to a running JavaApp
    example:
    <embed type="application/x-java-connect-to-local-jvm" width="20" height="20" mainClass="mypackage.AppName"><br>
    <script>
    var javaApp = document.embeds[0];
    function createPerson()
      var person = javaApp.getNew("mypackage.Person");
      person.setName("test");
      javaApp.save(person);
    }The width and height, isnt necessary, but the view can be used to show red if connection failed and green for sucessfull connections, or maybe embed tag can have src to images for sucessfull and unsucessfull states.
    That's the idea, there is a way to extend Java Plugin to achieve that?
    any tip or idea or to achieve that, are welcome.
    Thanks

  • Possible to have a URL link to an Opportunity list?

    Is it possible to have a URL (that I can send to people) to link directly to an Opportuniy List in Siebel? I assume this is much the same method as linking a record or a report. I right click on the headings pane of the list and go to properties for the URL, open a new browser, paste it in, and I'm taken to the log in screen. From here, when I log in I want to be taken directly to the list, but it just loads my homepage. Now, if I post that same link into a browser where I am ALREADY logged in to Siebel, the link works fine, takes me right to the list, and does what I want. I have made this work with specific record links that I throw into an email, but I can't get it to work with lists. Is this possible?
    Edited by: user10885599 on Aug 6, 2009 7:18 AM

    Using the URL from the address bar doesn't work if you aren't in a browser that is already logged in to Siebel. If you are in the same browser and already logged in to Siebel, it will load the list. But if you are in a fresh browser where it hasn't regeistered you as logged in to Siebel, it will take you to the log in page and then direct you to your home page, not the list. I am wanting people to receive this link in an email and click it, be taken to the log in screen, then to the list after they sign on (whether logged in to Siebel or not, just like how a specific record link URL works). Thanks for the response, though!
    Edited by: user10885599 on Aug 6, 2009 7:20 AM

  • Is it possible to create an HTML link?

    I made a post earlier asking for a method to edit an existing PDF document and create a UNC link.  The post had several views but nobody responded saying if it was or was not possible to do such a thing using Acrobat SDK.
    I thought perhaps if I simplified the requirement a little by changing the link type to an HTML link that might get a better response.
    Example of what I need to do:
    We the people
    needs to be changed to:
    I am people
    This is certainly doable when using Acrobat 9.  It puts a visible rectangle around the string.  Which would work as well, if there is a way to do it using the SDK.
    Thanks in advance.

    Dear Cheema,
    Hope this helps u...its a C++ code to retrieve the Annot..
    AVDoc avDoc = AVAppGetActiveDoc();
    PDDoc pdd = AVDocGetPDDoc (avDoc);
    Int32 nNumPages;
    Int32 nError;
    register Int32 i; 
    if (linkProc == NULL) {ASRaise(GenError(genErrBadParm));
    nError = 0;
    DURING
    nNumPages = PDDocGetNumPages(pdd);
    if (nStartPage < 0 || nEndPage > nNumPages)E_RTRN_VOID;
    /* Loop over each requested page. */
    for (i = nStartPage; i <= nEndPage; i++){PDPage pdp = PDDocAcquirePage(pdd, i);
    Int32 nNumAnnots;
    register Int32 j; 
    char cURI[MAX_URI_SIZE];PDAction pdac;
    /* Loop over all annotations on the page. */
    nNumAnnots = PDPageGetNumAnnots(pdp);
    for (j = 0; j < nNumAnnots; j++){ 
    /* Get the annotation and check to see if it's a link. */
    PDAnnot pdan;
    pdan = PDPageGetAnnot(pdp, j);
    if (!PDAnnotIsValid(pdan) || PDAnnotGetSubtype(pdan)!= ASAtomFromString(
    "Link")) 
    continue;
    Regard's
    Amith Sai

  • Is it possible to Drag and Drop from KDE into a Java application?

    Can someone please let me know if it is possible to drag a file, or any other object from KDE (linux) to a Java application? If so, could you give any code examples that could help supplement an explaination?

    http://java.sun.com/products/jfc/tsc/articles/dragndrop/index.html
    http://java.sun.com/j2se/1.4.2/docs/guide/dragndrop/index.html

  • Is it possible to have an asset link to the previous page?

    Hello!
    Okay so I my website have over 200 pages and I wanted to make a single button that functions as a web browsers back button.
    Is this possible or am I going to have to put an asset on each individual page telling it to go back to the specific page that it was just on?

    Hi,
    There is html code for back to the previous page.
    Google it to be sure to get the one that works for you.

  • Is it possible to have a user interface in a stand alone application without having LV

    Hi!
    I want to know if it's possible to build a stand-alone application in order to avoid purchasing LV and at the same time having a user interface to display data?
    I really want to know what are the advantages of the stand-alone applications and what are their limits of use?
    Thank u

    If you have the application builder (included in LabVIEW professional and above) you can make a LabVIEW application that can be distributed and run on machines that don't have LabVIEW installed. If you only have LabVIEW full, you can purchase it seperately.
    The target machine requires the LabVIEW runtime, which is freely downloadable from NI, or can be included with the installer of your application.
    Please have a look at the datasheet: http://www.ni.com/pdf/products/us/4msw55.pdf
    If still have more specific questions not mentioned in the above link, please ask.  
    Message Edited by altenbach on 10-01-2007 01:01 AM
    LabVIEW Champion . Do more with less code and in less time .

  • JavaDoc HTML link of  classes in Java class diagram not correct

    Hi,
    I created a Java class diagram in a certain package (e.g. com.mycompany.p1) and placed some classes on this diagram from the same package and from other packages. Then I created JavaDocs. When I click on the classes in the created JavaDoc diagram, only the links of the classes in the same package as the diagram (com.mycompany.p1) wor correctly. When I click on a class outside this package I get an error message that the file is not found. It looks for the class documentation in the package of the diagram and this is obviousely wrong!
    Is there a property I missed to set or is it a bug?
    Thanks for help
    Thomas

    Hi Thomas,
    I don't use the diagrammers much, so I cannot comment on this directly; however, based on your description, it does sound like a defect. Do you have access to Oracle Support to file an SR?
    John

  • Have a problem using flex ui with Java application

    Hi, I have a built a Flex UI for a java project. The UI has
    some forms which use a servlet for POST and data populated from
    servlet. I have used HTTP service to make the calls. I have built
    my application i.e UI in Flex Builder and when I run my application
    from flex builder everything works fine i.e data populated
    correctly..
    But when I open the projects folder and run the html file
    generated the Http Service does not happen. Can anybody tell me why
    is this so?? . Moreover I want use this UI for my already existing
    java project. So what all files (i,e. html, mxml, swf) will be
    required to be copied to my java project for the UI to work ..
    .Thanks in advance...

    well, that's because Flex Builder is tell Flash player to
    trust stuff in the bin folder:
    http://viconflex.blogspot.com/2008/08/why-no-sandbox-violation-running-from.html
    ATTA

  • Convert Pages document to PDF and maintain html links accurately

    Hi - I am trying to convert a Pages document to pdf, simple right? go to Print / PDF / Save as pdf...
    I have also tried Print / Save as Postscript and Print / Open in PDF
    with the same results, which are...
    Pages dutifully converts to pdf, but on some pages where I have multiple links the formatting position of the links is all over the place on the page, some links are conflated on the page so it says one thing 'www.bbc.co.uk' for example but when you click that link it links to 'www.cnn.com' instead because CNN is the link a little further on in the line, or in the line of text above, or whole sections of the page (half of one page) become a link!
    I have checked the formatting positions and link lables over and over again in Pages and they are spot on, no confusion, no leaking in positional accuracy, it is only when converting to pdf or postscript
    I have many html links in my document so it is vital that the exact position of the formatted links in Pages is converted accurately.
    Any advice on
    a) using Pages Print command accurately? or
    b) third party apps (really dont want to go there)
    that might convert more accurately?
    many thanks

    Thank you Roger!
    I went back to 09 as suggested which identified the section in question as having a whole load of text that had become associated with one of the links - goodness knows how or why - but this wasn't apparent in the Pages 5 doc, nothing explicit signified that there was an issue with the formatting until converting to pdf
    It took me a while to strip it all out without losing all the other formatting! but done now and converting beautifully to pdf with complete accuracy in terms of formatting positions of linked text...
    I then reimported back into Pages 5 to see if I could make sense of it in the same way, long story short no chance, there is still background formatting in there, despite going through it line by line, character by character and removing all traces of any link through the 'right click' 'remove link' function - as soon as you convert to pdf lots of text becomes active again even though it is absolutely not visible in the Pages 5 doc
    Clearly, despite a strong desire to continue in 5 from a being uptodate perspective, I shall stick to the 09 world and wait for Apple to sort things out.
    If anyone from Apple is reading this, it has cost me approx 2 days of messing about to get to a point where I give up on 5 and return to 09. Please resolve as soon as possible!

  • Open a JspDynPage from a html link

    I would like to link a jps to the JspDynPage. I think that it would be able to do it through the "pcd". For example:
    - I have the SAP customer login screen (original) and i want to add a "link" (Forgotten PIN) to link with the JspDynPage (Java controller).
    Is it possible to do it? Does anyone know how? Do i go in right way?
    Thanks in advance.

    The code was lightsout.class, not #.class...
    I just want an HTML link to open a JAVA JFrame. Would a button work instead of an HTML link? Here's the beginning/initialization of my JFrame:
    public lightsout() {
              frame = new JFrame("LightsOut");
              frame.setSize(new Dimension(700, 700));
              frame.setTitle("Lights Out!");
              frame.setLocation(50, 50);
              frame.setResizable(false);
              japplet.setFocusable(false);
              frame.setAlwaysOnTop(true);
              Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
              int height = screenSize.height;
              int width = screenSize.width;
              frame.setLocationRelativeTo(null);
              frame.setLayout(new BorderLayout());
              centerPanel = new JPanel(new GridLayout(5, 5));

  • Html:link action html:link on results page null

    I am sure that this is something simple and small but I have been banging my head against this problem for a while now.
    I am using the <html:link> tag on my index.jsp page activates an action, retrieves a result and forwards to the homePage.jsp. The home page has a tiles layout and the results are actually in homePage_lowerLeftLevel.jsp within the homePage.jsp. Below the results I have an <html:link> tag which is identical to the tag in the index.jsp but now instead of seeing the link there is [ServletException in:/pages/homePage_leftLowerLevel.jsp] null' and if I go back to the index.jsp I get the following error�
    java.lang.NullPointerException
         at org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:313)
         at index.jspService(index.jsp:29)
         [SRC:/index.jsp]
         at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:57)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:356)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:498)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:402)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:673)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:340)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.2.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    If this <html:link> tag is not on the results page the results display perfectly. Here is my code:
    ********index.jsp**************
    <%@ page language="java" %>
    <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
    <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
    <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
    <h2 class="lowerColumnHeader">Statistics</h2>
    <table class="statisticsTable">
    <tr>
    <td>
    ICF Published Parcels:
    </td>
    <td class="results">
    <bean:write name="homePageForm" property="result" />
    </td>
    </tr>
    </table>
    <html:link page="/homePage.do?areaId=bcId">Click Me </html:link>
    *********homePage_lowerLeftLevel.jsp*************
    <%@ page language="java" %>
    <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
    <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
    <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
    <h2 class="lowerColumnHeader">Statistics</h2>
    <table class="statisticsTable">
    <tr>
    <td>
    ICF Published Parcels:
    </td>
    <td class="results">
    <bean:write name="homePageForm" property="result" />
    </td>
    </tr>
    </table>
    <html:link page="/homePage.do?areaId=bcId">Click Me </html:link>
    *****************struts_config.xml**********************
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    under the License.
    -->
    <!DOCTYPE struts-config PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
    "http://struts.apache.org/dtds/struts-config_1_3.dtd">
    <struts-config>
    <form-beans>
    <form-bean name="homePageForm"
    type="ca.bc.gov.srm.app.pip.HomePageForm" />
    </form-beans>
    <global-exceptions>
    <!-- sample exception handler
    <exception
    key="expired.password"
    type="app.ExpiredPasswordException"
    path="/changePassword.jsp"/>
    end sample -->
    </global-exceptions>
    <global-forwards>
    <forward
    name="homepage"
    path="/homePage.do"/>
    </global-forwards>
    <action
    path="/homePage"
    name="homePageForm"
    type="ca.bc.gov.srm.app.pip.action.HomePageAction"
    scope="request"
    validate="false"
    input="/pages/homePage.jsp"/>
    </action-mappings>
    <message-resources parameter="MessageResources" />
    <plug-in className="org.apache.struts.tiles.TilesPlugin" >
    <set-property property="definitions-config"
    value="/WEB-INF/tiles-defs.xml" />
    <set-property property="moduleAware" value="true" />
    </plug-in>
    <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
    <set-property
    property="pathnames"
    value="/org/apache/struts/validator/validator-rules.xml,
    /WEB-INF/validation.xml"/>
    </plug-in>
    </struts-config>
    Thank you very much for your help

    It should be used something like this!!!
    <html:link action="myStrutsAction" paramId="user" paramName="userName"/>if the userName attribute had the value "Bob" that would produce:
    http://struts.apache.org/struts-doc-1.2.x/userGuide/struts-html.html#link

  • Adding a html link to JLabel

    Hi...
    So, what I want is a JLabel or maybe a JOptionPane to have a HTML link on it to a website and if the user clicks on said link I would like their default browser to fire up and hit that page. Thus in the below code I have a JLabel with "Java" showing and underlined like it is a link...now, how do I get this event processed?
    JLabel linkLabel =
    new JLabel("<html><a href="+"http://www.java.sun.com"+">Java</html>");
    TIA
    tfm

    search is your friend:
    http://search.java.sun.com/search/java/index.jsp?col=javaforums&qp=%2Bforum%3A31&qt=hyperlink+label

  • Adding HTML link to buy subscription from article

    Hi,
    Is it possible to create a HTML link from a button or some text in an article which invokes the buy subscription popup box?
    On the main page for the viewer that shows the individual issues you can click to buy one issue or click a banner across the top to buy a subscription.
    Once this is clicked a popup box is displayed which shows the different pricing levels.
    Is there anyway to start this subscription purchasing from within an article?
    Thanks

    Hi Bob,
    I would like to link the subscription options out of an article. I don't think it will work with the goto links or am I wrong? I've seen this in the digital Esquire (see image attached).
    Best,
    Jens

  • Possible 2 have "page turner" or "page flipper" 'applications within IWeb ?

    *Possible 2 have "page turner" or "page flipper" 'applications within IWeb ?*
    Link: [http://www.panik.com/index.php?do=entersite]
    http://www.panik.com/index.php?do=entersite
    Hopefully I have inserted a link to the type of application I mean above.
    Otherwise please copy and paste into your browser
    PLEASE Please if any of you know or can make suggestions - I would really appreciate some info/ input.
    I am a fine artist and would love to have this feature in my IWeb website.
    thanks to any contributors
    best wishes
    Aine
    in chilly Edinburgh, UK

    The page size there appears quite small and, after the initial novelty of turning the pages, it could become tiresome leafing through many images.
    Why not use the new .Mac Web Gallery and link to it from your iWeb page?
    http://gallery.mac.com/emily_parker#100388&bgcolor=black&view=mosaic&sel=0
    ...On that page at lower left the viewer can choose from four different display modes and the Slideshow mode displays in +full screen+. Here are details about .Mac Web Gallery:
    http://www.apple.com/dotmac/webgallery.html

Maybe you are looking for

  • Password manager not work on new Chrome

    Hi! Chrome version 29.0.1547.57m. Password Manager not working...

  • Join v$sql and v$session

    Hi All, I want following columns from both v$sql(last_active_time) and v$session(username,status ,program) Cud anyone guide me how to what is the sql that joins both views so that i get above column info ? Thanks a lot

  • Getting darkened/ washed out colors when exporting png from illustrator

    Hey everyone I'm trying to figure out a remedy for this, I am getting darkened less saturated colors when exporting a logo png from illustrator, jpeg's looke fine, even when copying this logo into indesign and exporting the colors look fine there as

  • Why does blue dot disappear when opening mail

    When I click on the mail icon to go to my "in" box, the "in" box opens properly, but them immediately the blue dots next to new, unread emails disappear and unless I noticed, I can't visually see which emails are unread.  How do I fix this so the blu

  • Why is my Internet Explorer working while my Firefox will not?

    My internet access is working, however Firefox will not work. Internet explorer is working, but Firefox said it is 'unable to connect' == This happened == Not sure how often == Today == == User Agent == Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6