🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Using a JLabel to display a node from a JTree

#10224
From: Jeff Marendo
Date: Fri, 29 Oct 1999 00:00
7 lines
874 bytes
Figured it out.  Code snippet...

implements TreeSelectionListener {
      public void valueChanged(TreeSelectionEvent event) {
        TreePath path = event.getPath();
        String reportName = path.getLastPathComponent().toString();
        statusBar.setText(reportName);
Technical Details
Message-ID: <7vc8ot$smt11@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7v9po9$9a84@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,415b59006932944a
X-Google-Attributes: gid111d45,public
From: "Jeff Marendo" <marendoj@commos.com>
Subject: Re: Using a JLabel to display a node from a JTree
Date: 1999/10/29
Message-ID: <7vc8ot$smt11@forums.borland.com>
X-Deja-AN: 542058836
References: <7v9po9$9a84@forums.borland.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Organization: CommTech Corporation
X-MSMail-Priority: Normal
Reply-To: "Jeff Marendo" <marendoj@commos.com>
Newsgroups: borland.public.jbuilder.java.swing