×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    37

    class IOException

    hi

    is it possible to show images without the use of the class IOException in MIDP 1.0?
    if not why an image must considered as an error to catch?

    thanks to forum nokia.

    eml

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Tampere / Finland
    Posts
    201
    Hello,

    There are several methods can be used to create an image. MIDP 1.0 specification defines:

    public static Image createImage(String name) throws IOException

    Only using this one requires declaring IOException to be catched, the IOException can be caused by the following reasons:

    "if the resource does not exist, the data cannot be loaded, or the image data cannot be decoded."

    The detailed instructions can be refered to the MIDP 1.0 specification.

    Regards,
    Kui

Posting Permissions

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