Article View: borland.public.jbuilder.java.swing
Article #1748Re: No abstract class, no interface but -> Failed to create live instance for variable 'this'. null
From: Kevin Dean
Date: Sun, 31 Aug 2003 20:51
Date: Sun, 31 Aug 2003 20:51
92 lines
3744 bytes
3744 bytes
See my response in borland.public.jbuilder.ide and please don't crosspost.
--
Check out our latest white papers at
http://www.datadevelopment.com/papers/index.html
BladeNET Scores With Borland Enterprise Tools
Team Development with JBuilder and Borland Enterprise Server
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
"Kostas" <karadamoglou_k@yahoo.gr> wrote in message
news:3f50c3dc$1@newsgroups.borland.com...
> Hello all,
> Here is my problem. I have a class with decleration...
>
> public class EfzinCalendarManagerFrame extends EfzinInternalFrame
>
> The super class has the following code..
>
> public class EfzinInternalFrame extends JInternalFrame
> {
> //Data
> members-------------------------------------------------------------
> private static int openFrameCount = 0;
> private static final int xOffset = 30, yOffset = 30;
> private static Vector addedFrames = new Vector();
> private static boolean selectedStatus = false;
> private static Object selectedFrame=null;
>
>
//Methods------------------------------------------------------------------
> public EfzinInternalFrame()
> {
> super();
> addedFrames.add(this);
> openFrameCount++;
> try
> {
> jbInit();
> }
> catch (Exception e)
> {
> e.printStackTrace();
> }
>
> }
>
> private void jbInit() throws Exception
> {
> //Set Default close operation
> setDefaultCloseOperation(HIDE_ON_CLOSE);
> this.addInternalFrameListener(new InternalFrameAdapter()
> {
> public void internalFrameDeactivated(InternalFrameEvent e)
> {
> EfzinInternalFrame.deActivateGetSelectedFrameMethod();
> }
>
> public void internalFrameActivated(InternalFrameEvent e)
> {
> EfzinInternalFrame.setSelectedFrame(EfzinInternalFrame.this);
> }
>
> }
> );
>
> }
>
> When i turn the EfzinCalendarManagerFrame to the designer a i get the
> ordinary message...
>
> Failed to create live instance for variable 'this'. null
> class java.lang.NullPointerException null
>
> The problem is that EfzinCalendarManagerFrame extends
EfzinInternalFrame.
> If i change the extends statement from EfzinInternalFrame to
JInternalFrame
> i will not get error. The weird is that when i open the
EfzinInternalFrame's
> designer tab all are correctly. Do you know a possible reason of this
> annoying behaviour?(I dont implement any abstract class either an
interface)
> Thank you for advance.
>
>
>
>
>
>
Technical Details
Message-ID:
<3f525fef@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!pln-w!extra.newsguy.com!lotsanews.com!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3f50c3dc$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,1d5aaa23692dca6 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2003-08-31 14:02:49 PST From: "Kevin Dean" <NkOdSePaAnM@datadevelopment.com> Newsgroups: borland.public.jbuilder.java.swing References: <3f50c3dc$1@newsgroups.borland.com> Subject: Re: No abstract class, no interface but -> Failed to create live instance for variable 'this'. null Date: Sun, 31 Aug 2003 16:51:23 -0400 Lines: 94 Organization: Dolphin Data Development Ltd. X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 130.15.121.121 Message-ID: <3f525fef@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1062363119 130.15.121.121 (31 Aug 2003 13:51:59 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!pln-w!extra.newsguy.com!lotsanews.com!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail