Java Forum / First Aid / November 2005
Check of GUI layout requested..
Andrew Thompson - 14 Nov 2005 04:32 GMT I have a GIF animator GUI that I am working on, but since uploading the latest version, I have failed to see the new UI when launching it using WebStart.
I was wonderrring if folks could tell me where the draggable toolbar[1] appears in this UI[2].
Across the top (old version - 0.1 in the help), or along the right-hand side (new version - 0.2)?
Note that to see The Giffer on-screen, you will need to .. - Download about 60-90 Kilobytes of classes. - Accept two separate 'Do you trust Me?' dialogs. If you don't (trust me), don't waste your time/bandwidth.
[1] The toolbar contains controls like the Color Quantization Quality slider, and spinners.
[2] <http://www.physci.org/giffer/giffer0512.jnlp>
TIA
Andrey Kuznetsov - 14 Nov 2005 07:37 GMT Hi Andrew,
your app can't start (error 404). Please check your jnlp file.
 Signature Andrey Kuznetsov http://uio.imagero.com Unified I/O for Java http://reader.imagero.com Java image reader http://jgui.imagero.com Java GUI components and utilities
Andrew Thompson - 14 Nov 2005 10:46 GMT ...
> your app can't start (error 404). > Please check your jnlp file. ..hmm. Just checked the JNLP file, uninstalled and reinstalled The Giffer using the link I gave. It should be one of the files in the (browsable) directory here.. <http://www.physci.org/giffer/>
That file again is 'giffer0512.jnlp'.
Is it the JNLP file itself that cannot be found, or one of the component jars?
Roedy Green - 14 Nov 2005 14:01 GMT On Mon, 14 Nov 2005 10:46:52 GMT, Andrew Thompson <seemysites@www.invalid> wrote, quoted or indirectly quoted someone who said :
>That file again is 'giffer0512.jnlp'. I found both the JNLP file gave a "program not found". The problem is they are requesting the old JDK 1.5.0_04 only.
 Signature Canadian Mind Products, Roedy Green. http://mindprod.com Java custom programming, consulting and coaching.
Andrew Thompson - 14 Nov 2005 16:16 GMT > On Mon, 14 Nov 2005 10:46:52 GMT, Andrew Thompson > <seemysites@www.invalid> wrote, quoted or indirectly quoted someone [quoted text clipped - 4 lines] > I found both the JNLP file gave a "program not found". The problem is > they are requesting the old JDK 1.5.0_04 only. ?? Never in any of those files is '1.5.0_04' specified as the java version (I just eyeballed them all again).
In all but one file, the mimimum java is listed as ..
version="1.4.2+"
..while in a single file '..giffer/giffer0512_1.4.2_03.jnlp', I specify the version as ..
version="1.4.2_03"
..for testing purposes, since I can use it to check against my 1.4.2_03 JRE install and ensure my 1.5 focused environment has not accidentally slipped to compiling it for 1.5 (I probably would not have bothered checking, had the author of the image library not complained that he could not see it on his 1.4 Java machine).
I cannot account for where the '1.5.0_04' is coming from.
Roedy Green - 14 Nov 2005 17:53 GMT On Mon, 14 Nov 2005 16:16:41 GMT, Andrew Thompson <seemysites@www.invalid> wrote, quoted or indirectly quoted someone who said :
>?? Never in any of those files is '1.5.0_04' specified as the >java version (I just eyeballed them all again). Mystery solved.Opera had an outdated download association for *.jnlp.
Oddly it seems to work fine for jnlp links, but not for that directory list. I don't see the difference.
However, now I have corrected it, it works.
 Signature Canadian Mind Products, Roedy Green. http://mindprod.com Java custom programming, consulting and coaching.
Andrey Kuznetsov - 14 Nov 2005 11:21 GMT > [1] The toolbar contains controls like the > Color Quantization Quality slider, and spinners. > > [2] <http://www.physci.org/giffer/giffer0512.jnlp> this is the problem (forgot '0') http://www.physci.org/giffer/giffer512.jnlp ---------------------------------^
 Signature Andrey Kuznetsov http://uio.imagero.com Unified I/O for Java http://reader.imagero.com Java image reader http://jgui.imagero.com Java GUI components and utilities
