Simple question about displaying a BufferedImage in Swing

I have a program that is working on medium-sized BufferedImages (600x600 or so). I really just need to display them. Right now, I'm doing:

panel.add(new JLabel(new ImageIcon(bufferedImage)));

It works, of course, but is this the right way to do it? Or is there some better way to express that?

Thanks

[326 byte] By [chiralsoftware.neta] at [2007-10-2 10:51:32]
# 1
Seems really simple, easy to understand to me. Why would you think there is a better way?
camickra at 2007-7-13 3:10:28 > top of Java-index,Desktop,Core GUI APIs...
# 2
I guess I associate "icons" with actions, or links to things, or some kind of UI component, rather than just a way to display an image. But it's fine, I'll use it.Thanks
chiralsoftware.neta at 2007-7-13 3:10:28 > top of Java-index,Desktop,Core GUI APIs...