The Artima Developer Community
Sponsored Link

Java Buzz Forum
Swing Hack - Editable Table Header

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Scott Delap

Posts: 1154
Nickname: scottdelap
Registered: Sep, 2004

Client / Server application developer.
Swing Hack - Editable Table Header Posted: Feb 10, 2005 8:35 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Scott Delap.
Original Post: Swing Hack - Editable Table Header
Feed Title: ClientJava.com
Feed URL: http://www.clientjava.com/archives/wireless_mobile.rdf
Feed Description: Client/Desktop Related Java Development
Latest Java Buzz Posts
Latest Java Buzz Posts by Scott Delap
Latest Posts From ClientJava.com

Advertisement

Swing Hack - Editable Table Header
There may come a time when an application using JTable may need to allow the user to change the header values just like changing a cell. This demonstrates a component that allows the header values to be edited by double-clicking a header. The "header editor" works in the same manner the cell editors work, by adding a editor component and setting it's bounds to be the same as the column header/cell being edited. This effectively overlays the header with the editor. When the EditableHeaderSupport object "senses" that editing is complete by either the editing component losing focus or by a TableColumn event, the editor component is removed and the underlyng header is repainted...

Read: Swing Hack - Editable Table Header

Topic: Resources for Automatic Updates of Java Applications Previous Topic   Next Topic Topic: .NET Nullable Trilogy

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use