Andrew Thompson - 14 Nov 2005 12:06 GMT Thanks Andrey! The problem is resolved and I have seen the new GUI on the screen.
(see below for details)
>>[2] <http://www.physci.org/giffer/giffer0512.jnlp> > > this is the problem (forgot '0') > http://www.physci.org/giffer/giffer512.jnlp > ---------------------------------^ Oh Right! (slaps self) It took me a little while, even looking at that, to understand what you meant.
I think I have fixed the problems with references to resources[1] inside those (damn) JNLP files.
[1] I have never quite understood why a JNLP needs a reference back to itself! After all, if webstart is reading it, it obviously has an URL for the (accursed!) file.
The only remaining mystery is why it was *not* either breaking for, or giving some message back to, me. But then I suppose that comes down to WebStart trying to be 'robust' for the end user, and hauling out an *earlier* *version* of the classes that worked!
Andrey Kuznetsov - 14 Nov 2005 13:08 GMT More errors (click on empty frame list):
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at org.physci.image.Giffer$3.mouseClicked(Giffer.java:309) at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
 Signature Andrey Kuznetsov http://uio.imagero.com Unified I/O for Java http://reader.imagero.com Java image reader http://jgui.imagero.com Java GUI components and utilities
Andrey Kuznetsov - 14 Nov 2005 13:12 GMT BTW you forgot to exit application after window was closed
 Signature Andrey Kuznetsov http://uio.imagero.com Unified I/O for Java http://reader.imagero.com Java image reader http://jgui.imagero.com Java GUI components and utilities
Andrey Kuznetsov - 14 Nov 2005 13:16 GMT RFE: I don't see the possibility to delete frame or change frame order
 Signature Andrey Kuznetsov http://uio.imagero.com Unified I/O for Java http://reader.imagero.com Java image reader http://jgui.imagero.com Java GUI components and utilities
Andrew Thompson - 14 Nov 2005 13:38 GMT > RFE: > I don't see the possibility to delete frame or change frame order That would be good. I'll have to think about it.
The best way to re-order the list would seem to be D'n'D.
Not sure about the 'delete'. One way is to have a 'Delete (selected)' button on the GUI, though a 'right click menu' to allow delete might be quicker ...or to be able to 'drag' the entry over a 'bin/delete' area.. that might be *best*.
BTW - Glad you noticed the NPE (had never occured to me to try it), and the lack of exit(). Both are fixed, ready for V 0.3 release.
Roedy Green - 14 Nov 2005 14:02 GMT On Mon, 14 Nov 2005 12:06:19 GMT, Andrew Thompson <seemysites@www.invalid> wrote, quoted or indirectly quoted someone who said :
>[1] I have never quite understood why a JNLP needs a reference >back to itself! After all, if webstart is reading it, it obviously >has an URL for the (accursed!) file. It is a link to the MASTER copy of the jnlp file. That way various out of date copies of it scattered around the universe will always get he latest and greatest.
 Signature Canadian Mind Products, Roedy Green. http://mindprod.com Java custom programming, consulting and coaching.
Andrew Thompson - 14 Nov 2005 16:18 GMT > On Mon, 14 Nov 2005 12:06:19 GMT, Andrew Thompson > <seemysites@www.invalid> wrote, quoted or indirectly quoted someone [quoted text clipped - 7 lines] > out of date copies of it scattered around the universe will always get > he latest and greatest. Good point, but why have alternate copies, rather than simply link to the original JNLP?
Roedy Green - 14 Nov 2005 17:55 GMT On Mon, 14 Nov 2005 16:18:14 GMT, Andrew Thompson <seemysites@www.invalid> wrote, quoted or indirectly quoted someone who said :
>Good point, but why have alternate copies, rather than >simply link to the original JNLP? You might bundle the JNLP in a zip along with source. It could get passed around and sit on the shelf a long time. As soon as anyone dusts it off though, they are right up to speed.
 Signature Canadian Mind Products, Roedy Green. http://mindprod.com Java custom programming, consulting and coaching.
Oliver Wong - 14 Nov 2005 20:16 GMT >> On Mon, 14 Nov 2005 12:06:19 GMT, Andrew Thompson >> <seemysites@www.invalid> wrote, quoted or indirectly quoted someone [quoted text clipped - 10 lines] > Good point, but why have alternate copies, rather than > simply link to the original JNLP? I believe WebStart actually keeps the JNLP file somewhere in a cache. Rather than associating those JNLP files with their original locations, Sun decided that you must actually embedded the original location in the JNLP file itself.
- Oliver
Free MagazinesGet these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...
|
|
|