Re: [Swing-JButton] Images are not displayed from g.drawImage( )

From: ak (spam_at_imagero.com)
Date: 07/08/04

  • Next message: Lynn: "JComboBox with wider drop-down (popup)"
    Date: Thu, 8 Jul 2004 20:25:19 +0200
    
    

    > When I load the Graphicfiles with 'ImageIcon' and not with 'Image'
    >
    > ImageIcon ImIc_normal = new ImageIcon("C:\\images\\button_normal.PNG");
    >
    > and after that, I call g.drawImage like this
    >
    > ...
    > g.drawImage(ImIc_normal.getImage(), 0, 0, this)
    >
    > it works!!!

    of course, but tell me please, why you want to reinvent the wheel (see my
    first answer)?

    -- 
    Andrei Kouznetsov
    http://uio.dev.java.net Unified I/O for Java
    http://reader.imagero.com Java image reader
    

  • Next message: Lynn: "JComboBox with wider drop-down (popup)"