Questions tagged [jfxpanel]

The JFXPanel is a special Java Swing component that allows embedding a JavaFX scene into a Java Swing application. Use this tag on questions that cover the usage of this special Swing component.

The JFXPanel component allows the integration of functionality into applications.

Any questions regarding this special component can and should have this tag, as it requires both knowledge in the two UI frameworks JavaFX and Swing and also regarding crucial borderline topics like thread-handling.

For more information, check out the following sources:

35 questions
4
votes
1 answer

Custom object drag-and-drop from embedded FX (JFXPanel) to Swing

This question is a follow-up question to Custom object drag-and-drop from FX to Swing. I'm working on a plugin for a Swing application that uses JavaFX for some graphical user interfaces. We added drag-and-drop functionality to improve the user…
Lukas Körfer
  • 13,515
  • 7
  • 46
  • 62
4
votes
1 answer

Javafx: No toolkit found exception

I have added the javafx library in my intellij plugin for adding the jfxwebview. But when I am trying to create JFXPanel object as JFXPanle jfxpanel = new JFXPanel(); It is giving the following exception: No toolkit…
ishan jain
  • 681
  • 3
  • 10
  • 27
2
votes
1 answer

How do I fix aligning issues when using JFXPanel?

My problem is, that i have a normal JavaFX fxml file, which automatically realigns its elements when i start it normally and resize it. But i when i start it with the JFXPanel suddenly nothing realigns anymore. And i have no idea what the reason…
Tamino W.
  • 139
  • 1
  • 1
  • 7
2
votes
1 answer

MagicDraw plugin of browser with JavaFx

I am writing a Magicdraw plugin with JavaFx Framework to add a new Browser. Following is the code of initialization of a new browser in LibraryBrowser class. private static final WindowComponentInfo info = new WindowComponentInfo("test_browser",…
Lio Mou
  • 91
  • 1
  • 1
  • 5
2
votes
1 answer

JavaFX/Swing threading issues when typing in TextField after parent JFrame loses focus

I have a combined Swing/JavaFX application using JDesktopPane and JInternalFrame for MDI and JFXPanel to embed JavaFX fields in the internal frames. This has been working fine up until Java 8u161. With the update, there are a lot of uncaught…
ashhappens
  • 133
  • 1
  • 7
2
votes
0 answers

WebView not display a certain website

I am trying to display this site: https://harvard.service-now.com/ithelp into my WebView (which is in a JFXPanel). However, it showing a blank screen. I tried several different pages and they all works fine to me. Searching around suggest that it is…
Nguyễn Duy
  • 91
  • 1
  • 8
2
votes
1 answer

Transparent JFXPanel not forwarding events to components under it

I am trying to create a transparent JFXPanel over a swing based UI. The problem is events are not forwarded through the "transparent" sections the way they are for normal swing components. I included a simple example below. Note that there are 3…
CodeMnke
  • 96
  • 4
2
votes
0 answers

JFXPanel will not resize to fit FlowPane

None of the following components have min, max or preferred heights unless otherwise specified: I have a JPanel with a BorderLayout. At the CENTER of the BorderLayout there is a JPanel. At PAGE_START there is a JFXPanel. The JFXPanel has been set…
UtterlyConfused
  • 983
  • 1
  • 10
  • 18
2
votes
0 answers

JFXPanel throws UnsatisfiedLinkError in java-9 - how to fix?

Just tried to run my old tests in java-9 and see them not running at all due to an exception thrown by the code that guarantees running on the FX-threaad (the ol' trick to instantiate a JFXPanel) The stand-alone example below (it's the plain…
kleopatra
  • 51,061
  • 28
  • 99
  • 211
1
vote
0 answers

How to close a Jframe from my FXML controller class?

I have a swing application and have to integrate new javafx FXML files into it. I use a JFXPanel to open my FXML form. The exit button is created on the FXML form. My controller class implements the event of that button. But how do I close the…
1
vote
0 answers

How to stop the music?

I dont know how to stop the music here. Can anyone help me how to code. private void mActionPerformed(java.awt.event.ActionEvent evt) { JFXPanel j = new JFXPanel(); String uri = new…
1
vote
1 answer

Java-FX MenuBar in JFrame/JFXPanel : First click not recognized

I want to place a JavaFX MenuBar over a JFrame (Netbeans RCP). So I have placed a JFXPanel on the JFrame and have kept the FX Menubar over that. But whenever I click the Menu (when it's not focussed), the first click doesn't work. Only the after I…
1
vote
1 answer

JavaFX Scene Builder - Is it usable with JFXPanel in Swing

I am using JavaFX in Swing application, with JFXPanel. I have been coding JavaFX UI manually, with css files. I am using NetBeans 8.1. I am wondering, in this case, can I use JavaFX Scene Builder to generate UI? AFAIK, the output is FXML file which…
Shuwn Yuan Tee
  • 5,578
  • 6
  • 28
  • 42
1
vote
1 answer

Why is JFXPanel giving focus to TextField

The following code produces a JFrame containing a JFXPanel and a JPanel. Each of the panels contains a text field. JFXPanel fxPanel = new JFXPanel(); JPanel swingPanel = new JPanel(new FlowLayout()); swingPanel.add(new JTextField("Swing")); JPanel…
UtterlyConfused
  • 983
  • 1
  • 10
  • 18
1
vote
1 answer

jp2launcher.exe does not exits with applet closure

If I close applet with JavaFX content (so applet is using EDT and JavaFX thread) the jp2launcher.exe continues run for almost 1 minute so that applet cannot be easily started again (as soon as it is not recognized as new instance – after browser…
Yarl
  • 728
  • 1
  • 7
  • 26
1
2 3