Scene Builder: cannot edit when I embed a custom control!

Hi guys, I'm having an issue with Scene Builder and embedded custom controls...
I have a LoginPanel .fxml/.java module, which contains two re-usable custom controls I've built:
* StatusZone .fxml/.java
* LanguageSelector .fxml/.java
The application runs.
However, I can't open LoginPanel.fxml to edit it with SceneBuilder v1.1 (developer preview).
To be specific, in LoginPanel.fxml, I have this data:
<StatusZone fx:id="statusZone" />
<LanguageSelector fx:id="languageSelector" />
SCENARIO 1
-- LoginPanel.fxml --
<?import kalungcasev2.view.StatusZone?>
<?import kalungcasev2.view.LanguageSelector?>
I get:
Warning: File 'LoginPanel.fxml' contains references to types that could not be loaded.
Missing types are [kalungcasev2.view.StatusZone]
I can click 'Set up classpath', but no matter which folder I choose, it doesn't seem to fix the problem.
SCENARIO 2:
-- LoginPanel.fxml --
<?import kalungcasev2.view.*?>
I get:
Warning: File 'LoginPanel.fxml' contains references to types that could not be loaded.
Missing types are: [StatusZone, LanguageSelector]
I can click 'Set up classpath', but no matter which folder I choose, it doesn't seem to fix the problem.
How do I fix this?

Hi,
If no ClassLoader is configured in the FXMLLoader, then the FXMLLoader will try to load the
classes using the System/Context class loader.
This works well in the context of an application where everything is in the system class loader.
In SceneBuilder however - your classes will not be in the System class loader, but in a special
URL class loader that SceneBuilder created for your FXML file.
SceneBuilder sets this ClassLoader on the FXMLLoader that loads your top FXML file,
but it can't do anything for the instances of FXMLLoader that your own code creates.
Therefore - it's best to configure your FXMLLoader with the appropriate class loader,
which is usually the class loader that loaded your custom type.
See https://javafx-jira.kenai.com/browse/DTL-5177 for more details.
-- daniel
Edited by: daniel on Apr 25, 2013 7:33 AM
Sorry - to be more precise:
loader.setClassLoader(this.getClass().getClassLoader());
is the correct line.

