AbstractCellEditor for other components

From: Miguel De Anda (sodamnmad_at_hotmail.com)
Date: 07/28/04


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.



Relevant Pages

  • Re: Iceweasel freezes and iceape vulnerabilities and instability
    ... popup is fixed in place within the browser window, ... the browser is doing its job; it is just possible to do some really ... Funny you mention this -- I don't think this is due to malicious code, ...
    (Debian-User)
  • RE: [PHP] Conditional popup driven from server-side
    ... otherwise display normal browser page. ... if there aren't errors then popup a modal ... window and start processing while displaying ... server, and then get the server to close it when done. ...
    (php.general)
  • Re: Avira AntiVir (free version) - Is this now adware?
    ... When I went to manually update, got an ad. Got back to the host this morning and saw another popup window with their ad. ... It could be wonderful cake but not if you occasionally get a turd smooshed into your face. ...
    (alt.comp.anti-virus)
  • Re: Avira AntiVir (free version) - Is this now adware?
    ... Seemed okay but it seems plagued with ads trying to get the user to buy into their premium version. ... When I went to manually update, got an ad. Got back to the host this morning and saw another popup window with their ad. ... It could be wonderful cake but not if you occasionally get a turd smooshed into your face. ...
    (alt.comp.anti-virus)
  • Popup hell !
    ... Go onto your hard drive and look for folders which have ... >noticed a new breed of popup begin to intrude itself. ... redirecting it away from the page I ... >sized popup window, I get my main browser window ...
    (microsoft.public.windows.inetexplorer.ie6.browser)