• Post Reply Bookmark Topic Watch Topic
  • New Topic

modal JDialog not responding to jbutton actionlistener?

 
Andre Mermegas
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am i missing something here? i dont understand why
it works in nonmodal,but not modal.

 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try moving your anonymous listener code right after you create the button. Right now it is after setVisible().
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!