Thread View: borland.public.jbuilder.java.swing
2 messages
2 total messages
Started by Vanesa
Wed, 07 Jan 2004 17:27
Problems with JBuilder9 working with interfaces
Author: Vanesa
Date: Wed, 07 Jan 2004 17:27
Date: Wed, 07 Jan 2004 17:27
10 lines
1233 bytes
1233 bytes
I am using an interface, which declares constants, and I need to reference those in my code in this case aFormGroup.setBounds(new Rectangle(A_CONSTANT,4,A_CONSTANT,5)) in JBuilder 9, this throws a nullPointerException I'd like to know if there's a way to solve this, and why this did work in JBuilder 6. thanks.
Re: Problems with JBuilder9 working with interfaces
Author: Paul Furbacher
Date: Wed, 07 Jan 2004 19:22
Date: Wed, 07 Jan 2004 19:22
31 lines
1999 bytes
1999 bytes
Vanesa wrote:
> I am using an interface, which declares constants, and I need to
> reference those in my code in this case
>
> aFormGroup.setBounds(new Rectangle(A_CONSTANT,4,A_CONSTANT,5))
>
> in JBuilder 9, this throws a nullPointerException
>
> I'd like to know if there's a way to solve this, and why this did
> work in JBuilder 6.
Run your program in the debugger,
and make sure that "aFormGroup"
isn't null.
--
Paul Furbacher (TeamB)
Save time, search the archives:
http://www.borland.com/newsgroups/ngsearch.html
Is it in Joi Ellis's Faq-O-Matic?
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Finally, please send responses to the newsgroup only.
That means, do not send email directly to me.
Thank you.
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