No looking other folders

I post it here cuz only fx is causing this. If file is on other folder, netbeans is not seeing. Example:
scene.getStylesheets().add(MainLogin.class.getResource("Login.css").toExternalForm()); workis perfeclty if I have the css or whatever on the same folder, but
scene.getStylesheets().add(MainLogin.class.getResource("../css/Login.css").toExternalForm()); doesnt work. if I set the css or whatever on the the folder does not work.
has anyone experience that problems?
Edited by: 976966 on 28-dic-2012 18:45

The jar: protocol does not understand the concept of a .. path in a directory within a jar.
When you call getResource, it uses the protocol of the class loader used to load the class you are calling getResource from.
If you loaded the class from the file system using the file: protocol, then a relative url like .. will work.
If you loaded the class from a jar archive using the jar: protocol, then a relative url like .. will not work.
This is not a JavaFX specific thing though it might seem like it.
It appears that JavaFX is causing the issue because a NetBeans JavaFX project is packaged into a jar and executed from the jar archive, thus the class loader uses the jar: protocol.
Standard Java projects in NetBeans do not use the JavaFX packaging tools to create a jar and just run the application from the class files in the filesystem, thus the class loader uses the file: protocol.
Instead of trying to get a resource with a .. in it's path, use an absolute address or an address which is relative via a subdirectory to the path to the class you are getting the resource from.
For example, the following will all work:
MainLogin.class.getResource("Login.css").toExternalForm()      // fetch Login.css from the same directory as the MainLogin class.
MainLogin.class.getResource("css/Login.css").toExternalForm()  // fetch Login.css from the css subdirectory of the directory holding the MainLogin class.
MainLogin.class.getResource("/Login.css").toExternalForm()     // fetch Login.css from the root directory or the jar containing the MainLogin class.
MainLogin.class.getResource("/css/Login.css").toExternalForm() // fetch Login.css from the css subdirectory of the root directory or the jar containing the MainLogin class.

