This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 212452 - Can't switch to different preloader
Summary: Can't switch to different preloader
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Petr Somol
URL:
Keywords:
Depends on: 213175
Blocks: 208575
  Show dependency tree
 
Reported: 2012-05-14 09:13 UTC by Stepan Zebra
Modified: 2012-06-08 14:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stepan Zebra 2012-05-14 09:13:08 UTC
Product Version: NetBeans IDE Dev (Build 201205130400)
Java: 1.7.0_04; Java HotSpot(TM) 64-Bit Server VM 23.0-b21
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)

1) Create new JavaFX Application with Custom Preloader
2) Create another new Preloader
3) In JavaFX App's Project Properties set up the second preloader

Now the second preloader is visible in JavaFX App's Libraries, but in JavaFX App's Properties Run panel, there is still the first preloader.
On attempt to run the JavaFX App, it fails with message that the preloader library wasn't found.
Comment 1 Stepan Zebra 2012-05-14 09:32:40 UTC
There is more:
If I create new FX project and new FX preloader separately, I need to add it twice, to make it work. After first attempt, the preloader is added to Libraries, but it's neither used in the project run, nor set in Run Properties. After the second attempt, it's added correctly and runs.
Similar, but reverse, situation when unsetting the preloader. On first attempt, it's removed from Libraries, but it's still "in use". On second attempt, it's finally completely removed.
Comment 2 Stepan Zebra 2012-05-14 10:49:54 UTC
(In reply to comment #1)
> There is more:
> If I create new FX project and new FX preloader separately, I need to add it
> twice, to make it work. After first attempt, the preloader is added to
> Libraries, but it's neither used in the project run, nor set in Run Properties.
> After the second attempt, it's added correctly and runs.
> Similar, but reverse, situation when unsetting the preloader. On first attempt,
> it's removed from Libraries, but it's still "in use". On second attempt, it's
> finally completely removed.

Same behavior when using the "Use Preloader" checkbox to disable/enable the preloader.
Also, when I disable the preloader, the fields are grayed, but when I open the Properties again, the fields have normal color again, though the usage of preloader is successfully disabled.
Comment 3 Petr Somol 2012-06-05 13:57:52 UTC
fixed in jetmain:
http://hg.netbeans.org/jet-main/rev/88fdc163d8ae
+added config change listener to keep preloader dependencies updated:
http://hg.netbeans.org/jet-main/rev/82bedd019647
Comment 4 Quality Engineering 2012-06-08 06:09:29 UTC
Integrated into 'main-golden', will be available in build *201206080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/88fdc163d8ae
User: Petr Somol <psomol@netbeans.org>
Log: #212452 - Can't switch to different preloader
Comment 5 Stepan Zebra 2012-06-08 14:08:57 UTC
verified, no problems found

opening separate new issue 213835 for
(In reply to comment #2)
> ...
> Also, when I disable the preloader, the fields are grayed, but when I open the
> Properties again, the fields have normal color again, though the usage of
> preloader is successfully disabled.