HTML href in an application?

Within an application can I add links,
eg to a JOptionPane I want to add a
mail link
is this possible
also what about a link to an internet site eg
www.sun.com
thanks

I have tried it out, it works also fine without using
a JLabel. But I think, you cannot use anchors.Your right you wouldn't need to add a JLabel because JOptionPane already has one that it adds your string to. So you only need to pass in a string. I havn't tried this with html before but I assume it would be something like this.
JOptionPane.showMessageDialog(parentComp, "<html><A href=\"mailto:[email protected]\">mail link</A></html>");

Similar Messages

  • Imbed Server Name within HTML href

    My application is generating an email as a alert to an administrator to take some action.  I do not want to hard code the server name into the HTML href statement as depicted below
       -- Include link to HIR Admin page
       l_body_html :=
             l_body_html
          || '<a href="http://edwprd.dhhs.state.nh.us:7777/pls/oitp/f?p=222:469">Admin Items</a>';
    I have been able to stuff the current url into a hidden item via an on load dynamic action using this javascript
    <script type="text/JavaScript">
    $s('P481_URL', window.location.href);
    </script>
    I then transform that hidden item in a pl/sql anonymous block process using this code and set local variable
    SELECT
    SUBSTR ( :p481_url,
    1,
    INSTR ( :p481_url,
    1,
    3))
    || '469'
      INTO v_sql
      FROM DUAL;
    Which yields this string into the variable v_url
    http://vmdhhsdworad:7777/pls/oitd/f?p=103:469
    Is it possible to include that local variable into the href attribute?
    Jeff

    APEX_UTIL.HOST_URL
    Example
    The following example demonstrates how to use the HOST_URL function to return the URL, including the script name, to the current Application Express instance.
    declare
        l_host_url      varchar2(4000);
        l_url           varchar2(4000);
        l_application   varchar2(30) := 'f?p=100:1';
        l_email_body    varchar2(32000);
    begin
        l_host_url := apex_util.host_url('SCRIPT');
        l_url := l_host_url||l_application;
        l_email_body := 'The URL to the application is: '||l_url;
    end;

  • How to create a popup window to load HTML page in AIR application without using any mx or spark?

    How to create a popup window to load HTML page in AIR application without using any mx or spark components?
    I need to load the HTML page in popup in AIR application without using any of the <mx> or <spark> components. I need to open in the application itself not in the browser.(If we use navigateToURL() it will open in th browser)

    Can we achieve this? can somebody help me on this scenario..

  • Displaying HTML page in an application

    Hello all,
    I want to display an html page in my application. I looked into HotJova HTML Component but Sun doesnt offer this component anymore. Does anyone have any idea of how can I complete this task.
    Any help will be appreciated.
    Thank you

    JTextPane

  • To show a html page from java application

    hi everyone,
    I am trying to show a html page through java application. What i tried is Runtime.getRuntime().exec("start url"); this shows it opens default browser. It works fine for win Nt but does not work on win98 or linux.
    Is there any other way of achieving the same?
    can anyone help me in this regard. I am in urgent need of it. any reply will appreciate.

    I hope this works.
    String urlName = "http://forum.java.sun.com";
    String browser = "iexplore "; //EXE file name --> for iexplore.exe
    Runtime.getRuntime().exec(browser+urlName);

  • Php mysql html on your server application

    hello
    I can work with example websites
    php mysql html on your server application
    ouy have to install, php mysql apache and phpmyadmin on my bakbookpro
    if your server does not do what I Querro please tell me
    and I instalho manually
    if it does I'll use it qurro
    however pressisamos people who can use that build here
    I do not have a whole life to stay behind the computer
    and if your server can not work rebuild from scratch
    do the work with php and html
    because my client wants the **** form in php

    you mean its got <TEXT LEADING FORMATS blah blah >
    yea, turn html on on the text box that ur sending to php.
    or off, well whatever it is now, do the oposite, lol.

  • Displaying HTML in a java application

    Is there any other way to display HTML in a java application besides JEditorPane and JLabel (which are fairly restrictive). Its tableing I'm really after.

    Eureka!
    http://home.earthlink.net/~hheister/

  • Html Editor in ADF Applications

    Hi people,
    We have used RichText editor for our application. But our customer isn't satisfied with the editor. They have been asking us to import Office into our web application :) So we are searching for a better editor. We have found some, but they want to run under a index.jspx page. But we want our editor to run under a task flow (under the tag <af:region> )
    Is there anyone who have used a better editor in their ADF application, can someone help us with our problem?
    Thanks.

    Yannick, you will always be my hero and saviour, but not this time :)
    I really need to take the documents from the web page, what we are aiming for is to cut the dependency of the users from Word applications, just enter some info from the page, store those info in UCM metadata, see the document right in the page, make some changes, and then submit the doc., then start a BPEL process, the approver can see the document in the Task Form, approve it, and the story goes on like that. If we are dependent on some Office application, the usabilility of our product would be poor.
    What I need is some complicated HTML editor in my application.

  • Font Anti-Aliasing Issues in HTML/Ajax based Air Applications

    It seems that the font-renderer in HTML/Ajax based Air Applications is using some kind of sub-pixel font renderer that is overriding and vastly inferior to the standard Windows ClearType, or any Apple based option as well.  This problem is particularly noticable with light text on a dark background, and made worse the smaller the text is.  I've put together an example image explaining exactly what I mean at: http://regator.com/fontRendering.png   (it's a large image 1126 x 1500 px)
    My example shows two fonts at four different sizes rendered in an HTML Air App vs the default Windows Cleartype, as well as using Safari to show the Font style anti-aliasing.  In all cases the HTML Air App rendering is far more difficult to read, and in many cases severely distorts the color of the text in a way that other subpixel algorithms do not.  As far as I can find after literally hours of googling and searching there's no way to override this in HTML based applications.  Is there any solution to this, or a planned fix for the renderer?  Other than this rendering issue, the HTML interface for creating Air apps is absolutely brilliant, this is just making my finished product look significantly less polished than it otherwise would if the text were more readable.
    Thanks.

    Dear caturner81, dear Adobe,
    is there a solution to this problem? I'd really love to fix the aliasing thing in Air/HTML!

  • Include html page in htmldb application

    Hi,
    How to include an html page in htmldb application?? I have an external html page and I want to include it in my HTMLDB application.
    tks

    Is the parent file named with an *.shtm(l) extension?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "matthew stuart" <[email protected]> wrote
    in message
    news:g7hd6v$e53$[email protected]..
    >I know how to do an include of an HTML page inside an ASP
    page, but I am
    > basically trying to do the same thing with an HTML page
    - that is include
    > HTML
    > within HTML - but it doesn't seem to be working when I
    test in a browser.
    > It
    > displays fine in DW though!
    >
    > The only way to successfully create an include in HTML
    pages seems to be
    > to
    > use the library method.
    >
    > Here is my include code:
    >
    > <!--#include file="../_includes/footer.html" -->
    >
    > Is this wrong for an HTML page?
    >
    > Thanks
    >
    > Mat
    >

  • How  we can use forms HTML capabilities with Oracle Applications?

    Hi
    Could not find any specific doc how we can use forms HTML capabilities with Oracle Applications?
    Thanks

    I'm not sure that I understand exactly what you are asking?
    What are you trying to do? If you could give a detailed explanation then we can try and assist.
    Reagrds,
    Bren

  • Get parameters from html page from java application standalone ...

    Hi all,
    I work in one solution that i have values in Html Page and i want get the parameters values from html and cath they in java application standalone.
    The Html page is in same host than de java application.
    I want know if this is possible. I wnat know if without HttpServlet i can get the parameters from Html Page pure.
    Thanks in Advance for the ideas,
    Antonio.

    Hi Abdul,
    The problem is my client want one solution where i have one page simple page Html and one application java standalone. This application runs in one machine, but we don't have web server. So the question is: Is possible without web server i can get the parameters values that is inside the html page from java application. I remember you that the application java is one .jar that run's with one command line from crontab "java -jar teste.jar".

  • Href to an application page

    How can a make a image with href to navigate to an another application page?
    I'm having on one of my pages a picture that is divided in multiple parts. I need to navigate to a different page with i click part of that picture and to set a value to an item on the page i navigate to.
    I've added the following html in the page region:
    <img src="http://myimage.com" height="600" width="1800" usemap="#myimage" />
    <map name="myimage">
    <area shape="rect" coord="206.58.686.260" href="*The URL of the page i need to go*" alt="myimage" />
    The problem is that when i click that part of the picture i get dirrected to the login page of the application, and only after i enter the password i get to the page i wanted to.
    I wonder if there is any solution to get to the page i need without needing to log-on again.
    I'm using apex 3.2.
    Kind Regards

    Hi
    is your page with map image public?
    And your application?
    you need to make sure that redirection goes to the page that has the same property as the source: Public or not public.
    Check this example: http://apex6.revion.com/pls/apex/f?p=188:16. It is public
    And check which url Finland area map gets.
    Did yo forget to include session, i.e. &SESSION. in your url, may be
    Regards,
    Oleg

  • How to export the report in HTML format for desktop application

    Hi,
    i have wrote the JRC desktop application to export the report and i am able to export it in PDF and other formats as mentioned in "ReportExportFormat" API.
    i would like to know is there any API there which can export the report in HTML format.
    i know it would be possible with web based application of JRC, but how can i do it in desktop application?

    There's no mechanism for static HTML pages that displays the report.
    You can use the CrystalReportViewer DHTML viewer, but that's 'interactive'.
    Sincerely,
    Ted Ueda

  • Help Needed in opening a HTML File from swing application

    Hi,
    I am opening a HTML file in Internet Explorer from my swing application.
    I am using the code given below
    private final static String WIN_FLAG = "url.dll,FileProtocolHandler";
    private final static String WIN_PATH = "rundll32";
    String cmd = WIN_PATH + " " + WIN_FLAG + " " + url;
    // url is HTML file Path
    Process p = Runtime.getRuntime().exec( cmd );
    The HTML file is opening up,but it always opens behind the swing application,that makes me every time to maximize the HTML file after it being opened up.
    I want to open it in front of the Swing Application.
    Any Help Please ?
    - Manikandan

    Check your Application's JFrame properties (may be ur Frame is set to be in top position ,always),and also check running your application in some other OS.

Maybe you are looking for