• Post Reply Bookmark Topic Watch Topic
  • New Topic

SWT n Jface  RSS feed

 
Sunil Aggarwal
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a created a wizard using Jface. One clicking on one of the buttons in the contents area(it is not the buttonBar button like NEXT etc), I display a TitleAreaDialog. Now my problem is that:

a.) For this TitleAreaDialog I have created a new Shell, is it okay for me to create a new Shell for this Dialog or I have a better option?

b.) I want that clicking on one button of the above mentioned TitleAreaDialog should display another TitleAreaDialog on top of it, is it possible to have one Dialog displayed over another? I dont think so but what other way can I do it?

Regards,
Neha
 
Anand Karia
Ranch Hand
Posts: 156
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Neha

With respect to your option b,

Yes you can have Dialog box over another dialog box. As i m using a JDialog as my front hand, and onclicking Delete button it confirm whether you want to delete transation or not. If i say "YES" then transaction is deleted.

Hope this would help you out.
 
Anand Karia
Ranch Hand
Posts: 156
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here is test form for your option b. Compile and run it


 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!