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

  • SEARCH
  • Home
  • 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 7945305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:49:16+00:00 2026-06-04T00:49:16+00:00

is JavaFX capable of loading and embedding OCX Controls? I would like to use

  • 0

is JavaFX capable of loading and embedding OCX Controls? I would like to use the Internet explorer in my Application, because the WebKit browser lacks support for ActiveX. And since I have to rely on third party ActiveX Controls (I know they are evil), I am bound to the IE.

This question is not purely related to “Can I use OCX in Java” because I would like to have some kind of component for JavaFX I would like to use.

Or do I have to rely on libraries posted here:

Use a .OCX Control in Java

Thanks in advance,

Sven

  • 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-04T00:49:17+00:00Added an answer on June 4, 2026 at 12:49 am

    You have to rely on the libraries posted in the link you supplied in your question.
    Or you need to write your own JNI interface.

    If you do access OCX components, you may need to place them in their own window rather than sharing a window created by a JavaFX stage as you may run into issues with the JavaFX renderer conflicting writes on the window portions in which the OCX components are displayed – you would have to try it and see what happens to confirm.

    The easier way to do this may be to request that users of your application set their default browser to IE, and then call the JavaFX hostservices.showDocument(uri) api to launch an IE page which embeds the OCX components you need.

    Another alternative is to:

    1. Embed your JavaFX application as an applet in a web page.
    2. Also embed your activex controls in the web page.
    3. On display of the web page, check the browser and, if it isn’t IE, tell they user that the must be using Internet Explorer.
    4. Have the user accept any miscellaneous security warnings the Browser displays.
    5. Have the user (or perhaps JavaScript) resize the browser window to fullscreen (see IE9 Full Screen Mode or Full Screen Browsers with JavaScript).
    6. Communicate between your active X controls and java app using javascript invoked via calls from the javafx/javascript bridge and control your active X controls via VBScript embedded in the page.

    It would probably work, but it is such an ugly Frankenstein solution . . .

    If you can convert your media to a format which JavaFX supports and just play it back direct through JavaFX, that would be much preferable, or it may also turn out that due to a deep ActiveX integration requirement that JavaFX is not the best solution to your problem and you could be better off with something like Silverlight.

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

Sidebar

Related Questions

JavaFX is a new technology introduced by Sun. I would like to know what
I am new to JavaFx technology, I would like to know whether I can
Does a JavaFX applet use the browser's cache or any cache when downloading files
I'm new to JavaFX, trying to use bind like this: public function newCircle() :
I've written a JavaFX application that uses Java Web Start. For some reason, the
I have just explore javaFX. I am now programming modul based application by netBeans
JavaFX 2.0 GUI builder is removed for Linux? Like in old JavaFX we had
I have a simple javaFX application that loads a webpage in a WebView componant.
I have a JavaFX app with a some code like this... public class MainListener
I have a JavaFX webservice client mobile application. How can I make the JavaFX

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.