This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JPopupMenu + JMenu + JTextField how can i edit JTextField on this structure?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JPopupMenu + JMenu + JTextField how can i edit JTextField on this structure??" Watch "JPopupMenu + JMenu + JTextField how can i edit JTextField on this structure??" New topic
Author

JPopupMenu + JMenu + JTextField how can i edit JTextField on this structure??

Felipe Brancaleone
Greenhorn

Joined: Nov 30, 2008
Posts: 3
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
put the textfield in a JDialog instead of the popup menu?
Felipe Brancaleone
Greenhorn

Joined: Nov 30, 2008
Posts: 3
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
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.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: JPopupMenu + JMenu + JTextField how can i edit JTextField on this structure??
 
It's not a secret anymore!