How to Create Always on Top Window OR Frame

hi i m hasan, i m using windows 98, and i want to know that how to create a Window OR Frame, which should remain always on top. In windows 98 by pressing windows+D key hides all windows and dailog boxes. But I want it should remain always on top even if some one press windows+D key it should not be minimized.

Try this code. It should be work on all windows which are inherited from java.awt.Window
* Call this from class consructor
public void initialize() {
TopThread top = new TopThread();
top.start();
* Keep JWindow on top (inner class)
class TopThread extends Thread {
public void run() {
while(true) {
toFront();
* Let 10 milliseconds for other code to execute
try {
Thread.sleep(10);
catch(Exception e) {
// Nothing to do

Similar Messages

  • Problem creating an "always on top" window

    Hi to all,
    I'm developing an application and I want to create an "always ot top" window (for win32).
    I used madtown54's c++ code (http://forum.java.sun.com/thread.jsp?forum=57&thread=348024&message=1443221#1443221), but at runtime I receive this error:
    java.lang.UnsatisfiedLinkError: getNativeWindowHandle
    at com.tilab.newtel.popupclient.DisplayMessage.getNativeWindowHandle(Native Method)
    I'va also tried vdbjoris' code(http://www.esus.com/docs/GetQuestionPage.jsp?uid=102 ), but with the same result...
    Any suggestion?

    Thank you for your reply!
    Yes, I have. I receive an error when I try to call a native method, not when loading the .dll library.
    Any other suggestion?
    Luca

  • Always on top windows

    How can I make "Always on top" window in Java?
    Thanks

    Hi, i a using jdk1.3 on mandrake linux, how to make Jwindow reside on top of all the other windows, i've tried using the listeners, problem is once the focus moves to any of the child component of the window, the focus listener for Jwindow will not work, even requestFocus on the jwindow doesn't get the focus on the window, i can't take JFrame, (don't want title bar), if any body can help with JNI code on linux to make the Jwindow always on top.
    shivajee

  • How to create a pop up window while creation of the delivery note.

    Hello Experts
    How to create a pop up window while creation of the delivery note.
    As soon as we go in to delivery note creation screen in VL01N, immediately a pop up screen should be displayed on the screen containing the following details,
    For e.g.
    Str. Loc     Qty      UOM
    DE01        100        KG
    DE99          50        KG

    Dear all,
    i m having two document numbers for invoic of same types such as output type print program and smartform.
    biut the issue is im getting print preview for one invoic and for another invoic i m not getting any print preview.
    Directly the cursor comes to initial stage of vf03.
    suggest what to do
    Thanks and regarnds
    ravi

  • How to create restore point in windows server 2008 service pack1

    hi i am bhaskar ... how to create restore point in windows server 2008 service pack1 and how to restore system from a restore point in windows server 2008 service pack1.. is this option available or not ? what is the difference between shadow copies and
    restore point ? instead of restore point we have this shadow copies option in windows server 2008 ?Bhaskar

    AFIK, Restore Points doesn’t exist in Windows 2008.
    Volume Shadow Copy option can be used to achieve:
    Creating consistent backups of open files and applications
    Creating shadow copies for shared folders
    Creating transportable shadow copies using a hardware provider — for backup, testing and data mining scenarios
    Quickly recovering and restoring files and data
    It is more like a file, data, application backup. 
    Santhosh Sivarajan | MCTS, MCSE (W2K3/W2K/NT4), MCSA (W2K3/W2K/MSG), CCNA, Network+ Houston, TX
    Blogs - http://blogs.sivarajan.com/
    Articles - http://www.sivarajan.com/publications.html
    Twitter: @santhosh_sivara - http://twitter.com/santhosh_sivara
    This posting is provided AS IS with no warranties, and confers no rights.

  • Always-on-top window property

    Hi guys,
    Starting to like fx beta a lot.
    Is there any way to initialize stage with always-on-top window property? Any plans to support it?
    Thanks,
    Alexander.

    Yes It would be grate to support this,.

  • About "Always on Top" windows

    Hi all,
    My application needs an always on top window and I used a dll written
    by Mitch Goldstein. It works perfectly on jvm 1.3.1, but when I try it
    on jvm1.4.1 which is more popular today than 1.3.1, it just doesn't
    work, without any exceptions.
    Can anybody give some hints? Thanks a lot.
    The "Always on top" package written by Mitch Goldstein with examples
    can be downloaded from the following address:
    http://www.esus.com/javaindex/j2se/jdk1.2/javaxswing/toplevelcontainers/jframe/jframealwaysontop.html

    For JRE 1.3 and above, the following code addresses the issue of having two windows with the same title. The function takes a Frame as a parameter, gets the HWND using the AWT Native Interface, and then calls SetWindowPos. Agreed, this code is far more complicated than smg123's solution, but if there's a chance of two windows having the same title, it's probably better to use this:JNIEXPORT void JNICALL Java_JSystem_setWindowAlwaysOnTop__Ljava_awt_Frame_2Z (JNIEnv *env, jclass cls, jobject frame, jboolean flag)
         typedef jboolean (JNICALL* PJAWT_GetAWT) (JNIEnv*, JAWT*); // Function pointer
         JAWT jawt;
         JAWT_DrawingSurface* jds;
         JAWT_DrawingSurfaceInfo* jdsi;
         JAWT_Win32DrawingSurfaceInfo* jdsi_win;
         HANDLE hAWT;
         HWND hwnd;
         jboolean result;
         PJAWT_GetAWT JAWT_GetAWT;
         LPTSTR buf;
         jclass sys;
         jmethodID home;
         jstring ret;
            // This section of code is needed in order to find jawt.dll
         sys = (*env)->FindClass (env, "java/lang/System");
         home = (*env)->GetStaticMethodID (env, sys, "getProperty", "(Ljava/lang/String;)Ljava/lang/String;");
         ret = (jstring)(*env)->CallStaticObjectMethod(env, sys, home, (*env)->NewStringUTF (env, "java.home"));
         buf = (LPTSTR)(*env)->GetStringUTFChars (env, ret, NULL);
         strcat (buf, "\\bin\\jawt.dll");
         hAWT = LoadLibrary ((LPCTSTR)buf);
         if (!hAWT) return;
         JAWT_GetAWT = (PJAWT_GetAWT)GetProcAddress(hAWT, "_JAWT_GetAWT@8");
         jawt.version = JAWT_VERSION_1_3;
         result = JAWT_GetAWT (env, &jawt);
         jds = jawt.GetDrawingSurface (env, frame);
         jds->Lock(jds);
         jdsi = jds->GetDrawingSurfaceInfo (jds);
         jdsi_win = (JAWT_Win32DrawingSurfaceInfo *)jdsi->platformInfo;
         hwnd = jdsi_win->hwnd;
         SetWindowPos (hwnd, flag ? HWND_TOPMOST : HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
         jds->FreeDrawingSurfaceInfo (jdsi);
         jds->Unlock(jds);
         jawt.FreeDrawingSurface (jds);
         (*env)->ReleaseStringUTFChars (env, ret, buf);
    }Note that you must include jawt_md.h as that's where all the types such as JAWT are declared. You can link statically with jawt.lib, but as it is dangerous to assume the JRE version on the user's system, it's probably a better idea to link dynamically and handle any errors that occur.
    Hope that helps.
    Cheers

  • How to create recovery disk for windows 8.1 after update from windows 8.

    My laptop came with windows 8 and i have recovery discs for windows 8.
    Now i've updated to windows 8.1, so i want to creat recovery discs for windows 8.1.
     So in future when i use recovery discs i dont have to download windows 8.1 again.
    Please tell me if there is any way to do this.....

    As colakid posted, in Windows 8 the ability to create a recovery CD/DVD has gone. Your options are to:
    create a recovery USB; or
    create a recovery image.
    Recovery USB
    Colakid's post talks you through how to make a recovery USB: from control panel, choose Recovery, then Create a Recovery Drive, and follow the prompts.
    However, the 'recovery USB' can be a bit misleading. When the wizard starts, there is an option to 'copy the recovery partition from the PC to the recovery drive'. If you do not check this option, you will still need installation media to reset your PC.
    Since you have upgraded from Windows 8 to Windows 8.1, you will probably not be able to check this option, as it will be greyed out (like it is in the picture in Colakid's post).
    If you go ahead and create the USB anyway, you will be able to boot to it, but you won't be able to reinstall Windows unless you have the installation media (or possibly a system image, though I haven't tried that).
    Recovery image
    The recovery image is an image of your computer that Windows will use when you select the 'refresh my pc' option. You can create a recovery image using the recimg.exe tool.
    First, open an elevated command prompt (type cmd and press Ctrl + Shift + Enter).
    Next, create the recovery image by typing:
    recimg /createimage [path]
    Where [path] is the folder you want the image in, eg C:\Recovery. You cannot set the file name - it will always be called CustomRefresh.wim.
    Let it run its course. When it's done, you can check that it is the current recovery image by typing
    recimg /showcurrent
    It's important to keep in mind what a recovery image contains. It will have your Windows system files (in their current state), and the desktop apps you have installed (so it makes sense to do this after a fresh install of Windows). It will
    not backup any Metro apps or user files, because these are not deleted during a system refresh. If you want a complete backup of everything on your computer the way it is now, you should make take a complete system image (which
    can be done from the File History settings in control panel - at the bottom left there will be a 'System Backup Image' option - or you can do it using any other backup software like Ghost or Acronis).
    In my case, I created the recover image straight after upgrading to Windows and it was about 6 GB.
    Prepare/Create and register an recovery partition, so the option Copy the Recovery Partition becomes available in the recovery drive UI  application.
    In elevated command run> RECIMG -CREATEIMAGE C:\REFRESHIMAGE< 
    This will create a new custom.wim in a folder Refreshimage.
    Now lets get ready to register the path of the image, so our create recovery drive option(COPY THE RECOVERY PARTITION FROM THE PC TO THE RECOVERY DRIVE) becomes available.
    >  In the folder you created there will be a> custom.wim<
    change it to>INSTALL.wim<
    > Create a folder In Cd/directory using Elevated command> mkdir c:\Win8.1-Recovery,>
    Win81-Recovery<.
    > Copy the  INSTALL.WIM. Put in the Win81-recovery folder created.
    > Run in elevated commad>REAGENTC /SetOSImage /Path C:\Win81-Recovery\INSTALL.WIM /Index 1<
    Do not copy the arrows if using copy and paste, that is my way of pointing out lines of code
    Information provided by the link below, thanks Keith. I simplified the process for easy following and added my own tweak from trial and error for the install.
    blogs.technet.com/b/keithmayer/a···ive.aspx

  • How to create a setup for window form application including the related sql database?

    i have created a simple window form application project that have only 2 form..
    1st one for login in which it'll check the userid n password from database.if both are correct then it will go to 2nd form.
    now i want this project to run in another computer.
    i created a setup file but its showing some error regarding the database instances connection..
    so if anyone can tell me in details how to create the setup file then it'll b a great help..
    thanx in advance..

    Hi,
    Consider the above scenario,I suggest you to use the SQL Server Compact+ ClickOnce Deployment, A Compact SQL database is a file that can be bundled with your application installation. Below is a link guiding you through the creation process of a SQL Compact
    database.
    http://technet.microsoft.com/en-us/library/ms173009.aspx
    The following link discusses setting up the necessary dependencies and prerequisites for SQL Server Compact. (Note, you will need to scroll to the section entitled Private File–Based Deployment.)
    http://msdn.microsoft.com/en-us/library/aa983326(v=VS.100).aspx
    A ClickOnce Deployment can help you publish your application attach compact SQL database into client machine.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to Create Multiple Partitions in Windows?

    I have just carried out a clean install of Lion then used Boot Camp to install Windows.
    With Snow Leopard I had the ability to create multiple partitions in Windows but this seems impossible in Lion for whatever reason.
    Can anyone please tell me how to achieve this?

    If you're using Boot Camp, I'd post your question on the Boot Camp section:
    http://discussions.apple.com/category.jspa?categoryID=237

  • Always on top window (not modal)

    Hi, everyone:
    Is there a way of making a window to be displayed always on top? I don't want it to be a modal window. I want the user to be able to flip to another (background) form, but still being able to fully see my current form on top.
    Thanks a lot.
    Regards,
    Eugene.

    Yes this is possible - if you are using Forms client server on windows you can find the code on Metalink (metalink.oracle.com) Note:68822.1

  • How to create a new iTunes window ?

    I want to create a new iTunes window which will have only classical music.
    I tried first other options (you cannot move, only copy to playlist) :
    I created a subfolder and moved (actually copied) the tracks. I then try to erase the tracks from the main folder but it will also erase the tracks in the subfolder.
    I then try to uncheck (in the main) but then it uncheck also in the subfolder.
    How can I have these tracks in the subfolder and not in the main folder ?
    I guess if I create a new window it will work but I forgot how to do this (I knew it, I did it; I forgot how)

    Try a search

  • Can I make the TestStand Properties dialog an 'always on top' window?

    I am having window Z order problems, such that calling PropertyObject.DisplayPropertiesDialog() sometimes sends the window behind the my application window. This causes people to think that the application has crashed (it's only waiting for them to dismiss the properties dialog), and often results in the fatal three finger salute.
    This problem cannot be solved by setting Engine.AppMainHwnd, or using the PropDlgOption_ModalToAppMainWind option - it's a long story. Is there a way to set the Z-order priority of TestStand dialogs? If I could set the dialog to 'always on top', all my problems would be solved.
    Thanks,
    Aaron Stibich
    Senior Engineer
    Innovative Technologies Inc.

    Hi Aaron,
    Unfortunately there is no way in TestStand to set the Z order property. You may be able to use Windows API calls though to accomplish the same goal. I will however put in a product suggestion for you so that this request may be looked at.
    Thanks,
    Caroline
    National Instruments
    Thanks,
    Caroline Tipton
    Data Management Product Manager
    National Instruments

  • How to create a pop up window with text information?

    Hi experts,
    I am a newbie in LC and I have created a form to be sent to the vendors by our buyers.  Everything seems fine except the Accounting Manager would like to include our Financial Details in the form.  I would like to simply create a pop up window with the information which will be activated by pressing a button.  I have tried to create an invisible button and a visible button to achieve this but didn't succeed. 
    p.s. I have no javascript background but slowly learning.  I would appreciate if anyone can assist me to complete the task.
    Thanks a million.

    Hi Mdjco,
    Thanks for replying.  What I need to accomplish is to have another page of information with all the financial details on the pop up window and the vendor has a choice to print it out or not.  After the form is filled out, it is to be sent back to our buyers.  So instead of me inserting a 2nd page with the information, I would like to hide it unless someone presses a button to show it.
    I have found something like making 2 buttons, one is invisible with all the information on it and the other one "visible" to activate the invisble button.  Didn't work at all.
    Also another question is after the vendor insert the digital signature, it automatically asked to save (which I found out why from help) and then it opens up the email and sends the form as XML.  I will need it to send as PDF, possible??
    Much appreciated.

  • How can I always have popup windows appear on the same screen as PS?

    Hi,
    I'm hoping someone can help me out. I have 3 displays connected to my computer, 1 of which is a tablet screen I don't use all the time. (It gets disabled and put away when I turn on SLI for video gaming, or if I just dont need to draw anything at the moment)
    If I'm drawing something, I'll drag photoshop over to that 3rd screen and do my work. Later, if I want to just crop or resize an image or do simple image manip stuff, I'll drag the window back over to one of my other two screens. The problem I'm facing is that popup dialogs like the open file, save as, preferences; any new window that photoshop opens, appears on whatever monitor it did last time.
    Is there a way to force photoshop to always show those windows centered or at least on the same screen the rest of the program is working on? I've been searching for a while and the closest thing I found was a setting called 'Remember Palette Locations', but it looks like that setting was removed in CS5.
    I'm willing to change preferences, run some kind of reset script any time photoshop starts, or whatever, just something that will bring those new windows onto the screen I'm working on instead of where they last were. I sat perplexed for about 1 minute when I saved a picture as PNG. Went to upload it and.. ohp! it hasn't changed! Oh! There is an interlace option dialog is showing on a screen thats TURNED OFF >_>
    Computer info:
    2x 24" DELL Monitors (main screens)
    1x 19" Yiynova Tablet Dispay (used only when drawing)
    2x Nvidia GTX 560Ti Graphics Cards
    Windows 7 64bit
    Adobe Production Premium CS5.5
    Message was edited by: Barrakoda - Added computer info

    Your graphics driver's dialog repositioning option? Check that.
    Mylenium

Maybe you are looking for