Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8961313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:51:42+00:00 2026-06-15T15:51:42+00:00

I want to open link in another web view control on clicking the hyperlinks

  • 0

I want to open link in another web view control on clicking the hyperlinks in another web
view in swing using Java FX

Actually i am having two web view controls A n B on the same screen .
On clicking the hyperlink in a , new link should be opened in B web
view control

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T15:51:43+00:00Added an answer on June 15, 2026 at 3:51 pm

    Allow webviewA to open content in webviewB

    Use setCreatePopupHandler:

    webviewA.getEngine().setCreatePopupHandler(new Callback<PopupFeatures, WebEngine>() {
      @Override public WebEngine call(PopupFeatures popupFeatures) {
        return webviewB.getEngine();
      }
    });
    

    Or, if you are using jdk8 and don’t like typing:

    webviewA.getEngine().setCreatePopupHandler(
      popupFeatures -> webviewB.getEngine()
    );
    

    Make your html links open content in a new window

    Define the hyperlinks in the document loaded in webviewA using target="_blank"

    For example:

    webviewA.loadContent(
      "<a href='http://sundae.triumf.ca/pub2/cave/node001.html' target='_blank'>" +
        "XYZZY" +
      "</a>"
    );
    

    when you click on the hyperlink and utter the magic word, it will open the Colossal Cave adventure in webviewB.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want a link to open up another view in my webapp to display
I am using Crystal Reports with C# programming language. I want to open another
In a Windows 8 Metro App I want the ListViewItems/Tiles to open a link
I want to make the descriptive text around a form link also open the
I want to open an inbuilt google map intent to show route between two
I want to open a document file using Open Xml Open Method, search for
When the user clicks on a link, I want to open a modal window
In one ASP.NET application, we provide a link to open another application. If user
I want to use Hacker News' open source software to build a link sharing
I'm trying to open an ssrs report on my web pages using ReportViewer. For

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.