File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: JPopupMenu + JMenu + JTextField how can i edit JTextField on this structure??
 
Similar Threads
Right-Click on JMenuItem
right click with Jlist
Right click in text editor
JMenuItem Accelerators does not work with me
JMenuBar Rollover