...
> What I need to know is how to do that in Java ? ;o)
What you probably need to do is the Java tutorials.
(What, ..did you think we would spoon-feed you?)
> I have no idea how to make it work. I tried ImageIcon, BufferedImage and so
> on with no results.
Oh? Where are your short, self contained, compileable
examples? What were the stacktraces of the failures,
what was the ouput? Do you have the examples you
made as Applets, so that we can surf to the site and see
them fail for ourselves?
> Thanks in advance for any advice.
Do some work yourself and come back with either a
a) 'point me to the class' question, or
b) 'why does this code give this stacktrace' type
question.
But, to toss you a bone, you may find some good
image related source through the site of Marco Shmidt, at..
http://www.geocities.com/marcoschmidt.geo/
[ ..and he is generally much nicer than me, as well ;-) ]
--
Andrew Thompson
* http://www.PhySci.org/ PhySci software suite
* http://www.1point1C.org/ 1.1C - Superluminal!
* http://www.AThompson.info/andrew/ personal site
> I want to draw a personnalised JComponent (let's name it GridCell for
> instance) which would contain a small Icon.
sounds like JLabel.
____________
http://reader.imagero.com the best java image reader.
"My Full Name" made me laugh. :)
The easiest way to put and icon on a JComponent is to use a JLabel and
ImageIcon combination.
Create an ImageIcon from a jpg and add it to the JLabel. That will
handle all of the sizing for you automatically.
My full name - 06 Dec 2003 12:23 GMT
Thanks to all of you (yes even you Andrew ;o) who replied to my apparently
confused request :)
My full name.