Article View: borland.public.jbuilder.java.swing
Article #10819JTree
From: Redding Bacon
Date: Thu, 05 Aug 1999 00:00
Date: Thu, 05 Aug 1999 00:00
21 lines
1336 bytes
1336 bytes
Hello, I have an applet that consists of a JTable and some Swing text components. The JTable and the text components all need to display the same information. This information is stored as strings in objects we created, called "Entity" objects. These objects are in turn stored in a vector, which implements the TableModel interface so that the Entity objects can be displayed in the JTable. The problem is that I don't know how to determine what is selected in the JTable when you click on it to select an Entity. The other text components need to know what is selected in the JTable at all times. How can these swing components know when the selection in a JTable has changed? Do I need to implement an other interface somewhere that will allow the other componenets to "listen" for a "JTable selection change-event"? Thanks JB, Redding Bacon reddingbacon@msn.com
Technical Details
Message-ID:
<7ocpq5$rmg9@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,d4e00059ea25e7b3,start X-Google-Attributes: gid111d45,public From: "Redding Bacon" <reddingbacon@msn.com> Subject: JTree Date: 1999/08/05 Message-ID: <7ocpq5$rmg9@forums.borland.com> X-Deja-AN: 509300114 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: RMS X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing