🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Please Helpe ME !!!!, Very Serious Problem using Visual Inheretence URGENT

#10591
From: GregW
Date: Sun, 29 Aug 1999 00:00
120 lines
4358 bytes
From what you wrote it sounds to me like you are not happy with how the IDE
displays components in the structure pane. If you add, for example, a java
bean that has components within it to a parent class, the bean is treated as
an individual, atomic component. You cannot select the bean's sub-components
from the parent class (in this case we are talking about the parent in which
the been was added, not the base class). In other words, the IDE's structure
pane allows you to select components of the class you are currently working
in, not all components of any class anywhere.



Michel P�rez <mperez@eurobanco.com> wrote in message
news:7pbpc8$scg3@forums.borland.com...
> Hello World !
>
> In the previous e-mail there was a little mistake, but here is right.
>
> I'm new using JBuilder 3, and I have a very big and serious problem. I
need
> that somebody help me as soon as posible.
>
> The matters is:
>
> I have designed a class that extends from JPanel with a JTabbedPane, and
two
> JPanels  components in it, this class was created using  the Panel Snippet
> from new menu, this class is called by me (EContainer). After that I
created
> a new class that extends from EContainer using the Snippet Class again,
but
> the
> problem is that my new class (Test), which extends from EContainer,
behavior
> is strange,
> because I can't access no one extended component in my new class  at
design
> time in the
> Component Tree,  Structure Pane JBuilder IDE enviroment, and I need access
> thouse
> component in my new class (Test), in order to add more component to the
new
> class,
> but I don't have visual access at design time.
> I need to solve this problem and I'm very
> worry about that, below are the codes:
>
> //////// CLASS EContainer ///////////
>
> package ebank.econtainers;
>
> import java.awt.*;
> import javax.swing.*;
>
> public class EContainer extends JPanel
> {
>
>     BorderLayout borderLayout1 = new BorderLayout();
>     JTabbedPane jTabbedPane = new JTabbedPane();
>     JPanel jPanelContainerBusqueda = new JPanel();
>     JPanel jPanelContainerManejo = new JPanel();
>      JButton jButton1 = new JButton();
>
>     public EContainer()
>     {
>         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);
>     }
> }
>
>
> /////////////////////// NEW CLASS Test  ////////////
>
> package ebank.econtainers;
>
> import ebank.econtainers.*;
> public class Test extends EContainer {
>     public Test() {
>      }
> }
>
> I have tried many possible solutions, like change all data member acces to
> public in the father class (EContainer), and so on,   but everything was
> unsuccessfully.
>
> I don't know if JBuilder 3 have a bug and is impossible handle Visual
> Inherentence. Does somebody have  tried something like this ? I don't know
> if the trouble is that my father class (EContainer) extends from JPanel
and
> that generates the problem. I need to extends my father class from JPanel
or
> an container like this. What could I do ? Or Any special class ?
> How could I use visual inheretence  and  add more component in the child
> class, without get a an error ?
> Please HELP ME !!!
>
> I'm desperated......
>
> Thank you very Much
>
>
> Michel P�rez
>
>
>
>
>
Technical Details
Message-ID: <7qcjl9$4km1@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7pbpc8$scg3@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,c3778a7af33dcb11
X-Google-Attributes: gid111d45,public
From: "GregW" <corunda@linkline.com>
Subject: Re: Please Helpe ME !!!!, Very Serious Problem using Visual Inheretence URGENT
Date: 1999/08/29
Message-ID: <7qcjl9$4km1@forums.borland.com>
X-Deja-AN: 518682604
References: <7pbpc8$scg3@forums.borland.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing