|
-
Data Xchange from JDialog to JTable using JButton
My head is spinning about how to get this to work. What is really confusing me is the data exchange from the JDialog.
I have a JTable where one of the columns uses a JButton as the cell editor for each cell in that column. That part seems to be no problem. The JButton is labeled "Define Staff..."
When the user clicks on the JButton, a JDialog containing a JList is to appear. If the user clicks cancel, the JDialog is disposed and nothing happens. If the user clicks OK, the selected items are to be returned to the cell in some way and the label of the JButton is to change to "Modify Staff..."
How can I return the list from the JDialog to the "cell" so that when I access the cell using getValueAt() I get the list of values, and not the JButton object?
Similar Threads
-
By Peter Prager (Canam Software) in forum vb.announcements
Replies: 0
Last Post: 08-15-2001, 10:48 AM
-
By Joar Vatnaland in forum XML
Replies: 0
Last Post: 05-18-2001, 04:37 AM
-
By Joar Vatnaland in forum XML
Replies: 0
Last Post: 05-17-2001, 12:06 PM
-
Replies: 7
Last Post: 01-13-2001, 02:15 PM
-
By Desmond Cassidy in forum authorevents.kurata
Replies: 3
Last Post: 04-19-2000, 03:54 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks