Re: Giving an application a window icon in a sensible way
- From: "Twisted" <twisted0n3@xxxxxxxxx>
- Date: 21 Nov 2006 16:14:41 -0800
Daniel Dyer wrote:
It should take less than a second to create a JAR file, unless you have
hundreds of classes in it or a very slow machine. It should also be
trivial to make it part of the automated build process even if you are not
using Ant.
That sounds like fun. Every time I edit the code and Eclipse recompiles
it for me, the jar is rebuilt and the icon I'd inserted into it
disappears, and I need to reinsert it before the next test run? Unless
of course there's some way to tell it to keep the icon. I'd still be
leery of its only home being in the jar; properly, files like that are
part of the source code too and should be housed with it and just
*copied* into the jar. Preferably automatically. Now maybe this can be
done, but if so, nobody has bothered to tell me so, or suggest how.
The problem I see with your approach is there is a lot more work if you
want to change the image. This might not be a problem right now but is
something to keep in mind.
I changed it several times, tweaking it, without difficulty last night
-- it's a matter of re-exporting the image, then pasting in a different
string array literal, and that's all. Now just re-exporting the image
(to some classpath directory) would shave a little off that, but in
return I now have to:
* Find out how to make it get included in the jar automatically;
* Find out how to make it build the jar for every test automatically;
* Have the application do I/O and error recovery on startup, which it
didn't previously have to do;
* Now that it can die at startup with a file not found or whatever
error, make it gracefully report the problem when it does so, and
suggest fixes;
* Worry about end-users' inevitably encountering said problem and
having no clue anyway how to find the file and put it where it needs to
be or otherwise fix whatever went wrong -- likely, their recourse will
have to be to reinstall the app. Yuck! I'll be looking an awful lot
like Microsoft then -- my stuff stops working and has to be reinstalled
and such!
.
- Follow-Ups:
- Re: Giving an application a window icon in a sensible way
- From: Daniel Pitts
- Re: Giving an application a window icon in a sensible way
- From: wesley . hall
- Re: Giving an application a window icon in a sensible way
- From: Larry Barowski
- Re: Giving an application a window icon in a sensible way
- References:
- Giving an application a window icon in a sensible way
- From: Twisted
- Re: Giving an application a window icon in a sensible way
- From: Mark Rafn
- Re: Giving an application a window icon in a sensible way
- From: Twisted
- Re: Giving an application a window icon in a sensible way
- From: Mark Rafn
- Re: Giving an application a window icon in a sensible way
- From: Twisted
- Re: Giving an application a window icon in a sensible way
- From: Daniel Pitts
- Re: Giving an application a window icon in a sensible way
- From: Twisted
- Re: Giving an application a window icon in a sensible way
- From: Ian Wilson
- Re: Giving an application a window icon in a sensible way
- From: Twisted
- Re: Giving an application a window icon in a sensible way
- From: Daniel Dyer
- Giving an application a window icon in a sensible way
- Prev by Date: Re: Hibernate question: retrieving class name and field name from table_name and column_name
- Next by Date: Most efficient way to transfer a file directory recursively (using sockets)
- Previous by thread: Re: Giving an application a window icon in a sensible way
- Next by thread: Re: Giving an application a window icon in a sensible way
- Index(es):
Relevant Pages
|