Dobry vecer,

docela se mi osvedcilo nasledujici:

        private Image getImage(String path) {
                try {
                        ClassLoader cl = this.getClass().getClassLoader();
                        return ImageIO.read(cl.getResourceAsStream(path));
                } catch (IOException e) {
                        e.printStackTrace();
                        logger.fine(e.getMessage());
                        return null;
                }
        }

a volani metody vypada:

imageWelcome = getImage("com/..../welcome.gif");


doufam, ze to pomuze

J. Jirout


On Nov 24, 2007 9:38 PM, Pavel Riečan <[EMAIL PROTECTED]> wrote:
> Zdravim Vas !
> Poradte mi ako inicializovat v java applete subor typu *.jpg. Resp.kde a ako
> ho umiestnit.
>
> Vdaka
>
> P.Riecan
>
>

Odpovedet emailem