Sponsors: Michael Fertik - Best JAVA Web hosting Company & 30% off


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-18-2009, 03:53 PM
Drun's Avatar
Member
 
Join Date: Nov 2009
Location: Indian Head, MD (Missing Pittsburgh PA)
Posts: 34
Rep Power: 0
Drun is on a distinguished road
Send a message via AIM to Drun
Default Makeing a dialog not steal full focus
I have a dialog but I don't want it to prevent the useage of the program that called it, I want the user to be able to still interact with the program even when the dialog box is up. My dialog I am working with inherates from TrayDialog.
__________________
Michael P. O'Connor
http://www.mikeoconnor.net
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 12-18-2009, 06:22 PM
Fubarable's Avatar
Moderator
 
Join Date: Jun 2008
Posts: 8,429
Rep Power: 11
Fubarable is on a distinguished road
Default
Since TrayDialog isn't a core Java class, our help here may be limited. The usual answer to this is to make the dialog non-modal. For JDialogs, there's a setter method, setModal, that is inherited from Dialog that fulfills this purpose. Whether this will work with a TrayDialog-derived class, well I just don't know.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 12-18-2009, 06:39 PM
Drun's Avatar
Member
 
Join Date: Nov 2009
Location: Indian Head, MD (Missing Pittsburgh PA)
Posts: 34
Rep Power: 0
Drun is on a distinguished road
Send a message via AIM to Drun
Default
TrayDialog is from the Eclipse RCP and it inherates from the Eclipse RCP Dialog object (just FYI)
__________________
Michael P. O'Connor
http://www.mikeoconnor.net
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 12-18-2009, 06:54 PM
Drun's Avatar
Member
 
Join Date: Nov 2009
Location: Indian Head, MD (Missing Pittsburgh PA)
Posts: 34
Rep Power: 0
Drun is on a distinguished road
Send a message via AIM to Drun
Default
Also Thanks for the info, I will admit I never heard of something being "modal" and "non-modal" so I did not even think of using that term in my google searches, but from your post I ended up putting that in and ended up at the anser at this site.

<site removed as appently I can not post links yet. but here is the text from the site
Quote:
This question would be better asked on the platform newsgroup, since it's not related to JDT at all. Looking at the Dialog class' constructor I see:

protected Dialog(IShellProvider parentShell) {
super(parentShell);
setShellStyle(SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL
| getDefaultOrientation());
setBlockOnOpen(true);
}

I don't know if you can call setShellStyle again in a derived constructor.


kumardi@xxxxxxxxxx wrote:

Hi,
Could anyone please tell me if there is a way to create a non-modal dialog as
part of the org.eclipse.jface.dialogs class ?

I tried looking into help and docs but could'nt find which of the standard dialogs is a
non-modal. If there is none then how do I create a non-modal or modeless dialog that
I want to use in a Java plug-in ?

Thanks,
Dinesh
>

Again thanks.
__________________
Michael P. O'Connor
http://www.mikeoconnor.net
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Default Focus in JOptionPane Dialog Gajesh Tripathi AWT / Swing 5 11-11-2009 02:59 PM
Default Focus in JOptionPane Dialog Gajesh Tripathi AWT / Swing 1 11-09-2009 12:15 PM
how to get the full file name priyanka3006 Database 0 08-05-2009 12:55 PM
Full screen test Java Tip java.awt 0 06-23-2008 11:24 PM
Full screen Jack Advanced Java 2 07-02-2007 05:49 AM


Java Forums is supported by the best jsp hosting.

All times are GMT +2. The time now is 05:01 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org