Similar Messages

  • What happened to ?scenebuilder-stylesheet ... in Scene Builder 2?

    Hi,
    Did the way <?scenebuilder-stylesheet some-style.css?> works get changed in Scene Builder 2?  When I use Preview -- Scene Style Sheets -- Add a Style Sheet, I can't figure out where Scene Builder 2 is storing the info for the previewed style sheet.  When I commit the FXML file and check it out on another machine, all that information is lost.
    What's the recommended way to deal with CSS for for files that are going to be included in other files using fx:include?  For example, assume I have 2 FXML files:
    1) Main.fxml - A StackPane that includes Sub.fxml via fx:include.  Specifies main.css as a style sheet.
    2) Sub.fxml - Uses styles from main.css, but no style sheet is attached directly.
    It doesn't seem right to add main.css to both files.  If I remember correctly, Scene Builder 1 would use <?scenebuilder-stylesheet some-style.css?> to make this work, but it seems to be ignored in Scene Builder 2.  Can anyone suggest another way of doing what I want?

    Yes it changed.
    For some reason, in SceneBuilder 2.0, they decided to have the CSS preview and the I18N preview information stored in the SceneBuilder's preferences instead.
    That is using Java's Preferences API.
    So for example, in Windows, those info are stored in the Registry in, hold your breath: HK_CURRENT_USER\Software\JavaSoft\Prefs\com\oracle\javafx\scenebuilder\app\preferences\/S/B_2.0\/D/O/C/U/M/E/N/T/S/<name of your FXML file here>
    Which means that :
    CSS and I18N preview gets broken as soon as you move the FXML file around.
    Hilarity ensues (or not) as soon as you have 2 FXML with the same mane in different projects and you move them around (one may get the CSS for the 2nd one if it ends up in the same location).
    Your registry will get bloated with references to long deleted FXML after a while...
    This also probably means that the same should be stored in some XML file in ~/.java/ in Linux and Mac OS X.
    On the other hand, you do not have anymore the issue in SceneBuilder 1.x which was looking for the hard-coded location of the CSS and properties files when moving FXML files between computers when working on a multi-person/multi-computer project.
    Also, it's not as bad as SceneBuilder 1.1 which was keeping a whole copy of the directory structure I had in my projects in the Registry for seemingly no good reason.

  • Cannot uninstall Scene Builder v1.1 b15

    Hello,
    I have Scene Builder 1.0 and Scene Builder 1.1 b15 installed on my Win7 x64. Now I want to upgrade SB v1.1 b15 to v1.1 b17.
    Installing SB v1.1 b17 cannot continue because install says that I already have previous version of that product installed. I suppose that it means SB v1.1 b15.
    When I go to control panel and try to uninstall SB v1.1 b15 the uninstall program starts but then after a while there is a popup saying:
    "JavaFX Scene Builder 1.1 - InstallShield wizard
    This version of JavaFX Scene Builder is already installed on your system"
    When I hit OK (no other options available), uninstall quits.
    What to do next?
    Thank you for your support.

    This is tracked by the http://javafx-jira.kenai.com/browse/DTL-5484 and fixed since b16.
    The workaround is to edit the Windows registry to remove the two entries below.
    If on a 64-bit Windows:
    HKEY_LOCAL_MACHINE > SOFTWARE > Wow6432Node > JavaSoft > JavaFX Scene Builder
    HKEY_LOCAL_MACHINE > SOFTWARE > Wow6432Node > Oracle > JavaFX Scene Builder
    If on a 32-bit Windows:
    HKEY_LOCAL_MACHINE > SOFTWARE > JavaSoft > JavaFX Scene Builder
    HKEY_LOCAL_MACHINE > SOFTWARE > Oracle > JavaFX Scene Builder
    Regards

  • Cannot edit the manifest.xml in flash builder extension builder 2.1

    In flash builder I installed the extension builder 2.1 to build a photoshop extension. The basic structure created automatically the manifest.xml file but i cannot edit this file in the editor and If I edit outside of the flash builder it does not reflect the changes.
    What I want is to add an icon for my extension.

    SOLVED!!
    ===========
    When creating an adobe extension project in Adobe extension Builder with Flash Builder 4.6, a folder ".stage-extension" is created but not listed in the directory in the Package Explorer Tab. However the manifest.xml file in the bin-debug folder is shown giving the impression that it could be edited.
    To edit the manifest.xml file, locate the location of your project and find: YourPorjectName>.stage-extension>CSXS>manifest.xml
    Edit this manifest.xml for the changes to apply.

  • When I get an ICS from Outlook that is a multi-day event it populates my iCal as a single day and since I am not the owner I cannot edit the ICS.

    When I get an ICS from Outlook Express (Office is PC based) that is a multi-day event, it populates my iCal as a single day and since I am not the owner I cannot edit the ICS. I have to delete it and send a "decline notice" to the sender and re-enter it so I can put in multiple day events. Help!

    If you are running Tiger, you don't have time machine. 
    You need to get something like SuperDuper! or Carbon Copy Cloner (sorry, I don't have a handy link for CCC but you can Google it to get their site) to make a clone of your drive on the external and then do incremental backups.  The free versions do a lot and you can upgrade to the full-service versions for small change if you need more.  The one time I used SuperDuper! for cloning a volume it worked just fine. 
    (My backup application is the last PPC capable version of Retrospect, which does a credible job, or has over the past ten-twelve years.)

  • I had to erase my hard drive and then reinstall everything back from my passport external hard drive. Now my iPhoto edit is not working. I get a blank screen when I want to edit. The photos show up in the library but I cannot edit them. Help?

    I had to erase my hard drive and then reinstall everything back from my passport external hard drive. Now my iPhoto edit is not working. I get a blank screen when I want to edit. The photos show up in the library but I cannot edit them. Help?

    There are several possible causes for the Black Screen issue
    *1. Permissions in the Library* : Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Include the option to check and repair permissions.
    *2. Minor Database corruption*: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
    *3. A Damaged Photo*: Select one of the affected photos in the iPhoto Window and right click on it. From the resulting menu select 'Show File (or 'Show Original File' if that's available). Will the file open in Preview? If not then the file is damaged. Time to restore from your back up.
    *4. A corrupted iPhoto Cache*: Trash the com.apple.iPhoto folder from HD/Users/Your Name/Library/ Caches...
    *5. A corrupted preference file*: Trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    If none of these help:
    As a Test:
    Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?
    Regards
    TD

  • Whenever I open the editor in Photoshop Elements 12 it does not work. When I try to click open in the application it does not do anything. None of the buttons work. When I open a photo using file at the top it opens but I cannot edit it or use any of the

    Whenever I open the editor in Photoshop Elements 12 it does not work. When I try to click open in the application it does not do anything. None of the buttons work. When I open a photo using file at the top it opens but I cannot edit it or use any of the features on the left side.

    Hi Nealeh
    Thanks i think I got it working of a fashion.
    Except the replace colour, does not seem to end up with the colour I picked using the picker tool. Its as though it hads not replaced the colour but blended in the desired colour with the old incorrect colour!
    Buy trial and error picking not the right colour but close - which when mixed with the existing colour is close.
    Sorry I can't post the pictures as the Lingerie Mfg, has me under non disclosure.
    The scenario is:-  say a blonded mainly tanned model a high cut [at the hips] corsette style basque, with an ultra low bra line.
    Our dear model, has just come back from St Barts with a fabulous Tan, and equally striking bold Tan lines!.
    So we have great tanned legs, then the 'porcelain white band' where her swimsuit was.
    Likewise we have a tanned face, and arms, shoulders etc and a great tan on the top of the cleavage, then it stops, white band to the top of the ultralow cut bra line of the basque.
    She must have lived in like the most conservative bikini on the planet [50's style], for 2 weeks!
    Had she had a normal skimpy bikini on, no problem!
    If i don't solve it, she will get fired!
    Not a lack of interest in your post, but I was out, and tried to log in to this site; which I could do, on my iPad Air / 5 [whatever its the new one]. And tried to 'sign in' - but it just hung at the
    "Join Adobe Community" adobe sign in splash screen! with he little whell spinning around continuously!!!
    I have Safari on this iPad. Guess that is all it runs.
    So technology is not my friend today!

  • When I convert a PDF to a Word doc, it "converts" as a picture and I cannot edit the document. What can I do to get the PDF to convert properly?

    When I convert a PDF to a Word doc, it "converts" as a picture and I cannot edit the document. What can I do to get the PDF to convert properly?

    Hi conversionnewbie,
    Are you able to select the text in Word by triple-clicking inside the text box? (Sometimes text selections can be tricky in converted files.) If you can't select the text, then I'm guessing that the PDF was created from a scanned file (so the text becomes images). Make sure that OCR is enabled when you convert the file to Word. OCR is enabled by default in the ExportPDF web interface, but can be disabled in Adobe Reader. If you're converting to Word from within Adobe Reader, make sure that OCR is enabled and that the correct language is selected:
    Please let us know that works for you!
    Best,
    Sara

  • In iTunes I click on a song and when I click on the "get info" tab, it opens up but everything is gray - locked, therefore, I cannot edit the year or genre of the songs. Not every song is locked, only certain ones for some reason. Any help?

    In iTunes I click on a song and when I click on the "get info" tab, it opens up but everything is gray - locked, therefore, I cannot edit the year or genre of the songs. Not every song is locked, only certain ones for some reason. Any help?

    I ran into the same problem, I think that, If you tab on a song that is on your IPOD, and the song data is grayed-out, I think it means that the song is probably twice on your IPOD and that the iTunes directory can not edit THAT song data for two (or more) files @once. Check if this is the case, sinceI have the same problem,am looking for a way to have One and the same song in more playlists but only keep the song once on the IPOD.

  • Windows always "send to back" when I open an application, so I cannot edit anything

    Hi,
    I just updated my "OSX Snow Leopard" to OSX Lion last night. But something wrong with the windows when I first use the system today.
    When I only an application such as MAIL, after about a second, the window will be "send to back" automatically - the window became gray and I cannot edit anymore. That means I can use the window for one second then I have to clike the window again to let it in front!
    That drive me crazy. Any suggestions?
    Or just tell me how to reinstall the OSX Lion system!
    Thanks.

    You may have the Safari window in Full Screen mode.  This is where an app's window (Safari in this case) takes up the full screen, as a "space."  When you run another app, the Safari full screen space moves over to take you back to the Desktop space, to open the window for that other app.
    To take the Safari window out of Full Screen mode, move your mouse pointer to the top of the screen, to drop down the Menu Bar.  At the top right corner of the screen, cick the button with the two arrows pointing in.  This takes the window out of Full Screen mode, back to the Desktop space.

  • HT1386 I have just rceived an upgrade to an iPhone 3GS. Now, when I visit the Store all the prices are in US dollars, not a big problem but I cannot edit my card details or contact to a UK address. I cannot see how to change this.

    I have just rceived an upgrade to an iPhone 3GS. Now, when I visit the Store all the prices are in US dollars, not a big problem but I cannot edit my card details or contact to a UK address. I cannot see how to change this.

    Hi Roger
    Thank you for your reply.
    My original feed is: http://casa-egypt.com/feed/
    However, because I modified the feed http://feeds.feedburner.com/imananddinasbroadcast and nothing changed, I redirected it to another feed and then I deleted this feed.
    Is there any way to change the feed in itunes? The only feed I have now is  http://feeds.feedburner.com/CasaEgyptStation
    I tried to restore the feed http://feeds.feedburner.com/imananddinasbroadcast but feedburner refused.
    I know that I missed things up but I still have hope in working things out.
    Thanks is advance.
    Dina
    Message was edited by: dinadik

  • Does anyone know when a Scene Builder update is going to be released?

    This issue is driving me crazy.  Does anyone know when v2.0.1 of Scene Builder is supposed to be released?

    The issue you linked to is marked as fixed.
    You don't need wait for an official Scene Builder release (I have no idea when such a release may occur).
    You can build Scene Builder from source and you will pick up the release.

  • Hello i am using ms word when i open my saved documents but cannot edit anythings and all are option is hide .....so how to edit

    hello i am using ms word when i open my saved documents but cannot edit anythings and all are option is hide .....so how to edit

    Hi,
    In regarding of the issue, I need more information:
    Which Office and operation system do you use?
    Does the other Office suits encounter the issue?
    Does the issue occur in some special documents or every documents (even a new blank Word document)?
    Do you get some error message? Please upload some images about it if you can.
    Let's try some methods, check if they are helpful:
    a) Delete the Word Data registry subkey.
    1.Exit all Office programs.
    2.In Windows 8 or Windows 8.1, swipe in from the right edge of the screen, and then tap Search. (If you're using a mouse, point to the upper-right corner of the screen, move the mouse pointer down, and then click Search.) Type regedit in the search box, tap
    or click Apps, and then tap or click Run.
    Or, in Windows 7, Windows Vista or Windows XP, click Start, click Run, type regedit, and then click OK.
    3.Locate the following registry subkey, as appropriate for the version of Word that you are running:
    Word 2013
    HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Word\Data
    Word 2010
    HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Word\Data
    Word 2007
    HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Word\Data
    Word 2003
    HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\Data
    4.Click Data, and then click Export on the File menu.
    5.Name the file Wddata.reg, and then save the file to the desktop.
    6.On the Edit menu, click Delete, and then click Yes.
    7.Exit Registry Editor.
    8.Start Word.
    b) Start Word in
    safe mode, if it works fine, the issue may be caused by the add-ins, please try to check them one by one.
    c) Repair Office.
    http://office.microsoft.com/en-us/project-help/repair-office-programs-HA010357402.aspx
    For more detail information, please refer to the following link:http://support.microsoft.com/kb/921541/en-us
    Regards,
    George Zhao
    TechNet Community Support

  • When I send a picture by email taken from my 4gs, the recipient cannot edit it??

    when I send a picture by email taken from my 4gs, the recipient cannot edit it??

    The message remains in the Outbox?
    If so, any error message provided?
    If the message is in the account's Sent mailbox, this means the message was successfully sent.

  • Is there any way to enable editing when embedded in a browser?

    When I embed Acrobat Pro in the browser it seems to run in a limited mode that prevents most document editing.  It works fine when I access the document directly.
    Is there any way I can enable full editing in Acrobat pro when it is browser-embedded?
    Here's how it looks normally (excuse my choice of pdf)
    When embedded it loses its menus, it loses the Tools link in the top right, and most items in the Comment functions.
    It doubtless looses a lot more too.
    My preference would be to have a simple (browser-side) call I could make to re-enable all these functions.
    Note, I cannot add javascript to the pdfs.  I can only act in the browser.
    I'm starting to suspect I'll have to write a plugin, but I'd really rather avoid doing that if I can.  It's been years since I've had to seriously develop in C++, and one glance at it reminds me the headache it can be.
    For reference, browser embedded is key to my architecture, as the document will be being presented with a lot of ancillary information around it, and will need to save to a web-site, not to locally.
    (If anyone has any experience with writing a save-back-to-a-website script I'd love to know how that can be done too.)

    The plug-in has a limited number of features from the full product that are appropriate for web browsing, that is, viewing, filling in, printing,  and submitting data to a scripted web page. Since the vast majority of users cannot save the downloaded file back to the Web server this feature was not included because one is "browsing" not creating nor editing.
    Now if one is using a special web server like Microsoft's SahrePoint server it is possible to integrate the full Acrobat product to check out, lock form editing by others, for editing and then saving back to the SharePoint server and remove the lock. The reason for locking the file being edited is to prevent conflicts in the edited versions, sort of like locking Word or Excel files on a network server.
    You might want to consider all the issues involved in editing networked files which could be changed by multiple users at any time and the needs of the users to have some control over the changes.
    Do not over think this. You are using a "Browser" which only browses.

Maybe you are looking for

  • Portege M800 now is Satellite U400

    After Motherboard Replacement everest for windows reports my M800 as a Satellite U400. Can I modify this ? or i return my laptop to the service center. Thanks

  • How to create new spool request in smartforms??????

    hi all, i have to ctreate a new spool request for a smartform... The driver program for this smartform is a standard program. when i run the transaction, the spool for standard sap-script gets created but not for my smartform. the code is something l

  • Chagne in value of Serverice PR

    hi, I want to change the price of service activity in PR but system is not allowing to do so because PO has been made from that PR, what to do to change the price of service PR Regards Kalpesh

  • Links down Windows 7 Ultimate N

    hello happy day [link 1|http://hotfile.com/dl/17655766/3c85bb7/Win7-P-Retail-en-us-x86.exe.html] [link 2|http://msft-dnl.digitalrivercontent.net/msvista/pub/X15-79643/setup1.box] [link 3|http://msft-dnl.digitalrivercontent.net/msvista/pub/X15-79643/s

  • JTable & JComboBox - huge empty dropdown

    I was wondering if anyone experienced this. In my application, which has a JComboBox as CellEditor in a JTable, it rarely happens that when the dropdown list opens, it is huge (as tall as the screen or so) and it contains a few or no items. Since thi