🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #19244

setSize() problem with tabsetpanel + treecontrol

#19244
From: Jes Nielsen
Date: Fri, 27 Feb 1998 00:00
31 lines
1419 bytes
Hi all

    I am trying to resize 2 treecontrols within a tabsetpanel, when the app
is shown (or resize) to restrict the size to 1/3 of the frame size, but when
the frame is shown the tabs are all gone, until I resize the frame either by
pulling the edge of the frame or by maximize it. Why ?? Can anybody give me
a hint?

Here is the code:

void packageTabsetPanel_componentResized(ComponentEvent e) {
    Dimension dm = this.getSize();
    Insets ins = packageTabsetPanel.getInsets();
    packageTabsetPanel.setSize((dm.width / 3), dm.height);
    packageTabsetPanel.validate();
    Dimension packDm = packageTabsetPanel.getSize();
    coreTree.setSize(packDm.width-(ins.right+ins.left),

packDm.height-(ins.top+ins.bottom)-coreTree.getHScrollbarHeight());
    extTree.setSize(packDm.width-(ins.right+ins.left),

packDm.height-(ins.top+ins.bottom)-coreTree.getHScrollbarHeight());
    coreTree.validate();
    extTree.validate();
  }


    Thanks

    Jes
Technical Details
Message-ID: <6d4vdg$5h4m$1@news-inn.inet.tele.dk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,6c1645c89f52ca2b,start
X-Google-Attributes: gidf74b3,public
From: "Jes Nielsen" <frode_ni@post7.tele.dk>
Subject: setSize() problem with tabsetpanel + treecontrol
Date: 1998/02/27
Message-ID: <6d4vdg$5h4m$1@news-inn.inet.tele.dk>
X-Deja-AN: 329013700
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Newsgroups: borland.public.jbuilder.java.language