This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
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

Strange problem, closing dialogs  RSS feed

 
George Siountris
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my application I use JmenuBar and JmenuItems and a class adapter for event handling

and a class adapter for event handling

everything works fine when Help|About pressed(the dialog appears)
though when I try to close it I must press ok button twice!?
Need help to solve this problem.(same problem with other dialogs in my application).
 
Rama Ituarte
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does the code look like in the Adapter class that is handling the events?
 
George Siountris
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
did a mistake during copy paste..the right adapter class is

[ October 17, 2002: Message edited by: George Siountris ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!