-
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
-
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
>
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks