• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Felipe Brancaleone
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
put the textfield in a JDialog instead of the popup menu?
 
Felipe Brancaleone
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So i need to reproduce the entire jpopupmenu behavior?, implements all the jpopupmenu features?? that's a lot of things
 
Michael Dunn
Ranch Hand
Posts: 4632
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic