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
0
votes
1 answer

Cannot get JavaFx Stage from Node because class com.sun.javafx.stage.EmbeddedWindow cannot be cast to class javafx.stage.Stage

I am trying to close the current fxml to move to the next one. I followed the reply from this question: close fxml window by code, javafx: @FXML private javafx.scene.control.Button closeButton; @FXML private void closeButtonAction(){ // get a…
0
votes
1 answer

How to set an action to occur whenever JFXPanel is closed?

I'm building a Swing application and I'm using JFXPanel to bring up a WebView for user authentication. I need to return the url that the WebEngine is sent to after a successful user sign-on- but I don't know how to pull the URL from the view at the…
0
votes
1 answer

Click on open JavaFX Menu embedded in JFXPanel does not close it

When embedding a Menu in a Swing window through a JFXPanel, I cannot close the menu by clicking on it. Sometimes it blinks, as if it closed and immediately reopened. package testjavafx; public class TestMenuJavaFX extends Application { …
joH1
  • 555
  • 1
  • 9
  • 27
0
votes
0 answers

Why does my jPanel doesn't show an embed webView from Java FX?

I don't know much about JavaFX, but I need to show a WebView onto a JPanel in a JFrame. Here's my code public class Ventana extends javax.swing.JFrame { JFXPanel jfxPanel = new JFXPanel(); public Ventana() { …
0
votes
2 answers

How to fix exception when creating JFXPanel in Swing with JavaFX 12

I have a large Java application with a Swing-based UI that uses JavaFX to render video panels and WebView panels in parts of some windows via JFXPanel components. Everything worked fine with JDK 8 but I am migrating to OpenJDK 12 and JavaFX 12 and…
0
votes
0 answers

JFXPanel in JFrame causing frame drops upon mouse movement

I am working on embedding a JavaFX login screen inside a Swing application. I added a JFXPanel to a JPanel's content frame. Upon loading the application, all is well and smooth until I move my mouse inside the content pane (see link below for a…
0
votes
2 answers

Eexpand 2 more Titledpanes at once

On these days i am refactoring java swing code to javafx. And about some jpanels, i just refactored as JFXPanel and that JFXPanels` root is VBOX. the structure of JFXPanel is VBOX -> BorderPane -> TitledPane -> AnchorPane.
HyungjinJeon
  • 143
  • 11
0
votes
1 answer

In JAVA swing when we implement JAVAFX button using JFXPanel, and then we remove jpanel and add it again then scene is removed or hide

I have demo application in which I am adding JAVAFX button in JPanel using JFXPanel and add scene to JFXPanel. but when I remove and add again JPanel in which my JFXPanel is implemented the scene is removed or hide inside JFXPanel please help. I…
0
votes
0 answers

SWT Custom FontDialog

I want to restrict the size selection or hide the size Selction block in FontDiallog, i know this is standard widget we cant customize with this standard FontDialog. Is their any other way to do with customization?
mahesh bhagirath
  • 151
  • 1
  • 1
  • 11
0
votes
1 answer

Problems installing BurpKit - ClassNotFoundException

When I install the extension in Burp Suite, I get the following error: java.lang.ClassNotFoundException: javafx.embed.swing.JFXPanel at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at…
Nb Ghost
  • 1
  • 1
0
votes
0 answers

refresh typescript data from jfxPanel java

I have a JFX panel that run typeScript. I want to execute typeScript function that trigger by java function. there is a: engine.executeScript("scriptName"); but its working just on javaScript function and doesnt know the TypeScript function. I try…
user3937548
  • 67
  • 2
  • 9
0
votes
1 answer

JavaFX WebView doesn't render JSF page correctly (symbols instead of values from beans)

I have created very simple app that is displaying URL using JavaFX WebView: static JFXPanel fxPanel; static WebView wv; static JFrame frame; public static void main(String[] args){ try { fxPanel = new JFXPanel (); …
0
votes
1 answer

How do i set an OnSelectionChange to my Tab in JFX

I have managed to create a JFoenix tabpane on initialization. However, i do not know how to set certain actions to happen when my tabs are being selected. Below is my code! tabPanel = new JFXTabPane(); …
Justin Soh
  • 13
  • 7
0
votes
1 answer

Maintaining sequence in pushing and printing values of two arraylists

I'm trying to build a web browser and I'm using WebView for getting web pages. I need to fetch both the URL and the title name for storing history. So i tried in this way: private void currentScene() { Platform.runLater(new Runnable() { …
IAmBlake
  • 457
  • 6
  • 21
0
votes
3 answers

How to run Javafx stage/scene in Swing Application?

I have a swing application where I need to run and open JavaFX Scene/stage. I have to run it without extends Application. I've tried most of the solutions posted on Stackoverflow, none of them are working in my situation. Here is my latest try and…
Sadequer Rahman
  • 133
  • 5
  • 11