473,396 Members | 1,877 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Windows Focus for Java application

I have a small Java frame with a couple of buttons and text fields but I would like it to reside on top of Notepad and any other pacakges I have open. Is this possible?? If so does anyone know how I go about it?

Thanks.

Annette
Oct 23 '07 #1
2 1552
JosAH
11,448 Expert 8TB
I have a small Java frame with a couple of buttons and text fields but I would like it to reside on top of Notepad and any other pacakges I have open. Is this possible?? If so does anyone know how I go about it?

Thanks.

Annette
Have a look at the setAlwaysOnTop() method in the Window class (it's a
parent class of the JFrame class).

kind regards,

Jos
Oct 23 '07 #2
Have a look at the setAlwaysOnTop() method in the Window class (it's a
parent class of the JFrame class).

kind regards,

Jos
Thank you - I will take a look at this and see if I can manage to get it working.

Regards.

Annette
Oct 23 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: PC | last post by:
It's obvious, that Windows XP has a Java 2 VM (including the SWING-module), because we can all run Java 2 applets in Internet Explorer. But what about the support for Java 2 Applications? I...
4
by: inquirydog | last post by:
Hello- I, the inquirydog, would like to solicit suggestions for a new web page I am making: I am creating a simple website that will translate concepts between windows os's, Linux, and the...
16
by: Robert Mark Bram | last post by:
Hi All! Is there a way to reference a window by name without doing something like this: open (, 'windowName'); The open method will open a blank window if there is no window with such a name....
0
by: Gert van der Kooij | last post by:
For those who are interested: At http://www.redbooks.ibm.com/abstracts/sg247102.html you can find an interesting new redbook: DB2 UDB V8.2 on the Windows Environment Copied from that site:...
0
by: Vinod. | last post by:
Hi all, I have added browser control to a windows form. I am loading pages having multiple frames. I have noticed that the focus in a text is not maintained when the application is deactivated....
18
by: steve.anon | last post by:
Hi I'm a Java developer moving to windows only applications. Of course the first thing I thought was "well at least, without the VM now I can write desktop applications that run real fast". So I...
4
by: sam | last post by:
hi, How to set constant focus on window form in c#. cheers Sam
3
by: Steven | last post by:
I have a question about the focusing on windows form control. First of all, I have a main windows form (MainFrm) for my application, another form (NewFrm) will be displayed if pressing one of the...
12
by: Von Clubusev | last post by:
I like Java just as much as I like C#, but the truth is that unless you absolutely need platform portability, DotNet is the way to go. This is becoming even more true with the release of Windows...
9
by: Mohitz | last post by:
Hi, How do you write a Windows GUI application in C++ ?? And is C++ the best language to write GUI applications in? Thank you Mohit
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.