re:Jframe focus


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: re:Jframe focus

  1. #1
    usha Guest

    re:Jframe focus


    i have associated a java program with a word macro. once the macro is started,
    a jframe pops up and
    i want the user to type some data into the jframe. either the user types
    data or he closes the window.
    so the focus should not shift from the jframe whatever the user does. any
    suggestions of how can i do this
    thanks
    usha


  2. #2
    Paul Clapham Guest

    Re: re:Jframe focus

    You want your Java program to prevent the Windows user from switching away
    from it to other Windows applications? This is called "system modal" in
    Windows-speak. I believe that Windows NT does not permit this at all. And
    in Windows 95/98, it's barely possible for an experienced systems programmer
    (read: C++).

    At any rate, what you're asking for is completely opposed to how Windows
    works.

    PC2

    usha <utallury@hotmail.com> wrote in message
    news:3a7881ea$1@news.devx.com...
    >
    > i have associated a java program with a word macro. once the macro is

    started,
    > a jframe pops up and
    > i want the user to type some data into the jframe. either the user types
    > data or he closes the window.
    > so the focus should not shift from the jframe whatever the user does. any
    > suggestions of how can i do this
    > thanks
    > usha
    >




  3. #3
    usha Guest

    Re: re:Jframe focus



    i used window listener on windowDeactivated to bring the frame toFront(),
    which solved my problem. it worked on windows 95. i have to test it on nt
    usha

    "Paul Clapham" <pclapham@core-mark.com> wrote:
    >You want your Java program to prevent the Windows user from switching away
    >from it to other Windows applications? This is called "system modal" in
    >Windows-speak. I believe that Windows NT does not permit this at all.

    And
    >in Windows 95/98, it's barely possible for an experienced systems programmer
    >(read: C++).
    >
    >At any rate, what you're asking for is completely opposed to how Windows
    >works.
    >
    >PC2
    >
    >usha <utallury@hotmail.com> wrote in message
    >news:3a7881ea$1@news.devx.com...
    >>
    >> i have associated a java program with a word macro. once the macro is

    >started,
    >> a jframe pops up and
    >> i want the user to type some data into the jframe. either the user types
    >> data or he closes the window.
    >> so the focus should not shift from the jframe whatever the user does.

    any
    >> suggestions of how can i do this
    >> thanks
    >> usha
    >>

    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center