Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

modal JDialog not responding to jbutton actionlistener?  RSS feed

 
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().
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!