Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JDialog not listening to events

 
amar nath jha
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

In my application we are creating a custom dialog which is having help option . When user click on that help a new non model dialog will get poped up which will explain all the option available in parent dialog . Now problem is that new help dialog is not listening to any event even close (X) button is not working properly . But as soon as we close parent dialog it starts listening to all the events and behave normally .

Both the dialog have same parent frame . is it because of this ?

Please help me to fix this problem.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by amar nath jha:

Both the dialog have same parent frame . is it because of this ?


Not sure. However this doesn't sound logical.
Parent of the first dialog should be the base frame.
Parent of the second dialog should be the first dialog.
 
amar nath jha
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Yes, you are correct I have fixed the problem by making dialog parent of another dialog.

Thanks for your help
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!