How to achieve the following structure in javafx?

Ankit Patel

I have to create the architecture shown in the image below.
The inner components can be created very easily but in which container I would place them is the question. BorderPane, AnchorPane, GridPane.. These cannot contain JFXPanel as achild node.

Hence , the task is to convert the swing panel into jfxpanel. So each element should be of javafx.

enter image description here

jewelsea

JFXPanel is for embedding JavaFX scenes inside a Swing application, which doesn't sound like what your are doing, so a JFXPanel is probably the wrong component type to use for your application.

I guess (and I could be wrong) that your application is a JavaFX application in which you would like to embed a Swing component - in which case you use a SwingNode.

JavaFX scene
 - JavaFX layout pane root
   - JavaFX ScrollPane 
     - SwingNode 
       - Swing component

In general, mixing JavaFX and Swing is not usually recommended.

I note that your question is tagged javafx-2, so note that SwingNode only exists from Java 8 on; i.e., it does not exist in Java 7, so there is no way to accomplish the structure you outline in your question within the context of Java 7 or JavaFX 2.2.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to achieve the following in WPF

How to achieve the following layout?

how to achieve resizability in javafx?

How to achieve the following in Realm for android

How to achieve following design in html

How I achieve the following layout

How to achieve JavaFX and non-JavaFX interaction?

How to run a single query to achieve the following result?

How to achieve the following sql query in influx?

How to achieve following result with Group By in MySql?

How to customise UIDatePicker to achieve the following output?

How to achieve the following code using List Comprehensions?

How to achieve following output in Mongo Aggregation?

How to achieve modularity structure of app subcomponents on Android?

How to implode these conditions to achieve this query structure?

How to achieve Nested fields structure in firestore document?

How to achieve the following layout with dynamic width in Constraint Layout?

How can I achieve the following pattern using the DateTimeFormatter?

How to use substitute command in unix(vi or sed) to achieve the following results

How to achieve the following? C++ "advanced" map/list/array?

How to fix the following partition layout to achieve what I want

How to achieve the following using functions/stored procedure in SQL Server database

How can I achieve the following in oracle without creating a stored procedure?

How do i achieve the following dynamic route in next js?

How can I Achieve the following output with dynamic input values?

How to make the page scrollable in the following structure (Flutter)

how to initialize the struct of following structure in golang

How to create the following data structure in a NoSQL environment

How to get values in json array in following structure