Application: Loading images
How do I find the directory where the application is running from? With applets I use getDocumentBase(), but how do I do it with an application? I need it for loading images and other files to use within the application.
Audun Steinholm
private String iName = ".\\spr\\Dark.gif";
this points to the file name dark.gif, which resides in the sub directory Spr, which resides in the directory from which the application was run.
for instance, if i ran the executable jar from C:\programs\java
it would look like
c:\programs\java\program.jar
C:\programs\java\spr\dark.gif
does that make sense?
Similar Messages
-
Why does my Java application load images so slowly?
Hi all,
I am new here and know very little about Java. I am a meteorologist and have to load all kinds of weather model images in Java applications. On some computers (like my wife's laptop) the Java application opens and loads up the 40+ images and then loops them for viewing....taking about 30 seconds....no problem. But on most of the computers I have to use it takes up to 5 minutes or more! Here is a link of a typical sequence of images I would look at....
[http://www.nco.ncep.noaa.gov/pmb/nwprod/analysis/namer/gfs/12/index_slp_su_loop.shtml]
The ISP and bandwidth can be exactly the same, but something...a setting or a platform is different on the computer that causes it to slow WAY down. It is very aggravating because I have looked high and low across the Internet looking for a reason.
Does anyone have a possible reason and/or solution to this problem?
Thanks,
Eddie44deviance wrote:
Ive create class extends JFrame I'm betting that extending JPanel would have been a much better idea. You didn't add anything to JFrame from your new class.
and its takes 4 seconds to create new object...(and there somthing like 4 loops...)4? Oh, my. A prime number would be faster.
how can i make it run faster?Give it some HGH or steroids. It worked for Barry Bonds and Roger Clemens and Marion Jones; maybe it'll work for your code.
% -
Loading Images in Applications
Hi.
I know how to load images in applets with the getImage method that comes with the Applet class, but I cant seem to find a way to do it in an application.
I found a Toolkit class, but that required me to extend it when I am already extending the Frame class.
The Frame class comes with a getImage method, but that requires a getCodeBase() method that comes with the applet class.
How would I get an image using an application?
Thanks in advanced
Glen.You don't need to extends Toolkit to impelement its abstract method. you can get default Toolkit by calling static method in Toolkit, getDefaultToolkit().
Toolkit kit = Toolkit.getDefaultToolkit(); -
Loading images in an application
hi guys hope you can help me, im currently indulge in application programming and i need to load images in an application, i use a JTabbedPane as my main component so i use 4 panels to differentiate the different sections of my the JTabbedPane my problem is i need to display different images on each panels(diff images on 4 diff panels of the JTabbedPane....how will i do this? ope you can give me an idea.....thank you very much and God Bless us All!
You can load different images by using
Image testImage = new ImageIcon("c:\testimage.gif").getImage();this.
Hope this serves your needs. -
Why won't safari load images and connect to websites?
We've had this problem intermittently for several months. When visiting SOME websites (though never the same ones twice) instead of loading images, it comes up with a blue question mark in a box. if we try to reload the page, it will do one of two things: it will either reload exactly the same, or, it will reload in a format that shows vertical written links - no images. it almost looks like programming language, but it's readable.
also, when we go between links, we often get the message that "safari can't find the server". this is, again, erratic. If i try to go directly to the same website by typing in the address in the bar, i will get the connection. (so, if i go from youtube for example to try to connect to another website it won't work. but if i try to go directly to that website by just typing in the address myself, i can get it.) as i said, it doesn't always happen, but when it does it's a real pain!
lately, i've had a new problem too, which seems to relate: when using hulu.com, it will not load the show saying it is unavailable and to clear my cache. I've done that... and it still won't reload. yet, when i go to google, and search hulu.com, and go to the website that way, i can get to the show page no problem. Or, i have to quit safari and then go back to hulu and, again, no problem.
sometimes we can go for days without the problem, sometimes not.
any ideas on how to help this problem would be MOST appreciated! thanksblue question mark in box
Go to Safari > Preferences then select the Appearance tab. Make sure Display images when the page opens is selected.
For server issues, try turning off the router for a few minutes, then restart it.
Hulu requires the Flash plugin. Uninstall your current copy of Flash, then reinstall > Troubleshoot Flash Player | Mac OS
Try emptying the Safari cache more often.
And reset Safari. From your Safari menu bar click Safari > Reset Safari. Select the top 5 boxes, click Reset.
And how much free space on the startup disk? Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure there's a minimum of 15% free disk space.
Try Safari in another user account. Same problems there, then log back into your admin account, launch Disk Utility. /Applications/Utilities
Select the startup disk in the panel on the left then select the First Aid tab.
Click: Verify Disk (not Verify Disk Permissions). If the startup disk needs repairing, follow the instructions for Using Disk Utility to verify or repair disks -
Issues with Apple's Application Loader
I have been having some issues delivering my ePub to iBooks through Apple's Application Loader device. I've contacted Adobe, who says my file is fine. Then Apple, who says there is an issue with my file. Then back to Adobe, who says their help ends with inDesign. Then back to Apple, who says I have to talk to Adobe.
Ever since kicking us publishers off Adobe DPS, I have been having unanswered issues with producing iBooks, which is the way that we have to produce inDesign files now. Namely, I get an issue saying an image, that isn't in my inDesign file, is too big to upload to Application Loader.
Has anyone had similar issues? Please help?Hello suecheat
Check out the article below to continue troubleshooting your issues with sending mail. You will use Connection Doctor to find out the specific issue.
OS X Mail: Troubleshooting sending and receiving email messages
http://support.apple.com/kb/TS3276
Regards,
-Norm G. -
Handheld application loader encountered a problem and needs to close
This problem has been occurring for months for me now, and still, I have not found a solution. There used to be no problem. The solutions I found online including in this forum do not work for me. I have uinstalled and reinstalled all bb softwares on my computer, I have deleted the apploader files, i have restored my XP computer to its factory settings and updated everything from scratch, from SP1 to SP3, and still, no solution is in sight.
I copied the error log which is found below: I hope somebody can decipher this and offer a solution;
Thanks.
Loader caused an Illegal Instruction (0xc000001d)
in module Loader.exe at 001b:0055a360 CurrentThread:00000E4C.
Exception handler called in Loader.
Error occurred at 4/30/2012 20:37:18.
C:\Program Files\Common Files\Research In Motion\AppLoader\Loader.exe, run by Owner.
Operating system: Microsoft Windows XP Home Edition Service Pack 3 (build 2600).
1 processor(s), type 586.
52% memory in use.
1472 MBytes physical memory.
700 MBytes physical memory free.
3372 MBytes paging file.
2603 MBytes paging file free.
2048 MBytes user address space.
1964 MBytes user address space free.
Context:
EDI: 0x00000000 ESI: 0x0017eb4c EAX: 0x02dffc78
EBX: 0x00000000 ECX: 0x02dffcc0 EDX: 0x01eaa0c0
EIP: 0x0055a360 EBP: 0x02dffd18 SegCs: 0x0000001b
EFlags: 0x00010206 ESP: 0x02dffc78 SegSs: 0x00000023
Bytes at CS:EIP:
66 0f d6 00 f3 0f 7e 41 08 8b 4a 10 56 c7 44 24
Stack:
0x02dffc78: 0017eb4c 00000000 02dffc90 77e88519 L..............w
0x02dffc88: 02dffc90 0017eb4c 00000000 0055bf80 ....L.........U.
0x02dffc98: 02dffcf4 02dffcc0 0da8226c 016bddd8 ........l"....k.
0x02dffca8: 016bddd8 00000000 7c910222 7c91019b ..k....."..|...|
0x02dffcb8: 7c9101db 7c9100c4 015b0000 00000000 ...|...|..[.....
0x02dffcc8: 00000000 7c910222 00000025 00150d78 ...."..|%...x...
0x02dffcd8: 00150000 0017a308 02dffcd0 00000000 ................
0x02dffce8: 00000000 0017eb4c 020fa918 ffffffff ....L...........
0x02dffcf8: 00000012 0017e954 0017cb5c 0017d31c ....T...\.......
0x02dffd08: 02dffca0 02dfff98 007f43b0 00000004 .........C......
0x02dffd18: 00000000 00000001 02dffdbc 00000000 ................
0x02dffd28: 00000001 7c900000 7c9000d0 02dffd24 .......|...|$...
0x02dffd38: 00000001 02dffd5c 7c910385 7c900000 ....\......|...|
0x02dffd48: 00000000 02dffe18 7c917c02 7c900000 .........|.|...|
0x02dffd58: 02dffdbe 00dffdb8 02dffdb8 02dffdbe ................
0x02dffd68: 7c917ca7 7c97e174 7c917c51 00006d19 .|.|t..|Q|.|.m..
0x02dffd78: 02dffe5c 7c809036 7c917c51 00006d19 \...6..|Q|.|.m..
0x02dffd88: 02dffe6c 7c903400 898cf301 00000000 l....4.|........
0x02dffd98: 02dffed4 7c900000 00000000 02dffdbc .......|........
0x02dffda8: 02dffdbc 00000000 00009a5e 00251f18 ........^.....%.
0x02dffdb8: 7c9132ff 74520000 6365446c 5065646f .2.|..RtlDecodeP
0x02dffdc8: 746e696f 74007265 6365446c 5065646f ointer.tlDecodeP
0x02dffdd8: 746e696f 00007265 0076fa1d 7c910060 ointer....v.`..|
0x02dffde8: 7c8106f9 0000001b 00000200 02dffffc ...|............
0x02dffdf8: 00000023 00007fc1 02dffd74 00000000 #.......t.......
0x02dffe08: 02dfff24 7c90e920 7c917c58 ffffffff $... ..|X|.|....
0x02dffe18: 7c917c51 7c917e8f 7c900000 02dffe5c Q|.|.~.|...|\...
0x02dffe28: 00006d19 02dffed4 00000000 00000000 .m..............
0x02dffe38: 00000001 02dffed8 00000000 00000001 ................
0x02dffe48: 7c800000 7c8000f0 02dffe40 00000001 ...|...|@.......
0x02dffe58: 02dffe78 00110010 7c80903c 00000000 x.......<..|....
0x02dffe68: 02dfff34 7c917c02 7c800000 7c900000 4....|.|...|...|
0x02dffe78: 00000005 02dffed4 02dffeda 7c917ca7 .............|.|
0x02dffe88: 7c97e174 7c90df4a 7c809590 7ffd8000 t..|J..|...|....
0x02dffe98: 02dfff28 7c8095d2 02dffed4 7c8095c0 (......|.......|
0x02dffea8: 00000000 020fa918 00000000 00000218 ................
0x02dffeb8: 00000028 00000234 015b0000 02dffcbc (...4.....[.....
0x02dffec8: 00000000 02dfff98 7c90e920 7c9101e0 ........ ..|...|
0x02dffed8: ffffffff 7c9101db 00772690 015b0000 .......|.&w...[.
0x02dffee8: 00000000 00000020 016bddd8 00000000 .... .....k.....
0x02dffef8: 016bddd8 02dfff14 0077101e 00000020 ..k.......w. ...
0x02dfff08: 0040fc65 00000000 02dffea8 02dfffa8 e.@.............
0x02dfff18: 0da8226c 02dfffa8 00554c9d 280ec6c6 l".......LU....(
0x02dfff28: 00000800 016bddd8 00490f8b 00000003 ......k...I.....
0x02dfff38: 280ec6c6 0001c200 0048f500 016bddd8 ...(......H...k.
0x02dfff48: 024e6b98 02dfffa8 00000000 00000001 .kN.............
0x02dfff58: 00492a9e 024e6b98 0001d5c0 024e6b98 .*I..kN......kN.
0x02dfff68: 00000218 00000230 00000234 0076f9f7 ....0...4.....v.
0x02dfff78: 00000000 0da820dc 0001d5c0 024e6b98 ..... .......kN.
0x02dfff88: 024e6b98 c000001d 02dfff7c 02dff894 .kN.....|.......
0x02dfff98: 02dfffdc 00773300 0ff9ebf4 00000000 .....3w.........
0x02dfffa8: 02dfffb4 0076fa9f 00000002 02dfffec ......v.........
0x02dfffb8: 7c80b729 024e6b98 0001d5c0 00000002 )..|.kN.........
0x02dfffc8: 024e6b98 7ffd8000 c000001d 02dfffc0 .kN.............
0x02dfffd8: 02dff8a4 ffffffff 7c839ad8 7c80b730 ...........|0..|
0x02dfffe8: 00000000 00000000 00000000 0076fa1d ..............v.
0x02dffff8: 024e6b98 00000000 .kN.....
Module 1
C:\WINDOWS\system32\Normaliz.dll
Image Base: 0x00400000 Image Size: 0x00009000
Checksum: 0x00010188 Time Stamp: 0x44a3ec46
File Size: 23552 File Time: 1/7/2009 17:20:36
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: Unicode Normalization DLL
FileVer: 6.0.5441.0
ProdVer: 6.0.5441.0
Module 2
C:\Program Files\Common Files\Research In Motion\AppLoader\Loader.exe
Image Base: 0x00400000 Image Size: 0x0091f000
Checksum: 0x0092100a Time Stamp: 0x4ddeb6d9
File Size: 9507672 File Time: 5/26/2011 16:34:24
Version Information:
Company: Research In Motion Limited
Product: RIM Handheld Application Loader
FileDesc: Handheld Application Loader Wizard
FileVer: 6.0.1.33
ProdVer: 6.0.1.33
Module 3
C:\WINDOWS\system32\xpsp2res.dll
Image Base: 0x00010000 Image Size: 0x002c5000
Checksum: 0x002ca420 Time Stamp: 0x4802454c
File Size: 2897920 File Time: 4/13/2008 22:09:26
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: Service Pack 2 Messages
FileVer: 5.1.2600.5512
ProdVer: 5.1.2600.5512
Module 4
C:\Program Files\Common Files\Research In Motion\RIMDeviceManager\RIMDeviceManagerps.dll
Image Base: 0x10000000 Image Size: 0x00009000
Checksum: 0x0000602b Time Stamp: 0x4eb2eec8
File Size: 23888 File Time: 11/3/2011 15:44:16
Version Information:
Company: Research In Motion Limited
Product: RIM Handheld Communications Manager
FileDesc: RIM Handheld Communications Manager Proxy
FileVer: 6.0.0.40
ProdVer: 6.0.0.40
Module 5
C:\Program Files\Common Files\Research In Motion\USB Drivers\BbDevMgrPs.dll
Image Base: 0x10000000 Image Size: 0x00044000
Checksum: 0x0004f6e7 Time Stamp: 0x4e2e3940
File Size: 270336 File Time: 7/25/2011 23:49:24
Version Information:
Company: Research In Motion Limited
Product: RIM handheld driver
FileDesc: RIM handheld device manager proxy stub
FileVer: 4.2.0.15
ProdVer: 4.2.0.15
Module 6
C:\DOCUME~1\Owner\LOCALS~1\Temp\IadHide4.dll
Image Base: 0x10000000 Image Size: 0x00006000
Checksum: 0x00000000 Time Stamp: 0x3e21ad68
File Size: 24576 File Time: 10/11/2003 00:26:42
Version Information:
Company: BackWeb
Product: BackWeb IAdHide
FileDesc: IAdHide
FileVer: 6.2.3.66
ProdVer: 6.2.3.66
Module 7
C:\WINDOWS\system32\WININET.dll
Image Base: 0x3d930000 Image Size: 0x000e6000
Checksum: 0x000e6621 Time Stamp: 0x4f4f570c
File Size: 916992 File Time: 3/1/2012 06:01:32
Version Information:
Company: Microsoft Corporation
Product: Windows® Internet Explorer
FileDesc: Internet Extensions for Win32
FileVer: 8.0.6001.19222
ProdVer: 8.0.6001.19222
Module 8
C:\WINDOWS\system32\iertutil.dll
Image Base: 0x3dfd0000 Image Size: 0x001eb000
Checksum: 0x001f40fd Time Stamp: 0x4f4f570f
File Size: 2000384 File Time: 3/1/2012 06:01:32
Version Information:
Company: Microsoft Corporation
Product: Windows® Internet Explorer
FileDesc: Run time utility for Internet Explorer
FileVer: 8.0.6001.19222
ProdVer: 8.0.6001.19222
Module 9
C:\WINDOWS\system32\XmlLite.dll
Image Base: 0x47060000 Image Size: 0x00021000
Checksum: 0x00023525 Time Stamp: 0x44b7bdb6
File Size: 121856 File Time: 1/7/2009 17:21:04
Version Information:
Company: Microsoft Corporation
Product: Microsoft XML Core Services
FileDesc: Microsoft XmlLite Library
FileVer: 1.0.1018.0
ProdVer: 1.0.1018.0
Module 10
C:\WINDOWS\system32\WINHTTP.dll
Image Base: 0x4d4f0000 Image Size: 0x00059000
Checksum: 0x00065a8d Time Stamp: 0x4ec3c6f8
File Size: 354816 File Time: 11/16/2011 09:21:44
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: Windows HTTP Services
FileVer: 5.1.2600.6175
ProdVer: 5.1.2600.6175
Module 11
C:\WINDOWS\system32\uxtheme.dll
Image Base: 0x5ad70000 Image Size: 0x00038000
Checksum: 0x0004533d Time Stamp: 0x4802a11e
File Size: 218624 File Time: 4/14/2008 04:42:10
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: Microsoft UxTheme Library
FileVer: 6.0.2900.5512
ProdVer: 6.0.2900.5512
Module 12
C:\WINDOWS\system32\WS2HELP.dll
Image Base: 0x71aa0000 Image Size: 0x00008000
Checksum: 0x0000925f Time Stamp: 0x4802a164
File Size: 19968 File Time: 4/14/2008 04:42:12
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: Windows Socket 2.0 Helper for Windows NT
FileVer: 5.1.2600.5512
ProdVer: 5.1.2600.5512
Module 13
C:\WINDOWS\system32\WS2_32.dll
Image Base: 0x71ab0000 Image Size: 0x00017000
Checksum: 0x0001f020 Time Stamp: 0x4802a163
File Size: 82432 File Time: 4/14/2008 04:42:12
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: Windows Socket 2.0 32-Bit DLL
FileVer: 5.1.2600.5512
ProdVer: 5.1.2600.5512
Module 14
C:\WINDOWS\system32\MSCTF.dll
Image Base: 0x74720000 Image Size: 0x0004c000
Checksum: 0x000492ef Time Stamp: 0x4802a12c
File Size: 297984 File Time: 4/14/2008 04:42:00
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: MSCTF Server DLL
FileVer: 5.1.2600.5512
ProdVer: 5.1.2600.5512
Module 15
C:\WINDOWS\system32\IMM32.DLL
Image Base: 0x76390000 Image Size: 0x0001d000
Checksum: 0x0002921b Time Stamp: 0x4802a0e7
File Size: 110080 File Time: 4/14/2008 04:41:56
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: Windows XP IMM32 API Client DLL
FileVer: 5.1.2600.5512
ProdVer: 5.1.2600.5512
Module 16
C:\WINDOWS\system32\COMDLG32.dll
Image Base: 0x763b0000 Image Size: 0x00049000
Checksum: 0x0004edb8 Time Stamp: 0x4802a0c9
File Size: 276992 File Time: 4/14/2008 04:41:52
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: Common Dialogs DLL
FileVer: 6.0.2900.5512
ProdVer: 6.0.2900.5512
Module 17
C:\WINDOWS\system32\WINMM.dll
Image Base: 0x76b40000 Image Size: 0x0002d000
Checksum: 0x00038fb7 Time Stamp: 0x4e984b81
File Size: 176128 File Time: 10/14/2011 09:47:30
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: MCI API DLL
FileVer: 5.1.2600.6160
ProdVer: 5.1.2600.6160
Module 18
C:\WINDOWS\system32\DNSAPI.dll
Image Base: 0x76f20000 Image Size: 0x00027000
Checksum: 0x0002a794 Time Stamp: 0x4d6f3b57
File Size: 149504 File Time: 3/3/2011 01:55:20
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: DNS Client API DLL
FileVer: 5.1.2600.6089
ProdVer: 5.1.2600.6089
Module 19
C:\WINDOWS\system32\CLBCATQ.DLL
Image Base: 0x76fd0000 Image Size: 0x0007f000
Checksum: 0x0007aa0b Time Stamp: 0x4802a0b9
File Size: 498688 File Time: 4/14/2008 04:41:52
Version Information:
Company: Microsoft Corporation
Product: COM Services
FileDesc:
FileVer: 2001.12.4414.700
ProdVer: 3.0.0.4414
Module 20
C:\WINDOWS\system32\COMRes.dll
Image Base: 0x77050000 Image Size: 0x000c5000
Checksum: 0x000cd041 Time Stamp: 0x4802a0ce
File Size: 792064 File Time: 4/14/2008 04:41:52
Version Information:
Company: Microsoft Corporation
Product: COM Services
FileDesc:
FileVer: 2001.12.4414.700
ProdVer: 3.0.0.4414
Module 21
C:\WINDOWS\system32\OLEAUT32.dll
Image Base: 0x77120000 Image Size: 0x0008b000
Checksum: 0x0008d7c1 Time Stamp: 0x4d0f931f
File Size: 551936 File Time: 12/20/2010 12:32:16
Version Information:
Company: Microsoft Corporation
Product:
FileDesc:
FileVer: 5.1.2600.6058
ProdVer: 5.1.2600.6058
Module 22
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.6028_x-ww_61e65202\COMCTL32.dll
Image Base: 0x773d0000 Image Size: 0x00103000
Checksum: 0x00107dd2 Time Stamp: 0x4c729dd1
File Size: 1054208 File Time: 8/23/2010 11:12:02
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: User Experience Controls Library
FileVer: 6.0.2900.6028
ProdVer: 6.0.2900.6028
Module 23
C:\WINDOWS\system32\ole32.dll
Image Base: 0x774e0000 Image Size: 0x0013e000
Checksum: 0x00146eee Time Stamp: 0x4eb0192e
File Size: 1288704 File Time: 11/1/2011 11:07:10
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: Microsoft OLE for Windows
FileVer: 5.1.2600.6168
ProdVer: 5.1.2600.6168
Module 24
C:\WINDOWS\system32\SETUPAPI.dll
Image Base: 0x77920000 Image Size: 0x000f3000
Checksum: 0x000f1928 Time Stamp: 0x4802a10b
File Size: 985088 File Time: 4/14/2008 04:42:06
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: Windows Setup API
FileVer: 5.1.2600.5512
ProdVer: 5.1.2600.5512
Module 25
C:\WINDOWS\system32\VERSION.dll
Image Base: 0x77c00000 Image Size: 0x00008000
Checksum: 0x00012c70 Time Stamp: 0x4802a11d
File Size: 18944 File Time: 4/14/2008 04:42:10
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: Version Checking and File Installation Libraries
FileVer: 5.1.2600.5512
ProdVer: 5.1.2600.5512
Module 26
C:\WINDOWS\system32\msvcrt.dll
Image Base: 0x77c10000 Image Size: 0x00058000
Checksum: 0x00057341 Time Stamp: 0x4802a188
File Size: 343040 File Time: 4/14/2008 04:42:02
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: Windows NT CRT DLL
FileVer: 7.0.2600.5512
ProdVer: 6.1.8638.5512
Module 27
C:\WINDOWS\system32\ADVAPI32.dll
Image Base: 0x77dd0000 Image Size: 0x0009b000
Checksum: 0x000a5bb8 Time Stamp: 0x49901d48
File Size: 617472 File Time: 2/9/2009 07:10:48
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: Advanced Windows 32 Base API
FileVer: 5.1.2600.5755
ProdVer: 5.1.2600.5755
Module 28
C:\WINDOWS\system32\RPCRT4.dll
Image Base: 0x77e70000 Image Size: 0x00093000
Checksum: 0x000985cf Time Stamp: 0x4c68fa8c
File Size: 590848 File Time: 8/16/2010 03:45:00
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: Remote Procedure Call Runtime
FileVer: 5.1.2600.6022
ProdVer: 5.1.2600.6022
Module 29
C:\WINDOWS\system32\GDI32.dll
Image Base: 0x77f10000 Image Size: 0x00049000
Checksum: 0x0004ce95 Time Stamp: 0x49006fbe
File Size: 286720 File Time: 10/23/2008 07:36:14
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: GDI Client DLL
FileVer: 5.1.2600.5698
ProdVer: 5.1.2600.5698
Module 30
C:\WINDOWS\system32\SHLWAPI.dll
Image Base: 0x77f60000 Image Size: 0x00076000
Checksum: 0x00080464 Time Stamp: 0x4b1e1b10
File Size: 474112 File Time: 12/8/2009 04:23:28
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: Shell Light-weight Utility Library
FileVer: 6.0.2900.5912
ProdVer: 6.0.2900.5912
Module 31
C:\WINDOWS\system32\Secur32.dll
Image Base: 0x77fe0000 Image Size: 0x00011000
Checksum: 0x0001bbcc Time Stamp: 0x4a433476
File Size: 56832 File Time: 6/25/2009 03:25:26
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: Security Support Provider Interface
FileVer: 5.1.2600.5834
ProdVer: 5.1.2600.5834
Module 32
C:\WINDOWS\system32\urlmon.dll
Image Base: 0x78130000 Image Size: 0x00133000
Checksum: 0x00129ff0 Time Stamp: 0x4f4f570c
File Size: 1212416 File Time: 3/1/2012 06:01:32
Version Information:
Company: Microsoft Corporation
Product: Windows® Internet Explorer
FileDesc: OLE32 Extensions for Win32
FileVer: 8.0.6001.19222
ProdVer: 8.0.6001.19222
Module 33
C:\WINDOWS\system32\kernel32.dll
Image Base: 0x7c800000 Image Size: 0x000f6000
Checksum: 0x000fe572 Time Stamp: 0x49c4f482
File Size: 989696 File Time: 3/21/2009 09:06:58
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: Windows NT BASE API Client DLL
FileVer: 5.1.2600.5781
ProdVer: 5.1.2600.5781
Module 34
C:\WINDOWS\system32\ntdll.dll
Image Base: 0x7c900000 Image Size: 0x000b2000
Checksum: 0x000afd30 Time Stamp: 0x4d00f27d
File Size: 718336 File Time: 12/9/2010 10:15:10
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: NT Layer DLL
FileVer: 5.1.2600.6055
ProdVer: 5.1.2600.6055
Module 35
C:\WINDOWS\system32\SHELL32.dll
Image Base: 0x7c9c0000 Image Size: 0x00817000
Checksum: 0x0081d3cf Time Stamp: 0x4d399bd5
File Size: 8462336 File Time: 1/21/2011 09:44:38
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: Windows Shell Common Dll
FileVer: 6.0.2900.6072
ProdVer: 6.0.2900.6072
Module 36
C:\WINDOWS\system32\msi.dll
Image Base: 0x7d1e0000 Image Size: 0x002bc000
Checksum: 0x002bdb4b Time Stamp: 0x4802a15a
File Size: 2843136 File Time: 4/14/2008 04:42:00
Version Information:
Company: Microsoft Corporation
Product: Windows Installer - Unicode
FileDesc: Windows Installer
FileVer: 3.1.4001.5512
ProdVer: 3.1.4001.5512
Module 37
C:\WINDOWS\system32\USER32.dll
Image Base: 0x7e410000 Image Size: 0x00091000
Checksum: 0x0008fc76 Time Stamp: 0x4802a11b
File Size: 578560 File Time: 4/14/2008 04:42:10
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: Windows XP USER API Client DLL
FileVer: 5.1.2600.5512
ProdVer: 5.1.2600.5512
Module 38
C:\WINDOWS\system32\SXS.DLL
Image Base: 0x7e720000 Image Size: 0x000b0000
Checksum: 0x000b934d Time Stamp: 0x4802a11a
File Size: 713216 File Time: 4/14/2008 04:42:08
Version Information:
Company: Microsoft Corporation
Product: Microsoft® Windows® Operating System
FileDesc: Fusion 2.5
FileVer: 5.1.2600.5512
ProdVer: 5.1.2600.5512
===== [end of ERRORLOG.TXT] =====Re: Handheld Application Loader Wizard has encountered a problem and needs to close. We are sorry for the inconvenience.
Sorry I will correct the laptop order:
Okay, on my desktop USB controllers:
USB Root Hub
USB Root Hub
USB Root Hub
USB Root Hub
VIA REV 5 or later USB Universal Host Controller
VIA REV 5 or later USB Universal Host Controller
VIA REV 5 or later USB Universal Host Controller
VIA USB Enhanced Host Contoller
On my laptop:
Intel(R) 82801G (ICH7 Family) USB Univeral Host Controller - 27C8
Intel(R) 82801G (ICH7 Family) USB Univeral Host Controller - 27C9
Intel(R) 82801G (ICH7 Family) USB Univeral Host Controller - 27CA
Intel(R) 82801G (ICH7 Family) USB Univeral Host Controller - 27CB
Intel(R) 82801G (ICH7 Family) USB2 Enhanced Host Controller - 27CC
USB Root Hub
USB Root Hub
USB Root Hub
USB Root Hub
USB Root Hub -
How to load images from css file in JavaFX 8
I have this css file which loads images in JavaFX 8 application:
#pill-left {
-fx-padding: 5;
-fx-border-image-source: url("/com/dx57dc/images/left-btn.png");
-fx-border-image-slice: 4 4 4 4 fill;
-fx-border-image-width: 4 4 4 4;
-fx-border-image-insets: 0;
-fx-border-image-repeat: stretch;
-fx-background-color: null !important;
#pill-left:selected { -fx-border-image-source: url("/com/dx57dc/images/left-btn-selected.png"); }
#pill-left .label {
-fx-text-fill: #d3d3d3;
-fx-effect: dropshadow( one-pass-box , rgba(0,0,0,0.75) , 0, 0.0 , 0 , -1 );
#pill-left:selected .label {
/* -fx-text-fill: black; */
-fx-text-fill: white;
-fx-effect: dropshadow( one-pass-box , white , 0, 0.0 , 0 , 1 );
#pill-center {
-fx-padding: 5;
-fx-border-image-source: url("/com/dx57dc/images/center-btn.png");
-fx-border-image-slice: 4 4 4 4 fill;
-fx-border-image-width: 4 4 4 4;
-fx-border-image-insets: 0;
-fx-border-image-repeat: stretch;
-fx-background-color: null !important;
#pill-center:selected { -fx-border-image-source: url("/com/dx57dc/images/center-btn-selected.png"); }
#pill-center .label {
-fx-text-fill: #d3d3d3;
-fx-effect: dropshadow( one-pass-box , rgba(0,0,0,0.75) , 0, 0.0 , 0 , -1 );
#pill-center:selected .label {
-fx-text-fill: black;
-fx-effect: dropshadow( one-pass-box , white , 0, 0.0 , 0 , 1 );
#pill-right {
-fx-padding: 5;
-fx-border-image-source: url("/com/dx57dc/images/right-btn.png");
-fx-border-image-slice: 4 4 4 4 fill;
-fx-border-image-width: 4 4 4 4;
-fx-border-image-insets: 0;
-fx-border-image-repeat: stretch;
-fx-background-color: null !important;
#pill-right:selected { -fx-border-image-source: url("/com/dx57dc/images/right-btn-selected.png"); }
#pill-right .label {
-fx-text-fill: #d3d3d3;
-fx-effect: dropshadow( one-pass-box , rgba(0,0,0,0.75) , 0, 0.0 , 0 , -1 );
#pill-right:selected .label {
-fx-text-fill: black;
-fx-effect: dropshadow( one-pass-box , white , 0, 0.0 , 0 , 1 );
The images are located at the Java package com.dx57dc.images
In Java 7_25 this code works as expected but in JavaFX 8 b99 I get this error:
ava.lang.NullPointerException
at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1129)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:1598)
at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1520)
at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:233)
at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:199)
at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1249)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:1598)
at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1520)
at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:233)
at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:199)
at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1249)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:1598)
at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1520)
at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:99)
at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:210)
at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
at com.sun.javafx.tk.RenderJob.run(RenderJob.java:58)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
at java.lang.Thread.run(Thread.java:724)
D3D Vram Pool: 13,331,480 used (5.0%), 13,331,480 managed (5.0%), 268,435,456 total
20 total resources being managed
4 permanent resources (20.0%)
1 resources locked (5.0%)
7 resources contain interesting data (35.0%)
0 resources disappeared (0.0%)
D3D Vram Pool: 13,331,480 used (5.0%), 13,331,480 managed (5.0%), 268,435,456 total
20 total resources being managed
4 permanent resources (20.0%)
1 resources locked (5.0%)
7 resources contain interesting data (35.0%)
0 resources disappeared (0.0%)
D3D Vram Pool: 13,331,480 used (5.0%), 13,331,480 managed (5.0%), 268,435,456 total
20 total resources being managed
4 permanent resources (20.0%)
1 resources locked (5.0%)
7 resources contain interesting data (35.0%)
0 resources disappeared (0.0%)
What is the proper way to load images from css in Java 8?
Ref
How to load images from css file in JavaFX 8 - Stack OverflowThere is nothing special to do - you execute the statement from your program just like any other SQL statement. The only thing to be aware of are the privilege/permission issues:
When loading from a file on a client computer:
READ CLIENT FILE privilege is also required for the database user.
Read privileges are required on the directory being read from.
The allow_read_client_file database option must be enabled.
The read_client_file secure feature must be enabled.
Revoking these privileges is also the only way you can prevent a user from executing the statement. -
Part 2: Load Image from URL into Dynamic Text Box - goodinson.snapshot
I have a flash file where a user can add an image url into a Dynamic Text Box (image_in.text) and the image will now appear in the flash file.
I am using goodinson.snapshot as featured in this article: Saving Flash graphics as image files at runtime | Adobe Developer Connection
This application works fine (graphic is generated and downloaded) only if a user chooses an included graphic in the flash file (loaded externally) or if I declare a url inside the flash file for the load image variable (var image_url:String = "http://website.com/image.jpg";).
However, if a user enters an image url into the Dynamic Text Box (image_in.text), which the flash does successfully load, the download image function no longer works!
Is this a security bug in flash itself? Or am I missing a code tweak somewhere?
If an FLA that does this already exists somewhere, let me know.
Thanks in advance for your help!Thanks for your response!
The image urls are on the same domain as where the swf is.
I don't understand how declaring the variable as the url is different from declaring it from the value of a dynamic text box... it's the same url, but only one method works, shouldn't they both work?
var image_url:String = "http://website.com/image.jpg"; works..
var image_url:String = image_in.text; does not work, even though the value for image_in.text is identical to the one in the example above.
Since they are all on the same domain, this should work, right?
Thanks again. -
Custom loading image JSP dynpage
Hello,
Wa have created a jsp dynpage, and want to show a custom loading image. I other applications (appintegrator) we have succesfully changed the loading image by exporting the theme that we are currently using, change the loading_ani.gif image and re-importing the theme. This change has no effect on the loading image of the JSP dynpage, it is still the one supplied by SAP. I checked the url of this image and got the following https://host:port/htmlb/mimes/common/loading/loading_ani.gif, so I tried changing the loeding image that is stored in the htmlb par file, but there was no visible result when loading the application, or when loding the direct url of this image. Can anyone tell me where I can change the loading image of the JSP dynpages?
Kind Regards
Timon Van SoomJuhi Bhatnagar
Greetings!!!
May i know , what is the procedure need to be followed to replace the default Loading ICON with our custom image.
2. Does our custome image should be a image file (like jpg, png) or its like a command
Kindly share the procedure for this...
Appreciate your response in advance'
Thanks -
Loading images from a jar file
Hi,
My application displays images, until it's placed in a JAR file, then it can't display them even though the JAR file contains the images.
I saw this problem in a previous question which was solved using
URL url = MyClass.class.getResource("abc.gif");
Image img=Toolkit.getDefaultToolkit().getImage(url);
....which btw didn't work for me either......
This method should be made obsolete using ImageIcon, which I am using, but the images still won't appear...
Any suggestions?It works fine that way (...getClass().getResource....) until I create the jar file, and then I get a null pointer exception when it tries to load the image.
When I use
javax.swing.ImageIcon icon = new javax.swing.ImageIcon(("/images/imageName.jpg"));
the application works but without the images....... -
Referencing loaded images in APEX
Hi all:
Up until this point, I have used the same method of getting images to be recognized by an Apex
installation. That specifically has been through loading images into a physical directory on the
machine where APEX was installed. This was made available to me by the DBA that installed APEX.
This is Application Express 2.2.0.00.32 running on AIX Unix.
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
This arrangement worked. I was able to reference any image loaded to that directory using
"/i/[image].gif". "/i/" was set as my pseudo directory by default on Apex.
Over time, I developed an application that is now ready to deploy in like environments and I have
never had a problem with viewing graphics.
For the purposes of demoing to a specific customer, I was asked to deploy this to a different environment
temporarily, I was given the option of loading my application to a Windows XP environment running
Oracle XE and Application Express 2.1.0.00.39.
Since there was no physical directory that I could locate for images, it seemed to me that my only
option was to load my images using the wizard for loading image file components (which I understand
means using XDB)...
I was not been able to get this to work. I went back to my AIX Unix/Oracle 10g installation and attempted
to do the same (load images as a file component and reference them). To my surprise it didn't work there
either.
These are the steps I took in attempting this:
1.) Within my application definition, go to "Shared components"
2.) Under the Files section, I click on "images"
3.) Click on the button labeled "Create"
4.) The page "Create Image" appears. I click on the "Browse" button and I pick the image from my local file system.
5.) I leave the drop-down list as is (reading "No Application Associated")
6.) I click on the "Upload" button.
I then go back to my application under "Edit Attributes" and reference the file as /i/[file].gif
I find that the images do not show up. On IE, all I get is the standard red "X" indicating that
an image file failed to load.
I can't help thinking that I'm missing an obvious step. Let me know if there's any other info I should
provide.
ThanksHI,
To reference images loaded through shared components use:
#WORKSPACE_IMAGES#filename.gif (when you set it to No Application Associated)
or
#APP_IMAGES#filename.gif (when you associate it with a specific application)
Graham -
Hi,
I have implemented an image scroller. Now the client had reported that a few seconds are taking to load images. We have a local server. When we load images from it, it's not taking that much time to load images. You just copy the following code in a notepad save it as .html extension, which is the widget taken from client site.
<script type='text/javascript' language='javascript'>
var ObjetTag = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0' width='100%' height='100%' id='ImageScroller' align='middle'> <param name='allowScriptAccess' value='always' /> <param name='allowFullScreen' value='true' /><param name='movie' value='http://test.nysaenet.org/Higherlogic/SwfFiles/ImageScroller.swf' /><param name='quality' value='high' /><param name='FlashVars' value='CommPage=http://test.nysaenet.org/NYSAENET/NYSAENET/Resources1/Resources/VideoChapterCallback/Defau lt.aspx&DID=7da33f1e-6f00-4ff3-85cb-51cb0a995e84&ScaleMode=Auto&ImageControl=Auto&IWidth=A uto&IHeight=Auto&ScrollerArea=Auto&DistanceBetweenImages=Auto&TransSpeed=Auto&ScrollMode=A uto&WaterMark= &ControlButton=Auto&TransWaitTime=Auto&PlayerPath=http://test.nysaenet.org/Higherlogic/SwfFiles/ImageScroller.swf&JSFun=ResizeSwf' /><embed src='http://test.nysaenet.org/Higherlogic/SwfFiles/ImageScroller.swf' quality='high' width='100%' height='100%' name='ImageScroller' align='middle' allowscriptaccess='always' allowFullScreen='true' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' FlashVars='CommPage=http://test.nysaenet.org/NYSAENET/NYSAENET/Resources1/Resources/VideoChapterCallback/Defau lt.aspx&DID=7da33f1e-6f00-4ff3-85cb-51cb0a995e84&ScaleMode=Auto&ImageControl=Auto&IWidth=A uto&IHeight=Auto&ScrollerArea=Auto&DistanceBetweenImages=Auto&TransSpeed=Auto&ScrollMode=A uto&WaterMark= &ControlButton=Auto&TransWaitTime=Auto&PlayerPath=http://test.nysaenet.org/Higherlogic/SwfFiles/ImageScroller.swf&JSFun=ResizeSwf' /></object>";
function ResizeSwf(newW, newH)
{document.getElementById('ImageControl').style.width = newW+'px';
document.getElementById('ImageControl').style.height =newH+'px';
</script>
<script src='http://test.nysaenet.org/Higherlogic/SwfFiles/eolasfix.js'
type='text/javascript' defer='defer'>
</script>
<div id='ImageControl' style='width: 100%; height: 100%; background-color: #FFFFFF'>
<script type='text/javascript' language='JavaScript'>document.write(ObjetTag);
</script>
</div>
Try with following code, save it in a notepad with .html extension, which is the widget taken from our local site.
<script type='text/javascript' language='javascript'>
var ObjetTag = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0' width='100%' height='100%' id='ImageScroller' align='middle'> <param name='allowScriptAccess' value='always' /> <param name='allowFullScreen' value='true' /><param name='movie' value='http://test.higherlogic.com/Higherlogic/SwfFiles/ImageScroller.swf' /><param name='quality' value='high' /><param name='FlashVars' value='CommPage=http://test.higherlogic.com/SNAMATEST/SNAMATEST/Resources/VideoChapterCallback/Default.asp x&DID=c24bb0e5-9698-4ebb-b180-d9a89682cb4c&ScaleMode=Auto&ImageControl=Auto&IWidth=Auto&IH eight=Auto&ScrollerArea=Auto&DistanceBetweenImages=Auto&TransSpeed=Auto&ScrollMode=Auto&Wa terMark= &ControlButton=Auto&TransWaitTime=Auto&FadeTime=Auto&PlayerPath=http://test.higherlogic.com/Higherlogic/SwfFiles/ImageScroller.swf&JSFun=ResizeSwf' /><embed src='http://test.higherlogic.com/Higherlogic/SwfFiles/ImageScroller.swf' quality='high' width='100%' height='100%' name='ImageScroller' align='middle' allowscriptaccess='always' allowFullScreen='true' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' FlashVars='CommPage=http://test.higherlogic.com/SNAMATEST/SNAMATEST/Resources/VideoChapterCallback/Default.asp x&DID=c24bb0e5-9698-4ebb-b180-d9a89682cb4c&ScaleMode=Auto&ImageControl=Auto&IWidth=Auto&IH eight=Auto&ScrollerArea=Auto&DistanceBetweenImages=Auto&TransSpeed=Auto&ScrollMode=Auto&Wa terMark= &ControlButton=Auto&TransWaitTime=Auto&FadeTime=Auto&PlayerPath=http://test.higherlogic.com/Higherlogic/SwfFiles/ImageScroller.swf&JSFun=ResizeSwf' /></object>";
function ResizeSwf(newW, newH)
{document.getElementById('ImageControl').style.width = newW+'px';
document.getElementById('ImageControl').style.height =newH+'px';
</script>
<script src='http://test.higherlogic.com/Higherlogic/SwfFiles/eolasfix.js' type='text/javascript' defer='defer'>
</script>
<div id='ImageControl' style='width:100%; height:100%;background-color:#FFFFFF'>
<script type='text/javascript' language='JavaScript'>document.write(ObjetTag);
</script>
</div>
Why the loading time is varying on different server?
Regards,
SreelashHi Ross, the image loading problem is not solved yet. The client needs to solve it at any cost. He is saying that the problem might be with the effeciency of code. So my PM is asking to modify the code.Youc can view the image scroller in this specified site: http://test.nysaenet.org/NYSAENET/NYSAENET/Home/
I am attaching the class that is using for loading images. In this class, after loading the images, some masking effects are given. I think you can understand about after viewing the image scroller and the class. Hope you ll reply as soon as possible. I am wasting more than one week for this purpose. I am not getting any idea.
Regards,
Sreelash.S. -
Problem loading image from jar file referenced by jar file
First, I searched this one and no, I didn't find an answer. Loading images from jar files has been pretty much done to death but my problem is different. Please read on.
I have my application, a straight up executable running from Eclipse. It uses a jar file, call it JarA. JarA launches a GUI that is located in another jar file. Call it JarB. To recap:
My application calls JarA -> JarA loads classes from JarB -> JarB looks for images to place in a GUI it wants to show on the screen
When JarB goes to load an image the following happens:
java.lang.NullPointerException
at sun.misc.URLClassPath$3.run(URLClassPath.java:316)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:313)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:290)
at sun.misc.URLClassPath.findResource(URLClassPath.java:141)
at java.net.URLClassLoader$2.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findResource(URLClassLoader.java:359)
at java.lang.ClassLoader.getResource(ClassLoader.java:977)
at org.cubrc.gmshell.gui.MainWin.preInit(MainWin.java:152)
at org.cubrc.gmshell.gui.MainWin.<init>(MainWin.java:135)
The code from JarB that loads the image looks like this:
URL[] oSearch = {Main.class.getResource("images/")};
URLClassLoader oLoader = new URLClassLoader(oSearch);
imgIcon = new ImageIcon(oLoader.getResource("icon.gif"));
imgMatchRunning = new ImageIcon(oLoader.getResource("gears.gif"));
imgMatchStill = new ImageIcon(oLoader.getResource("gears-still.gif"));
imgMagnify = new ImageIcon(oLoader.getResource("magnify.gif"));This looks right to me and JarB certainly has an images directory with those files. But I'm in hell right now because I don't know where to place the images to make this work or if you can even attempt to load images with a dependency chain like this.
Any help very appreciated!Have you tried to move your image-files out of the jar file and place them in the sam folder as the jar-file? I think that would help.
When you try to load the image-file you get the NullPointerException because the program tries to read a file it can't find. Remember that a jar file IS a file and not a directory.
If you want to read somthing inside the jar-file you need to encode it first.
Have you tried to read the jar-file with winRar. It makes it easy to add and remove files in your jar-file. -
Hello
Could you please assist me with such issue
I am using a Canvas object like a container for images (Image
class). My application loads 500-1000 images (tiles) dynamically
and then displays them. Everything works fine but the memory grows
up to 300Mb.
Here is a code:
private function GetLoop(layer:String):void {
var canvas:Canvas = new Canvas();
for(var i:Number = 0; i < curFrames; i++) {
var img:Image = new Image();
img.addEventListener(Event.COMPLETE, OnImageLoaded);
img.load(urlReq);
canvas.addChild(img);
}Matlus,
I have not tried sharing with bitmaps or bitmapData objects
yet. I have done sharing with simple XML data, URLLoader data, and
DisplayObjects. The concept should basically be the same, though.
My only hesitation is that bitmaps are terra incognito for me.
However, if I were to try it, I would make a static bitmap
data variable for some custom AS class that is similar to the
SWFLoader or Image class (or even extends from them). Anyway, I
will assume I have a class that displays a bitmap. I may have more
than one of these classes on the screen at a time. The class will
extend from a regular UIComponent and contain a Bitmap instance.
However, the class will have one globally accessable (static)
BitmapData class instance. Use a class initialization technique
similar to that used when making custom styles to call a method the
first time any instance of this class in instantiated. In that
method set up your BitmapData class instance. In the regular
instance constructor (or createChildren method or wherever), set
the Bitmap instance's bitmapData reference to the static class
reference. That should do it. You can set filters independently and
show the same image on screen multiple times (hopefully) without
getting tons of redundant bitmap data instances the way (I suspect)
you do if you try the same thing with Image or SWFLoader.
Like I said, I do this with ComboBox dataProviders where the
dataProvider is taken from an external XML but I have multiple
instances of the same ComboBox/dataProvider in one application
(although I have the added incentive because the XML is furthermore
taken from the server and I don't want to call the server EVERY
time a combobox appears--but that's neither here nor there).
Anyway, though, like I said, the same priniciple should apply here
as well.
And if you want to dynamically apply the same technique for
any number of bitmap data (such that any one bitmap data is only
loaded once and then never again), it shouldn't be too big a leap
to set up a Dictionary (or just a regular array if you like) and
then load the images from there to the appropriate instances based
on some key value.
I'm sorry I don't have any code worked out. But if you 're
interested (and what I described above makes sense), then give it a
whirl. If you have problems, post them.
Maybe you are looking for
-
If I search something on Google or another search portal, my request brings up a bunch of links like normal. Then when I click on the link it brings me to totally different websites than it's supposed to. This only started after downloading the new v
-
How to prevent kids getting into all my apps and email?
One flaw with the iPad is that its so cool the kids want to play with it. But there's no real - or practical - way for me to prevent them from opening my work emails, my shopping apps, etc. I think it's a usability issue for Apple to assume that the
-
Option Explicit Sub BatchProcess() Dim strFileName As String Dim strPath As String Dim oDoc As Document Dim oLog As Document Dim oRng As Range Dim oHeader As HeaderFooter Dim oSection As Section Dim fDialog As FileDialog Set fDialog = Application.Fil
-
Job not getting triggered for Multiple Scheduler Events
hi, I would like a job to be triggered for multiple scheduler events, subscribing to a single event works fine. But, when I set multiple event condition, nothing works. My objective is to run a job, whenever job starts or restarts or exceeds max run
-
HT4759 ID change in iphone5?
? I changed my apple id and icloud id and received verification but it did not change on my iphone and it will not allow change on iphone exactly how do i get it to update to the new ID? Apple help is like a chinese dictionary - frustrated...