Results 1 to 7 of 7
  1. #1
    dragonwitch is offline Member
    Join Date
    Sep 2008
    Posts
    5
    Rep Power
    0

    Default DialogPage needs to go in and out of focus

    Hello all,
    I was hoping someone could tell me if its possible to allow the user to decide what has focus on their screen even when using a DialogPage. The problem is my users need to see other information to fill in the DialogPage. The current setup has the DialogPage in full power of the screen unless they close it or finish filling it in and click ok. I want it to stay open and be accessable but allow the user to access other screens.
    I would rather not rewrite the whole page, so any help would be deeply appriciated.

  2. #2
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    8

    Default

    there is something called focus traversal in the awt or JStuff - we can help you further but percholate for focus traversal for a moment.
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,559
    Rep Power
    25

    Default

    Is your dialog window modal? Have you tried it non-modal? Is that the effect you want? Then you'll need a way to have the calling program receive what was input to the dialog. Perhaps a callback from the dialog to the main program.

  4. #4
    dragonwitch is offline Member
    Join Date
    Sep 2008
    Posts
    5
    Rep Power
    0

    Default

    It acts modal, I believe that is a default setting that I've been trying to unset. Another when it is done so the callback is already in there. I just need to find the secret to changing a Dialogbox to non-modal or to not force focus. One of those might work if anyone knows the answer.

  5. #5
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,559
    Rep Power
    25

    Default

    If you are using a Dialog, then modal is one of its parameters.
    If you are using some other class, read the API doc for it to see if it has a modal param.
    What class are you using?

  6. #6
    dragonwitch is offline Member
    Join Date
    Sep 2008
    Posts
    5
    Rep Power
    0

    Default

    "public class mySearchPage extends DialogPage implements ISearchPage, ISearchPageView, ViewListener". ISearchPage appears to be a homemade abstract but there isn't much to it.

  7. #7
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,559
    Rep Power
    25

    Default

    Whoops. Sorry, I didn't notice that this thread was in the SWT area. None of those classes sound familiar.

Similar Threads

  1. set focus to the textfield
    By paty in forum New To Java
    Replies: 2
    Last Post: 07-09-2010, 08:28 AM
  2. Get Focus on Image button
    By diva_garg in forum SWT / JFace
    Replies: 0
    Last Post: 08-08-2008, 11:14 AM
  3. Focus Traversal Demo in SWT
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-07-2008, 04:37 PM
  4. how to focus to another JTextfield?
    By birdofprey in forum AWT / Swing
    Replies: 2
    Last Post: 04-09-2008, 01:08 PM
  5. Focus
    By Marty in forum AWT / Swing
    Replies: 1
    Last Post: 05-31-2007, 02:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •