Results 1 to 10 of 10

Thread: Apply Image as background to JPanel [RESOLVED]

Threaded View

  1. #10

    Thread Starter
    Fanatic Member Ruku's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    655

    Re: Apply Image as background to JPanel

    Code:
        protected void paintComponent(Graphics g) {
            try {
                super.paintComponent(g);
                g.drawImage(image, 0, 0, this);
            }
            catch (Exception ex) {
            }
        }
    got everything working...!

    I just needed to call the repaint(); method and everything was good!!!


    Last edited by Ruku; May 31st, 2006 at 03:49 AM.

    Using VB.NET 2005/.NET 2.0, NetBeans IDE 5, Fujitsu Cobol85,
    Website: http://DreamForgery.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width