🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #1774

Setting a custom Base class when creating a File/New/Frame (problem)

#1774
From: Kostas
Date: Sat, 19 Jul 2003 18:11
44 lines
2492 bytes
Hi all,
I  make a class that extends JInternalFram, the class is called
MicraInternalFrame. When i create a new Frame i set the base class to be
MicraInternalFrame instead of JInternalFrame. At the time i click to the
design tab of the new frame i get this message...

1)Failed to create live instance for variable 'this'. MicraInternalFrame
2)class java.lang.NullPointerException null

I put below the MicraInternalFrame code...

import javax.swing.JInternalFrame;
import java.awt.event.*;

public class MicraInternalFrame extends JInternalFrame
   {
    //Data
members-------------------------------------------------------------
    static int openFrameCount=0;
    static final int xOffset=30, yOffset=30;


//Methods------------------------------------------------------------------
     public MicraInternalFrame(String title, boolean isResizable, boolean
isClosable, boolean isMaximizable, boolean isIconifiable)
      {
       super(title, //frame title
            isResizable,  //resizable
            isClosable,  //closable
            isMaximizable,  //maximizable
            isIconifiable); //iconifiable

                 //Set Default close operation
                 this.setDefaultCloseOperation(HIDE_ON_CLOSE );

       //Manage the Window position
       setLocation(xOffset*openFrameCount,yOffset*openFrameCount);
      }//contructor

    }//class MicraInternalFrame

Can anyonne tell me what is wrong? The class MicraInternalFrame or a wrong
configuration with the JB8?
Thank you for advance,  Kostas.
Technical Details
Message-ID: <3f1989ed@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,3468875c5b81a96e,start
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2003-07-19 11:17:51 PST
Reply-To: "Kostas" <karadamoglou_k@yahoo.gr>
From: "Kostas" <karadamoglou_k@yahoo.gr>
Newsgroups: borland.public.jbuilder.java.swing
Subject: Setting a custom Base class when creating a File/New/Frame (problem)
Date: Sat, 19 Jul 2003 21:11:51 +0300
Lines: 46
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 62.1.5.37
Message-ID: <3f1989ed@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1058638317 62.1.5.37 (19 Jul 2003 11:11:57 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail