Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #1662

Re: How to add two compon

From "hiwa" <hiwa@THRWHITE.remove-dii-this>
Subject Re: How to add two compon
Message-ID <1179564873.673692.116620@o5g2000hsb.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
References <1179479624.913616.278950@q75g2000hsh.googlegroups.com>
Date 2011-04-27 15:34 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
On May 18, 6:13 pm, deep <deep.shin...@gmail.com> wrote:
> Hi All,
>
> I am trying to add two buttons in table header for different
> functionalities. I want to catch pressed / unpressed event of the
> buttons separately. Is it possible to have two components in table
> header and they should work independently accroding to events fired on
> them.
>
> If this is possible. Please guide me or provide some sample code.
>
> Thanks in advance.
> -Deepak

You could write a custom JTableHeader.
But I'm afraid it's a waste of time because you could simply add plain
JButtons in a sub-container laid out above your table.

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

How to add two components "deep" <deep@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
  Re: How to add two compon "hiwa" <hiwa@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000

csiph-web