AbstractCellEditor for other components
From: Miguel De Anda (sodamnmad_at_hotmail.com)
Date: 07/28/04
- Next message: ak: "Re: Modal InternalFrames, has been a bug since 1.2 release.. is it fixed in 1.5?"
- Previous message: Aaron Davies: "Re: Programmtically Scrolling a Scrollpane"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 28 Jul 2004 13:50:56 -0700
I'm trying to have a table that can be editted using my own custom
component. The problem I have is that if I subclass the
AbstractCellEditor, the component appears in the cell. I understand that
this is correct behaviour but I need something that acts a bit like the
combo box (that pops up below the text box's position).
The component I'm using is not a combo box but I want it to be similar.
Instead of the list, I have a slider that allows you to input a time
value. I already have a simple component that does this, but I can't put
it into the JTable.
I've been looking around and found that the Popup class may be the way
to go. This seems promising but the popup needs to know the position of
the origincal component, furthermore, it needs to get moved along with
the window, if it gets moved. The combo box seems to do all of this
without any flickering (that I imaging I'll get if I move the popup
everytime the main window gets moved).
Does anybody have any ideas as to how I can do this?
Miguel.
- Next message: ak: "Re: Modal InternalFrames, has been a bug since 1.2 release.. is it fixed in 1.5?"
- Previous message: Aaron Davies: "Re: Programmtically Scrolling a Scrollpane"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|