Can I use JavaFX in Swing without modifying source more?

I had created a desktop in Java - Swing application.

Now, I want to improve the GUI. So I had planned to upgrade to JavaFX.

Can I use JavaFX in the swing and it is good to set up like this, rather than rewrite the program in JavaFx?

Updated the Message was edited by: CyberBoy

> Can I use JavaFX bat

Yes, you can incorporate scenes of JavaFX in Swing and Swing components in JavaFX.

See tutorial Oracle Interoperability JavaFX-Swing.

> is good to be implemented like this, rather than rewrite the program in JavaFx

Yes and no.  It depends on your application.

Yes-online mix JavaFX and Swing is a good approach if you are integrating your application into a vast structure of swing established such as the NetBeans platform.

No-online mix JavaFX and Swing is a bad approach, if you have an application that is relatively small and insignificant.

Mixture of JavaFX and Swing makes your more complex program because:

* You have to deal with different threading systems.

* You have to deal with different toolkits to interface user.

The JavaFX components looks do not match the appearance of the Swing components, if your application will look a little weird.

* Swing apps will not support features like touch interfaces.

Yes, the best to avoid mixing the two with the exception of special cases.  Valid reasons to mix the two (IMO) are:

* You have a large, existing Swing code base, which completely makes the migration to JavaFX AND unreasonable

* You want to use some specific features of JavaFX like WebView, multimedia playback in JavaFX, JavaFX graphics or 3D JavaFX which are not available in the swing.

OR

* You have a JavaFX application and the need to make use of some complex and Swing only existing component for which there is no counterpart in JavaFX (I think that for most people this will not be the case).

Tags: Java

