🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

java.lang.NullPointerException at javax.swing.ImageIcon

#10604
From: Thomas Reck Guggenberger
Date: Tue, 31 Aug 1999 00:00
77 lines
2892 bytes
I have made an application with a Frame a JScrollpane and a
JdbEditorPane and get after starting  the application with jre1.2 this
error message:
What is going wrong?


Exception in thread "main" java.lang.ExceptionInInitializerError: 
 java.lang.NullPointerException
        at javax.swing.ImageIcon.<init>(ImageIcon.java:106)
        at
com.borland.dbswing.DBTextDataBinder$UndoAction.<init>(DBTextData
        at
com.borland.dbswing.DBTextDataBinder.<clinit>(DBTextDataBinder.ja
        at
com.borland.dbswing.JdbEditorPane.commonInit(JdbEditorPane.java:1
        at
com.borland.dbswing.JdbEditorPane.<init>(JdbEditorPane.java:122)
        at unbenannt2.Frame1.<init>(Frame1.java:12)
        at unbenannt2.Anwendung1.<init>(Anwendung1.java:12)
        at unbenannt2.Anwendung1.main(Anwendung1.java:32)


/_____________________________________________________________________/

package unbenannt2;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import com.borland.dbswing.*;

public class Frame1 extends JFrame
{
    BorderLayout borderLayout1 = new BorderLayout();
    JScrollPane jScrollPane1 = new JScrollPane();
    JdbEditorPane jdbEditorPane1 = new JdbEditorPane();

    //Frame konstruieren
  public Frame1()
    {
        enableEvents(AWTEvent.WINDOW_EVENT_MASK);
        try 
        {
            jbInit();
        }
        catch(Exception e)
        {
            e.printStackTrace();
        }
    }

    //Initialisierung der Komponente
  private void jbInit() throws Exception 
    {
        this.getContentPane().setLayout(borderLayout1);
        this.setSize(new Dimension(400, 300));
        this.setTitle("Frame-Titel");
        jdbEditorPane1.setText("jdbEditorPane1");
        this.getContentPane().add(jScrollPane1, BorderLayout.CENTER);
        jScrollPane1.getViewport().add(jdbEditorPane1, null);
    }

    //�berschreiben, damit das Programm bei Herunterfahren des Systems
beendet werden kann
  protected void processWindowEvent(WindowEvent e)
    {
        super.processWindowEvent(e);
        if(e.getID() == WindowEvent.WINDOW_CLOSING)
        {
            System.exit(0);
        }
    }
}

thanks in advance

Thomas
Technical Details
Message-ID: <37CBD057.9E3ABBDC@transcom.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,abcc66d50b96d368,start
X-Google-Attributes: gid111d45,public
From: Thomas Reck Guggenberger <reck@transcom.de>
Subject: java.lang.NullPointerException at javax.swing.ImageIcon
Date: 1999/08/31
Message-ID: <37CBD057.9E3ABBDC@transcom.de>
X-Deja-AN: 519272003
Content-Transfer-Encoding: 8bit
X-Accept-Language: en
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: abuse@de.uu.net
Organization: Customer of UUNET Deutschland GmbH, Dortmund, Germany
Mime-Version: 1.0
NNTP-Posting-Date: 31 Aug 1999 11:52:32 GMT
Newsgroups: borland.public.jbuilder.java.swing