Results 1 to 2 of 2
  1. #1
    rru96 is offline Senior Member
    Join Date
    Sep 2012
    Rep Power

    Default Diving into JavaFX from Swing

    I have a program that I got nearly done, which I then discovered the issues of incorporating a Graph/Chart into a Swing application. So I read around and decided that I wanted to try my hand at recreating the program using JavaFX. I am interested but very anxious to start. I did have a few questions,

    1) Is it fair to compare the STAGE in JavaFX to the JFrame in Swing ?

    2) If 1 is true, would that mean the SCENE is equivalent to a JPanel ?

    I am trying to get a grasp on the layout of everything and from the looks, every SCENE will need to be in it's own class, unlike JPanels that I just stack somewhere in a class together in Swing.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Rep Power

    Default Re: Diving into JavaFX from Swing

    It helps to forget about how Swing joins things together when moving to JavaFX.
    There is no direct mapping (IMO).
    When I tinkered with JavaFX I started thinking like that and it just results in you porting Swing concepts into JavaFX, and they're not a great fit.

    Read up on the JavaFX tutorials at Oracle.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. JavaFX vs. Swing
    By MW130 in forum New To Java
    Replies: 15
    Last Post: 03-05-2016, 07:45 PM
  2. JavaFX Book | Learn JavaFX More In Depth
    By SnakeDoc in forum JavaFX
    Replies: 0
    Last Post: 05-18-2013, 12:10 AM
  3. JavaFX 2.0 and/or Swing
    By JavaPete in forum Forum Lobby
    Replies: 2
    Last Post: 10-25-2012, 10:36 AM
  4. Help needed for Diving Program
    By v1ru5 in forum New To Java
    Replies: 6
    Last Post: 10-21-2012, 06:49 PM
  5. JavaFX Script and JavaFX Mobile
    By levent in forum Java Software
    Replies: 1
    Last Post: 01-27-2010, 05:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts