This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
JPopupMenu + JMenu + JTextField how can i edit JTextField on this structure??
Felipe Brancaleone
Greenhorn
Joined: Nov 30, 2008
Posts: 3
posted
0
Hi everyone,
I'm putting a JTextField inside a JMenu and this inside a JPopupMenu, when the mouse clicks JTextfield nothing happen in the view, i can print something to test if my listener is working and ok, but in the component, again, nothing happen. What can i do??
Here is a code part:
All my code is inside a class that extends JPopupMenu...
Any help is welcome!!!
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
0
put the textfield in a JDialog instead of the popup menu?
Felipe Brancaleone
Greenhorn
Joined: Nov 30, 2008
Posts: 3
posted
0
So i need to reproduce the entire jpopupmenu behavior?, implements all the jpopupmenu features?? that's a lot of things
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
0
can you describe the behavior you're after, or, better yet, post a simple compilable/runnable application
that shows the problem (along with the steps to reproduce the problem).
I'd be surprised if a dialog needed much work to get your desired effect.