Results 1 to 4 of 4
  1. #1
    bockymurphy is offline Member
    Join Date
    Oct 2011
    Posts
    16
    Rep Power
    0

    Default JavaFX redirect to pure html webpage

    Hi
    Does anyone know a simple way to get, for example, a button action event within a web deployed java fx application to direct the browser to a new web page?

    So in my application I want to go to the home page of my website when the user clicks a javafx button.

    I think this can be done with javascript & javafx, but i think it is messy......

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,196
    Rep Power
    19

    Default Re: JavaFX redirect to pure html webpage

    When seeking help with JavaFX, you should always mention the version. The solution for FX Script (1.x) may be totally different to one for FX 2.x, which is a Java API.

    You can probably use java.awt.Desktop#browse(...) with either version, though. Or if you can include an Applet (maybe not visible) on the same page and communicate with it, you can use getAppletContext().showDocument(...).

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,196
    Rep Power
    19

    Default Re: JavaFX redirect to pure html webpage

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,196
    Rep Power
    19

    Default Re: JavaFX redirect to pure html webpage

    There's a way with pure FX2 code, but maybe someone will point your nose in the right direction over at SO.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 0
    Last Post: 10-10-2011, 10:00 PM
  2. redirect servlet page to html.
    By ayushi in forum Java Servlet
    Replies: 2
    Last Post: 07-23-2011, 07:57 PM
  3. JavaFX Script and JavaFX Mobile
    By levent in forum Java Software
    Replies: 1
    Last Post: 01-27-2010, 04:48 PM
  4. Inserting image into RTF file using pure JSP
    By joseluisbz in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 01-05-2010, 06:17 PM
  5. redirect to html page
    By simo_mon in forum Java Servlet
    Replies: 3
    Last Post: 02-12-2009, 05:18 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •