dcsimg
JPopupMenu whit a JTextField
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Andrea_Chiumenti
Posted On:   Monday, October 29, 2001 07:10 AM

Hi,

I'm trying to create JPopupMenu with a JTextField inside.
So first I set popup layout to BorderLayout and then I put jtextf. inside.

The problem is that when i popup another menu or set my_new_menu to unvisible, textfield doesn't gain context (no caret, no event handlig).


But, if I push a button or a control that can handle focus before, and then popup the same menu, the textfield works fine.

I really can't understand this behaviour. Can tou help me ?

Thanks in advance,

/andrea

About | Sitemap | Contact