🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Very Serious Problem using Visual Inheretence URGENT

#10711
From: Tad Frysinger
Date: Fri, 20 Aug 1999 00:00
70 lines
2098 bytes
I noticed a couple of things.  First off, you aren't precise about the 
names of your classes.  For example, the 'Test' extends Container, not 
Kontainer.

Second, you have to be sure and import the right package, since your 
example has the parent in a different package.  The following works fine 
for me:

package tests;

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

public class PanelTest extends JPanel
{
    BorderLayout borderLayout1 = new BorderLayout();
    JTabbedPane jTabbedPane = new JTabbedPane();
    JPanel jPanelContainerBusqueda = new JPanel();
    JPanel jPanelContainerManejo = new JPanel();
    JButton jButton1 = new JButton();

    public PanelTest()
    {
        try  {
          jbInit();
        }
        catch(Exception ex) {
          ex.printStackTrace();
        }
    }

    private void jbInit() throws Exception
    {
        this.setLayout(borderLayout1);
        jButton1.setText("jButton1");
        this.add(jTabbedPane, BorderLayout.CENTER);
        jTabbedPane.add(jPanelContainerBusqueda, "Busqueda de   ");
        jTabbedPane.add(jPanelContainerManejo, "Manejo de ");
        jPanelContainerManejo.add(jButton1, null);
    }

}

package dbtests;

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

public class PanelChild extends PanelTest
{
    public PanelChild() {
        try  {
            jbInit();
        }
        catch(Exception e) {
            e.printStackTrace();
        }
    }

    private void jbInit() throws Exception
    {
    }

}


Tad Frysinger (TeamB)
Technical Details
Message-ID: <MPG.12270ae9c233278c989692@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7p1t5j$ij98@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,e1b314c03d055c2d
X-Google-Attributes: gid111d45,public
From: tfrysinger@earthlink.net (Tad Frysinger)
Subject: Re: Very Serious Problem using Visual Inheretence URGENT
Date: 1999/08/20
Message-ID: <MPG.12270ae9c233278c989692@forums.borland.com>
X-Deja-AN: 515113120
References: <7p1t5j$ij98@forums.borland.com>
Organization: RTOne
Newsgroups: borland.public.jbuilder.java.swing