Re: Giving an application a window icon in a sensible way
- From: "Joe Attardi" <jattardi@xxxxxxxxx>
- Date: 21 Nov 2006 10:01:47 -0800
On Nov 21, 12:31 pm, "Twisted" <twisted...@xxxxxxxxx> wrote:
Method 1 involved: getting a couple of class files, editing one of themYou insist on continuing to exaggerate the method we're suggesting.
to fix a simple bug, and compiling.
Method 2 would have involved: learning a chunk of new API and either
figuring out how to get Eclipse to tell an app where to find resources
when it's run in the development environment rather than from a final
packaging or building a jar for every edit-test-debug cycle.
Method 3 would have entailed all of the things mentioned in Method 2,
plus obtaining a new tool, learning how to use *that*, and possibly
additional things.
You don't have to tell the app where to find resources. You simply put
it in the classpath. Whether that's inside a JAR file when you deploy,
or simply inside your class directories, i.e. classes/.
Advantage of method 1: simple and straightforward and quick. (It tookStraightforward and quick? As an earlier poster pointed out, this is
maybe half an hour.)
the procedure you've told us you are following:
Step 1, convert image to XPM,
Step 2, run some tool to convert it to a class file.
Step 3, move the class file into the correct place.
Step 4, use some uncommon third party tool to load and convert the
class's data..
Step 5, Fix the third party tool, because it was broken.
Step 6, Fix the third party tool again, because it was broken in
another way.
How is this simple and straightforward?
I find it curious that this "tried and true" method was not the firstBecause we all know the Google ranking algorithms can determine best
relevant Google result for the topic, while the method you deride
*was*.
practices for software development.
Overdesigning is aNone of which are an issue with the very simple approach advocated by
frequent source of missed deadlines, bloated budgets, and yes, even
bugs.
myself and others in this thread.
If anyone wants to point me to a quick tutorial on managing externalAgain you are exaggerating the process we are recommending here.
resources that explains how exactly to make Eclipse hide any underlying
complications from you so that you can focus on doing *actual
programming*, I'll bookmark it for future reference. Anything that
involves an extra, manual build-Jar step on every edit-test-debug cycle
is, of course, right out.
Eclipse has nothing to do with it. And using the classloader to load
resources such as images is *actual programming*, I'd be curious to see
why you don't see it that way. You don't have to build a JAR file every
edit-test-debug cycle, as we have said several times now. It just needs
to be in your classpath.
Didn't you hear? They're De Rigeur(tm) when discussing certain things (and certain *attitudes*) on the net.No, not really.
I'm trying to understand here. You have no problem hacking some third
party class, and transforming a simple icon image to a weird format,
but you don't feel like using something that's built in to the JVM
(classloader) for this very purpose? You are trying to re-invent the
wheel. External resources like strings, images, etc. can be loaded by
the classloader so that you don't have to worry about where it's
installed or how it's deployed, which I believe was your original
problem.
--
jpa
.
- Follow-Ups:
- 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: Joe Attardi
- 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: Joe Attardi
- Re: Giving an application a window icon in a sensible way
- From: Twisted
- Giving an application a window icon in a sensible way
- Prev by Date: Re: Giving an application a window icon in a sensible way
- Next by Date: Re: java applet debugging
- 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
|