create image again.

Discussion in 'Java' started by Boki, Jun 26, 2007.

  1. Boki

    Boki Guest

    Hi All,

    Creating image issue again, it must be a path issue, however, I still
    no idea how to point out here.

    I am using netbeans 5, this project imported from the WTK 2.5. Thanks!

    try
    {
    GUI.imgBackground = Image.createImage("/hello/logo.jpg");
    }
    catch (Exception e)
    {
    setBackground=false;
    }


    Why we always wasting a lot of time to deal with which grammar is
    correct for java not the material design issue we really need to deal
    with urgently....


    Best regards,
    Boki.
     
    Boki, Jun 26, 2007
    #1
    1. Advertisements

  2. Boki

    Michael Jung Guest

    Boki <> writes:
    > Creating image issue again, it must be a path issue, however, I still
    > no idea how to point out here.
    > I am using netbeans 5, this project imported from the WTK 2.5. Thanks!


    I don't know about netbeans, but...

    > try
    > {
    > GUI.imgBackground = Image.createImage("/hello/logo.jpg");
    > }
    > catch (Exception e)
    > {
    > setBackground=false;
    > }


    Why don't you print the exception (e.g. e.printStackTrace()) in the catch
    block to see what is going on? In this case I suspect that you do not have
    top-level directory called "hello".

    Michael
     
    Michael Jung, Jun 26, 2007
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. amit
    Replies:
    0
    Views:
    529
  2. che
    Replies:
    2
    Views:
    693
  3. abcd

    Importing again and again

    abcd, Jun 8, 2006, in forum: Python
    Replies:
    9
    Views:
    541
    Maric Michaud
    Jun 9, 2006
  4. Sandeep Singh Sekhon

    Problem: Image Control again showing the same Image

    Sandeep Singh Sekhon, Aug 2, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    578
    Walter Wang [MSFT]
    Aug 7, 2006
  5. Replies:
    4
    Views:
    575
  6. Ò»Ê×Ê«

    A design problem I met again and again.

    Ò»Ê×Ê«, Apr 1, 2009, in forum: Python
    Replies:
    24
    Views:
    954
    Dennis Lee Bieber
    Apr 4, 2009
  7. Alexander Burger

    jsf 2.0 datatable reload again and again

    Alexander Burger, Sep 23, 2010, in forum: Java
    Replies:
    14
    Views:
    5,094
    Arved Sandstrom
    Sep 26, 2010
  8. Junkone
    Replies:
    2
    Views:
    159
    Junkone
    Sep 25, 2008
Loading...