Thread View: borland.public.jbuilder.java.swing
6 messages
6 total messages
Started by Steve
Tue, 13 Apr 2004 18:02
Image
Author: Steve
Date: Tue, 13 Apr 2004 18:02
Date: Tue, 13 Apr 2004 18:02
12 lines
1133 bytes
1133 bytes
The code below is failing and I can't get a Error Messgae indicating why?
try {
Image iImage = null;
iImage = Image.createImage("/sCBIcon.png");
}
catch (IOException ioe) {
String sMsg = ioe.getMessage();
}
I am using JBuilder Mobile Edition 9 developing for J2ME, the image is loaded in the current project path and I have added it to the project successfully.
Re: Image
Author: John McGrath [TeamB]
Date: Wed, 14 Apr 2004 03:14
Date: Wed, 14 Apr 2004 03:14
15 lines
1311 bytes
1311 bytes
On 4/13/2004 at 2:02:27 PM, Steve wrote:
> The code below is failing and I can't get a Error Messgae indicating why?
What do you mean when you say you can't get an error message? What are
you expecting the code to do? How do you know that it is failing?
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Re: Image
Author: Steve
Date: Wed, 14 Apr 2004 16:04
Date: Wed, 14 Apr 2004 16:04
24 lines
1755 bytes
1755 bytes
"John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote: >On 4/13/2004 at 2:02:27 PM, Steve wrote: > >> The code below is failing and I can't get a Error Messgae indicating why? > >What do you mean when you say you can't get an error message? What are >you expecting the code to do? How do you know that it is failing? > >-- >Regards, > >John McGrath [TeamB] > >--------------------------------------------------- >Before sending me e-mail, please read: > http://www.JPMcGrath.net/newsgroups/e-mail.html The code is in a try/catch if the creatation of the image fails it is caught by the IOException and you can get a error message returned indicating why it failed. The getMessage is returning null. I am expecting the code to create a instance of this image so I can display the image. I know it's failing because the createImage is called and the next line of code executed is the IOException catch.
Re: Image
Author: John McGrath [TeamB]
Date: Wed, 14 Apr 2004 16:56
Date: Wed, 14 Apr 2004 16:56
16 lines
1437 bytes
1437 bytes
On 4/14/2004 at 12:04:32 PM, Steve wrote:
> The code is in a try/catch if the creatation of the image fails it is
> caught by the IOException and you can get a error message returned
> indicating why it failed. The getMessage is returning null.
What is the concrete class of the IOException object?
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Re: Image
Author: Steve
Date: Wed, 14 Apr 2004 17:17
Date: Wed, 14 Apr 2004 17:17
20 lines
1515 bytes
1515 bytes
"John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote: >On 4/14/2004 at 12:04:32 PM, Steve wrote: > >> The code is in a try/catch if the creatation of the image fails it is >> caught by the IOException and you can get a error message returned >> indicating why it failed. The getMessage is returning null. > >What is the concrete class of the IOException object? > >-- >Regards, > >John McGrath [TeamB] > >--------------------------------------------------- >Before sending me e-mail, please read: > http://www.JPMcGrath.net/newsgroups/e-mail.html java.lang.Object.Throwable.IOException
Re: Image
Author: John McGrath [TeamB]
Date: Wed, 14 Apr 2004 23:41
Date: Wed, 14 Apr 2004 23:41
22 lines
1445 bytes
1445 bytes
On 4/14/2004 at 1:17:20 PM, Steve wrote:
> > What is the concrete class of the IOException object?
> java.lang.Object.Throwable.IOException
I do not think such a class exists.
Try adding:
ioe.printStackTrace();
in the catch block and post what is printed.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads