File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
What's the most elegant approach when using icons ?
Joined: Jan 19, 2006
Sep 18, 2006 08:01:00
I would like to hear your opinions concerning the most elegant approach when using icons and other
types in my swing app.
For instance, I would like to change the system icon of my form, so I have to store such icon somewhere in my diretory structure.
I also have a
which according to the node type I also have to change the default folder icon shown by the API.
So I also have to have such icons stored somewhere.
What would be the best approach in these cases ?
Do you think I would simply store then in some directory and then hard code the relative directory when creating the
Or do you think I should store them in a separate .jar file (possibly named as images.jar) and then use the getResource method
to load them ?
Or there's still another better approach I can't wonder.
I'm really interested about your opinions and would really appreciate if you could post some links to quick guides tutorials about
[ September 18, 2006: Message edited by: Edisandro Bessa ]
"If someone asks you to do something you don't know how to, don't tell I don't know, tell I can learn instead." - Myself
Joined: Jan 14, 2004
Sep 18, 2006 16:08:00
See the section
Loading Images Using getResource
on the page
How to Use Icons
. Especially the last paragraph.
Everyone seems to have their own idea of what makes sense in design. I would say to put things together in any way that makes sense to you and is easy to use.
I agree. Here's the link:
subject: What's the most elegant approach when using icons ?
Where do you see Java within 10 years ?
MVC & Swing - How model classes work together ?
why no reply for my previous topic kindly reply
Please help me to decide which one to use
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014