Similar Messages

  • Why can't I open emails in my inbox that arrived before today - I can open today's messages and I can open earlier emails tha are stored in other folders

    Yesterday I had a message that I could not "get mail" because my inbox was full and that I should delete some files or compact. It only had about 20 messages in it but I had ignored suggestions that I compact for a while so I went to the menu and hit compact. Then I could get mail and I could open it while it was in my inbox.
    This morning I got mail and I was able to look at it and I deleted quite a lot. A little later (I had restarted my computer in the meantime) I wanted to look at an email in my inbox. It appeared to open but had no content at all. Similarly when I looked at the message at the bottom of the screen it did not show there at all. The only messages in my inbox that I can look at are the two that arrived today.
    I am able to open messages that are stored in other folders. But moving a message from the inbox to a folder does not make it able to be opened.
    Another odd thing; in the inbox, one message that I can open shows the wrong sender - the sender of a message I had been moving to see if it could be opened if it were stored elsewhere; but the sender is correct when I open the message.
    It is all very weird.

    This sounds like you do have a corrupted Inbox file.
    First of all create a backup of your profile folder.
    http://kb.mozillazine.org/Thunderbird_:_FAQs_:_Backing_Up_and_Restoring
    Then try to repair Inbox.
    Right-click Inbox - Properties - Repair Folder

  • I am an absolute newcomer to Lightroom.  I have downloaded images from camera (OMD EM1) and divided them into folders.  Some folders work ok in Develop mode.  With other folders I get the words "This file could not be found".  What should I do

    As an absolute newcomer to Lightroom 5 I have downloaded images direct from camera (IOlympus EM-1) and divided them into folders. When I go into Develop mode, some folders can be developed ok , but with images from two other folders I get the message "This file could not be found".  What should I do?

    may i suggest opening the files in Olymous Viewer 3  and exporting them (you can do some editing there if you wish or not) asTIFF files. After that you can import the new files into LR. LR seems to like tiiff more than .orf files 
    The advantage to using OV3 is that it seems to do a much better job converting RAW EM1 files. Colors are more accurate ( my red flower pot turned orange when loaded directly into lightroom)
    . The tiff files just LOOK better in LR  after the conversion . there is a youtube on this subject and when i tried it myself i was impressed 

  • Preview pane no text wrapping and scrollbars missing, and how to copy corrected settings to other folders/make default?

    Hi, (this may be in the 353 items thrown up on a search of Mozilla support, but there seems to be a relevance/sort issue.)
    I don't want thunderbird to take up my whole screen. There are some problems when using a smaller window:
    1. TEXT NOT WRAPPING IN PREVIEW PANE: can you please advise the settings to make the text automatically wrap to the preview pane width? It goes off the edge. I don't want to have to scroll to see it or make my preview pane bigger. (I did this ages ago and need to do it again as I had to rebuild TB)
    3. COPY CUSTOM VIEW SETTINGS FOR ONE FOLDER TO OTHER FOLDERS OR SET AS DEFAULT: can you please advise instructions how to do this? (So I can apply my corrected settings to all other folders views!)
    2. DONE: VERTICAL AND HORIZONTAL SCROLL BARS IN PREVIEW PANE: (I solved this, this is for readers with the same problems!) The scrollbars will not show if the toolbars at the top of the preview pane are wider than the pane. (I think this is called a bug.) Workaround:
    (a) maximise thunderbird window/widen the preview pane to show all the buttons across the top of the preview pane.
    (b) click the x on the redundant navigation toolbar to remove from preview pane. (you can put all these buttons on the mail toolbar at the top of the whole window- click view, toolbars to show it).
    (c) right click on one of the reply/forward etc icons at the top of the preview pane. Click customise. select icons only.
    (d) resize the width of your preview pane to desired width, which can be quite narrow as long as it is wider than the toolbar (you'll see the scrollbar disappear when its too narrow).
    Thanks!

    '''re: Flowed text.'''
    Very odd you do not auto have this as it is usually set as default.
    check settings:
    'Tools' > 'Options' > 'Advanced' > 'General' tab
    Click on 'config Editor' button
    it will tell you to be careful :)
    In top search type: flow
    look for the following line:
    * mailnews.display.disable_format_flowed_support; Value = false
    * If it says 'True', double click on the line to toggle 'True' to 'False'
    If you send plain text and want it Flowed text then check this line as well
    * mailnews.send_plaintext_flowed; Value = true
    * If it says 'False', double click on the line to toggle 'False' to 'True'
    Close config Editor window - top right X
    click on OK to save changes to Options.

  • TS3899 Cannot see my mail in other folders/mailboxes I created. They disappeared!  Says NO MAIL

    Have created other folders/mailboxes and moved many files over to them.  Recently they all disappeared, NO MAIL appears. I can see my INBOX mail though!,
    Is there a quick fix?

    I too had this problem, it happend yesterday around noon. No idea what triggered it, but I know that it is happening to other people, message boards are peppered with strings of postss about this. Restarts and PRAM clearing didn't help me at all, nor did a mailbox rebuild. In other discussoins here, I see information about more techincal solutions, but they intimidate me, worried I will make matters worse.
    I have good news to report, but I suspect it won't help everyone who is having this problem.  But a few months ago, I bought an Apple Time Capsule and started using Time Machine (TM). It is a totally invisible operation, I more or less forgot that the Time Machine backups were happening, and I never really understood how they work. It turns out it is very easy to use. Well of course it is, Apple designed it!
    But I went in to the TM view of my backups, and chose one from mid-morning, which I believe was before the moment when my mailboxes went missing. Since I had my Mail Viewer Window open, TM seemed to know that I was looking for a backup of just that program's data, because it showed a small text box letting me know that it was installing the backup for my inbox. It took a little while, not sure, but at least ten minutes, maybe more, but when I came back to my computer, everything was there, exactly as it had been before the problem. Frankly I do not know if TM replaced other things on my computer with the mid-morning version. After doing a Check Mail, all my incoming mail was in place. The one thing I lost were my Sent mails in the short period between mid-morning and when I did this TM fix.
    So my Time Capsule and Time Machine paid off big-time for me yesterday. And now I would recommend that system to anyone who, like me, is not a huge computer geek, but who has huge amounts of data that they depend on.
    Of course, for anyone who is suffereing this bizarre problem, and who perhaps doesn't use Time Machine (I didn't until very recently), I hope you find another solution. Maybe looking thru you rmore traditional backup systems and finding a recent backup that  you can somehow meld in to your current Mail inbox.
    Peter

  • Mail Dock icon only shows when Inbox has new mail, not other folders.

    Hi
    I've got Rules set up for Mail to move new mail to various folders on receipt, depending on the nature of the emails.
    However the Mail icon in the Dock only indicates when new messages are in the Inbox, not other new emails which might be in other folders waiting to be read.
    Is there some way to fix this so that it notifies me of all new emails?
    Any help would be greatly appreciated.
    Thanks
    Richard

    Are you running leopard?
    Under preferences on my mail (version 3.1.1 i think) then the 'general' tab there is an option "dock unread count" which you can set to inbox/none or all mailboxes.
    I don't remember this being an option under Tiger but it may be worth looking for if you're not on Leopard.
    Hope this helps

  • Macos X changes Folder view of other folders

    When i open a folder and set it from ICON view to LISt view... I looked at other folders and i noticed those folders change too. This is a weird bug. Doesn't bother me that much but it does bother .
    I'm using macos x 10.6.2

    People kept complaining about not being able to set a universal view for their folders. So Apple responded with a new way of handling folder views. I don't think much of it, but no one asked me.
    Anyway, now when you want a folder to always open in a specific view you have to explicitly set it using View Options for the folder, and checking the box at the top. Otherwise whatever view you last used will be used for all folders you open after you choose the view, unless the folder has a specified view.
    Francine
    Francine
    Schwieder

  • HT6030 Having major Mail problems since I updated Maverick on my 27" iMac. Delays deleting emails and moving emails to other folders. Anyone else having this issue? If so, any known fixes?

    I have an iMac that around 3 years old. Just installed Mavericks when it first was released. I also have a Time Capsule (2TB) that runs my network to my other three Apple devices: iPad2, iPhone 5s and a new Apple TV. Having major Mail issues here. Everything is very delayed and extremely slow. Moving emails to other folders sometimes takes a few minutes and the same goes for deleting emails. Delete them and they don't go into the trash for several minutes. It's getting very frustrating to say the least. Mail also quits very often. Mail also will freeze with the little color ball spinning, therefore I would have to force quit Mail. When the errors occur, it's automatically sent to Apple but there hasn't been an update since 10.9.1 that has fixed it. Apparently, that update was only for gmail issues. Anyone having the same problem? Fixes please?

    I have my entire network and all Apple devices setup as IMAP, not POP. If your settings are setup as a POP account on all devices, emails will not erase when deleted on your other devices. Just something to keep in mind. I'm sure you're aware of this but just wanted to throw it out there. Google IMAP vs POP. However, it seems like your having the same issues as I am. I'm going to swing by an Apple store by me and speak to the genius bar and see if they can come up with something or are aware of this issue. Keep you posted.

  • Other folders in Mail for Excahange

    Hi
    I just bought E 71 and configured Mail for exchange. It is working perfect. I have many folders in my exchange email account and all are handled by exchange rules and my problem is i am getting only those emails which are coming in inbox and not getting those emails which i am getting for other folders.
    For example
    I have 2 folders in my exchange email account. One is inbox and another is Sales. I have configured Sales folder in this way if any email come from any client email address so it will directly got to Sales folder by using rules. Now the problem is i am not getting email from sales folder. Please help me.

    no help for this I think.. MfE does support only Inbox folder. maybe next versions..
    But could you get new email to MfE even it was NOT opened in Outlook/OWA?
    see /discussions/board/message?board.id=messaging&thread.id=9294
    If yes what version of Mfe do you have?
    (E51 - my 1st nokia)

  • How can I remove all Time Machine data from an external HD, while retaining the other folders/files on the disk?

    I recently replaced my old Macbook Pro with a new Macbook Pro Retina.
    The original MBP had Time Machine set up on an external HD, and I also had some manually saved/backed up files (stuff that didn't need incremental backups; very old stuff) on the disk as well, in folders.  This worked fine and well for the life of the original MBP.
    When I set up the MBPr, I did not elect to transfer everything over from a Time Machine disk, as I wanted a Fresh Install; I chose to just re-download/install the apps  I needed from the App Store.  Much cleaner, more stable.  I updated to Yosemite immediately so, it gave me more of a  clean install.
    The problem is, Time Machine now won't read any Time Machine backups from that disk.  Migration assistant can pull data from it, but it's a bit wonky.  It was easier to just manually copy over what I needed.
    Now, I just want to "reset", and completely remove the old Time Machine data from the external hard drive, since it is completely useless to me now (I can't access it on this computer, and it's taking up space).  I want to remove the Time Machine data, as if it were never there, but keep my other folders/files that are on the disk (so, a format is not feasible).
    I will then set the disk up as a new, fresh Time Machine disk for the new MBPr. 
    What is the proper method for removing Time Machine data from an external disk (which doesn't seem to be associated with this machine anyway)?  I know a simple rm -rf will cause problems.
    Thanks for any help provided.

    See the yellow box in #12 of Time Machine - Frequently Asked Questions (or use the link in *User Tips* at the top of this forum).

  • I want to know how to take music out of other folders in my iTunes...

    I can't take music from other folders on my iTunes and put them on my iPod. I want to know how I can do this, because I feel like I have tried everything but I may not have tried everything. Can someone tell me how I can go about doing this; taking music from another folder and or file from my iTunes and put them onto my iPod.

    Your post is somewhat confusing. If all of your music is in your iTunes music folder, it should sync to your iPod. If you have music on your system's HD that is not in iTunes, you will need to use the "add file or folder" function in iTunes to bring these other files into the iTunes music folder.

  • How can I preserve the date and time of photos when moving them from iPhone to iPhoto and then to other folders on my computer?

    In the past I’ve had no problem moving photos from my iPhone 4 into various folders on my computer while retaining their original date and time. I would import into iPhoto, then drag the photos from iPhoto into other folders via the Finder or Adobe Bridge (which is my principal image organizer). The original date and time of the photo would always travel with the jpeg into iPhoto and then into other folders. However, sometime during a recent session transferring photos in this way, the dates of the photos started to change at the point when I copied them out of iPhoto. Within iPhoto itself, the various original dates of the photos are retained. But in Finder and Bridge, copies of those same photos all carry the same (worthless) date: the date and time that they were imported from my iPhone. I can’t figure out what would have changed on my Mac to make it start re-dating my photos. I was happily dragging and dropping photos, and suddently I started to lose the original dates. Did I inadvertently change some settings? (I am running OS 10.6.8 and using iPhoto 8.)

    (I use iPhoto only to import from my iPhone; I organize all my images, including thousands of RAW files, in folders on a big external drive.)
    Why are you using iPhoto at all? use image capture or drag and drop the photos
    The problem is that the files I am copying are getting stripped of the EXIF metadata
    eliminating iPhoto from your work flow will eliminate one oppertunity to have this happen  For photos in iPhoto it is best to export them rather than drag an drop them - this assures your EXIF and IPTC data is correct and uptodate
    Why would I be able, over many years, to retain EXIF metadata in photos imported from an iPhone--then one day find that the same workflow strips such photos of EXIF data?
    Because exporting is the supported way to "export" photos - I never drag and drop photos out of iPhoto and I never use thrid party programs on the photos in the iPhoto library - try exporting as suggested above and see if that is the solution
    LN

  • My bookmark folder names keep changing, sometimes when I make a new folder it will change the name of other folders to the new folder's name, how do I stop this?

    I sort all of my book marks into folders with subfolders. Sometimes, for reasons I haven't figured out yet, when I create a new folder or subfolder other folders names will be changed to that same name. Why does this keep happening & how do I get it to stop? This has been happening to me for a while even though I have installed newer versions & updated them, is this just a bug with the newer versions of Firefox? For example, I had a folder with my husbands's name, in the bookmark menu for all his ...I created a new subfolder called phys ed in my education folder ...my husband's folder was renamed to phys ed, also.

    This can be a problem with the file places.sqlite that stores the bookmarks and the history.
    * http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    * http://kb.mozillazine.org/Bookmarks_not_saved

  • I cannot see my Iphone 4 in my device window in the finder anymore.  It use to appear so I could copy the camera pictures off of it and transfer them to other folders.  Does anyone have and idea how to get it back when you plug it in initially.  Thanks

    I cannot see my Iphone 4 in my device window in the finder anymore.  It use to appear so I could copy the camera pictures off of it and transfer them to other folders.  Does anyone have and idea how to get it back when you plug it in initially.  Thanks

    You will want to open iPhoto, go to the iPhoto menu and select Preferences. Under the General tab, next to Connecting camera opens: select iPhoto. Close the preferences and quit iPhoto. Reconnect your iPhone 4. iPhoto should open automatically and offer to import your pictures. Import them and then do what you want with them.
    Best of luck.

  • Inbox emails downloaded in Outlook 2013 but not my others folders emails they r showing empty in outlook

    Inbox emails downloaded in Outlook 2013 but not my others folders emails they r showing empty in outlook

    Hi,
    What’s your account type using in Outlook? IMAP account or Exchange account?
    Please make sure your Outlook 2013 is updated to the latest version. Then click Send/Receive > Send/Receive All Folders to manually download mailbox data files from mail server to Outlook data file. If it fails, please recreate the IMAP account in Outlook
    to have a try:
    http://support.microsoft.com/kb/829918
    Additionally, if you are using IMAP account, we can also refer to the following article for more IMAP Syncing issue troubleshooting:
    http://www.msoutlook.info/question/840
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please
    make sure that you completely understand the risk before retrieving any suggestions from the above link.
    Regards,
    Winnie Liang
    TechNet Community Support

Maybe you are looking for

  • Showing selected parameters values on each page in SSRS

    Hi All, I have a SSRS report with multi-selection parameter..Basically it's a summary report of sales and based on country parameter I have to show data. let say Country is the parameter and below are the values of the Country parameter list... Param

  • Error trying to extract data via HFM objects

    I've written a program to extract selected data from HFM (version 11.1.1.3.500) using the API objects. The program (shown at the bottom of this post) is failing on the 2nd of the following 2 lines: oOption = oOptions.Item(HSV_DATAEXTRACT_OPT_SCENARIO

  • Can't Open Flash Pro CS5

    I just installed the 30-day trial version of Adobe Flash Pro CS5 on my HP laptop (I'm using Windows XP Professional) and every time I try to open it it says that "Adobe Flash CS5 has encountered a problem and needs to close." I need this for my job a

  • Mac Mini Compatible with Sony SDM-HX93/B 19" Monitor?

    Hello, I am researching the Mac Mini and am curious if it is compatible with the Sony SDM-HX93/B 19" monitor. Any help is greatly appreciated. Thanks!

  • Only one root tag is allowed.

    I'm trying to run the following (from Flex 2.0 Online help) : <?xml version="1.0"?> <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml"> <mx:XML id="capitals" format="e4x"> <Capitals label="U.S. State Capitals"> <capital label="AL" value="Mont