Similar Questions

  • can I use a mini ipad 4 (which has more cellular wifi) without sim card installed

    can I use a mini ipad 4 (which has more cellular wifi) without sim card?   I managed to update to 9.3.3 but the wifi keep disconnecting and lock the screen when I go to settings, Wifi.

    Yes, you can remove the sim card. The iPad will be only nag you about the missing card every now and then. But the sim card has nothing to do with wifi...

  • Can I use automator to change the modified time of a file as its content?

    I use automator to rename a series of images.

    The problem is whenever I change a change of time of amending records file.

    Can I use automator to change the modified time of a file as its content?

    I know that I can use the Terminal to change a date but I have no idea how to do to automate this process

    As you say you know the command to use in the Terminal, and then with Automator, use the Action run the Shell Script after the name change.  The new file name will be passed to the Action run a Shell Script, and from there, you can use touch - r to set the time of the file at the time the name of the new file

  • Can I use my digital signature without entering my password each time?

    Can I use my digital signature without entering my password each time?

    Thank you, problem solved!

  • Can I use an iphone not activated and unlocked more 6s?

    Hi I want to buy an iphone 6 s more, but I want to use it as a small tablet can I carry everywhere I go to play games and to entertain me. I don't want or need a provider, I just want to be able to use freely as an ipad. Can I use the phone normally (get the apps, music, etc.) without a carrier and just use my wifi? I don't want any calls or texts I was just wondering if it would be functional if I activate. (the only reason why I did not receive an ipad is because they are not as portable) Thank you!!

    Get an iPod touch.

  • Can I use my Windows OEM product key on more than pc?

    Windows 7 OEM on two computers

    Hi, I recently built a computer and I bought a copy of windows 7 64 bit OEM OEM. I use it of course on the new computer, but I have a desktop HP with Windows 7 64 bit OEM on it too, I need to reinstall windows on the HP and I was wondering if I could use the HP OEM code, but the drive I bought for the other computer to reinstall. Thank you.

    If the drive OEM from Microsoft is the same version as the key product you already have - Yes, you can use the other installation disk to reinstall Windows (example: the drive and the key must be Windows 7 Home Premium).

    Note 1: You can only use the OEM key on a single computer, OEM can not be moved to another computer. You must use the key to your HP computer on this computer.

    Note 2: You cannot use an OEM recovery disk that came with another computer to reinstall Windows - OEM recovery disks are only valid with the computer, with which he came.

    Case of failure of the online activation:

    Call Microsoft use the manual phone Activation

    Note: If you always install Windows page enter your product key, do not enter your key and uncheck the "Automatically activate when online" then click OK/next to complete the installation.

    1. start by clicking on the start menu, and then type: slui.exe 4

    2. press enter on your keyboard

    3. Select your country.

    4 Select the telephone activation option, enter the number, do not select all options and wait for a person pick up, then explain what happened.

    HP also has several options to reinstall Windows on their computer:

    When restore you to factory State, it will be like it was when you bought first - all preinstalled programs will be installed. Everything you have installed after purchase needs to be reinstalled. This removes all the personal files on the computer, save them first.

    Questions about installing Windows 7?
    FAQ - Frequently Asked Questions from Installation Windows 7 & responses

  • Can I use the new watch without the iPhone?

    I would like to buy Apple's new series 2 Watch, I can use it without having a cell phone.

    Hello

    Non - Apple Watch should be paired with the iPhone 5 or a later version:

    Set up your Apple Watch - Apple Support

  • Satellite A200: Can I use the recovery disc without wiping the drive

    I read the threads on this forum, but I did not come with an exact answer to my problem.

    With my regular PC, I got a disc of Installation of Vista, which is also a recovery disk (like that could do with XP). One of the most useful things is that when you start from the disc you have an option to "fix" the system, which means that all the vital files (such as the bootloader...) will be restored, but otherwise all data will remain. This is extremely important when for example you install a dual boot with Linux, when often Vista refuses to start and to repair the boot loader has solved the problem. Of course it can easily and quickly fix all kinds of other problems in the system as well.

    My laptop Toshiba A200 (otherwise a wonderful machine), came with the Toshiba product recovery disc. From everything I read on the forum and what he says on the disc itself, I understand that it only allows a total reinstallation of the system, set at the factory, wiping your drive and everything on it.

    Toshiba really leaves us without a 'repair' option '?
    I find that quite amazing, because after all, I paid for the Vista operating system, so why shouldn't I get the options I would have if I had an original Vista disc?

    If all the above I have is right, it means that if I want to install a dual boot with Ubuntu and would get a bootloader problem, I loose all my data when I have to repair the boot loader? (A problem which, with the option 'fix', takes only 5 minutes to fix!).

    I would like to hear reactions, solutions, suggestions or alternatives.

    Thanks in advance,
    Yossi Beck

    Hey Yossi

    I think you have misunderstood something!

    You received with the image of Toshiba Toshiba Recovery CD! The image contains drivers Vista OS, Toshiba, tools, utilities, and additional programs!

    Please don't compare this disc for the original CD of Microsoft Vista and don t mix it!

    So using this disk, you can set the laptop back to factory settings!
    This is very useful because this procedure takes about 10 minutes only and you get everything functioning OS with all the drivers, tools, etc.

    Please note that no all users and customers who buy these phones are technicians and scientists ;) but simply newbie and such possibility of recovery is always welcome!

    but the use of this recovery CD format the whole HARD drive and erases all partitions.
    That is why it s advisable to back up the data before using the recovery CD/DVDs

  • Can I use the recovery CD without losing all my data?

    When I turn on my laptop satellite I get a message saying that the Windows system file is missing or damaged. The standard fix seems to be to repair using the Windows CD of Installation which of course I did not. I've also seen suggestions that sometimes chkdsk will fix the problem, but I can't run no more.

    The insert on the product recovery disc warns that all created files since I bought the laptop will be deleted. However, when I load the utility, I get two options. The first is to reinstall XP on my entire hard drive, and he told me that if I do that, I'll lose all my files. The second option is to install XP on a separate partition on my hard drive. He said nothing to lose all my data. Am I right in thinking that this second option will be to install XP, say, E: and I will then be able to run chkdsk on C:, or at least access C: and back up all my data?

    My deep gratitude for all the advice!

    Hello

    Sounds like you have an old Win XP Recovery disk

    Of general use of the Toshiba Recovery disk would be to format the whole HARD drive and therefore existing partitions will be deleted too I m not quite sure on the second option, you mentioned, maybe you would be able to choose a partition during the recovery process and would be able to install the operating system only on this partition without formatting the HARD drive but I m not 100% sure because it seems to be a former recovery procedure

    I would recommend another solution. You want to access the HARD drive to back up data. Right? Why you n start t Notepad using a Livecd such as Knoppix. In this case nothing would be installed on the HARD drive and the data on the HARD drive would not be affected so you can access important data and can move a HDD connected USB or flash memory stick

    After that, you can run the recovery procedure and might install Win XP on C.
    What do you think of this

  • How can I use simultaneous multiple profiles without breaking the HTML default window manager?

    I have two Firefox icons, one with the ' - p 'MyProfile' - no-remote ' options and the other with the "- p"MyGirlfriendsProfile"- no-remote ' options." It works fine; We both have on separate pages connected with no conflict. However, when I click on a link or one HTML file in any other program, Windows tries to start a new process, rather than load the target in one of the two running, and I get the error "Firefox is already in running... ». I found the registry key 'HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\command', which provides the parameters for the manipulation of targets related to Firefox and tried adding 'Pei 'MyProfile' - no-remote', but it does not work.

    Is it possible I can get Windows 7 to open the links/files in my profile in the process that is already running?

    This has happened

    Each time Firefox opened

    == I started using separate profiles

    Impossible to send a link to an external program to a Firefox instance that is started with the - non-interrupteur remote.
    This switch converts than Firefox (undetectable) invisible instance for other programs.
    One solution is to drag the link in the window of Firefox.
    You only need to use the - No.-remote switch if you need to have two profiles open at the same time and I guess it won't happen in your case if you leave Firefox open and running all the time.

    See also http://kb.mozillazine.org/Opening_a_new_instance_of_Firefox_with_another_profile

  • BlackBerry smartphone Curve 8900-can you use apps and internet without a SIM (ATT)

    I have a blackberry curve 8900 I bought for cheap thinking I could use it to just WiFi and apps... is true or was a mistake? If it is true, how do I do that?

    How can you check what OS I use... I'm new to blackberry

  • VCS Starter Pack can be used as VCS-E without any upgrade?

    My client a VCS - C and the TMS, the VCS Starter Pack.

    We rely on the deployment of all in the traditional model.

    What I have to migrate MS full Expressway product or I can leave it as what?

    Can't he do while it is configured as the Starter Pack? This may cause problems later?

    It's my first time with it and someone else put in place before we got here.

    Sent by Cisco Support technique iPhone App

    Hey Michael!

    Of course, you might think the delivery of the VCS-E as a stand-alone box with a crossing area and

    SIP proxy VCS - c

    I can't recommend this doing.

    If I see just the starter pack is just an extra key, giving you all the options you need:

    0 calls no course, 5 calls route, 50 entries, 900 ROUND relay, Expressway, encryption, FindMe, Starter Pack. But it also means that you are linked to this feature set (for example, you can not delete the provisioning, findme,...)

    Some other limitations I see:

    * officially VCS-SP-E cannot be added to the TMS, then you miss the detail records management calls...

    * the starter pack provisioning can hinder the supply of MSDS if intended to be used

    * TMSPE/OpenDS (also password "local-tms' database (authentication)) will not work on the VCS-SP-EP

    There could be more.

  • Can I use a USB hub to connect to more of a GPIB-USB-HS USB ports?

    I have an instrument that has a GPIB-USB-HS connected and the USB cable is connected to a USB hub. Can I have multiple computers to connect with USB hub in their respective USB ports? If so, how many computers can I connect using the USB cable?

    I downloaded the latest Driver NI-VISA from the Web site.

    You must first a hub which allows to switch between multiple PCs and PCs as one would at once be connected and in control.

    When you buy this particular type of hub, one of the specifications is how many pc connections there.

  • Can I use an IF statement in a Source in the region

    Hello, Im using Apex 3.x. I have a standard report page whose Source region is a simple select statement... SELECT xyz OF... WHERE

    I need to add an IF statement to this Source in the region, but when I do I get an error - query cannot be parsed in the generator.

    IF: P2_FILTER = 'A' THEN
    SELECT FROM ABC... WHERE
    ELSIF: P2_FILTER = 'B' THEN
    SELECT FROM ABC... WHERE
    END IF;

    The selected columns are the same in both scenarios. Is it possible to add an IF statement to the source of the region?

    Thank you
    you

    You can either:

    (1) create several springs in the area with a query and set a condition to show only based on your health status.

    (2) a function returning the pl/sql and return the generic as columns:

    if a then
      return 'select 123 from dual'
    else
      return 'select 456 from dual'
    end if;
    
  • I can't use my Kindle to order books have more password of my router/network. What can I do?

    Is there a way to avoid buying a new router and startin everywhere?

    Membership to the router and get the encryption key.  The address will be something like 192.168.xxx.xxx documented in the user guide for the router.  If you have any more of the user's guide, you can download it from the web site of the manufacturer.  If you do not have to get a new router, you can buy them these days for as little as $15, so it's not that big a deal if you have to do.

    I hope this helps.  Good luck.

Maybe you are looking for

  • Sprout: Srout Workspace has stopped working

    My workspace of germination has stopped working, I installed the latest version of the software and it does not appear to have made all the difference. If the home screen asking if I want to use the workspace is like apears and I am taken straight to

  • makes a lot of downloads slow down performance on pc?

    I saved a number of downloads, that I never use... my pc would be better if I disable them?

  • Extension of memory Tecra T9100

    Memory modules can be installed in Tecra T9100 with PT910E-00DYG-GR part number? I have 256 MB, I can install a module with 512 MB?

  • Sony Xperia P has battery problem after 4.1.2. Update

    This morning I updated my Sony Xperia P to 4.1.2 Jelly Bean. The update itself was completed without problems. But after the update used battery very fast, without being used. And it's hot. I tried to reboot (several times) does not. When we look at

  • Feilmelding under oppdatering

    Inte denne feilmeldingen, nar jeg skulle instalere Sikkerhetsoppdatering for Microsoft .NET Framework 4 pa Windows XP, Windows Server 2003, Windows Vista, Windows 7, Windows Server 2008 x 86 (KB2446708): "WindowsUpdate_0000066A" "WindowsUpdate_dt000"