Always on Top problem

Hi!
I have swing application, which can create many frames and every created frame if .setAlwaysOnTop(true);
Al is fine. But shen all frames is opened, and I open, for example winamp, or some Open Office tools, this tools is under my swing application.
How is possible make setAlwaysOnTop(true) application scope? (It must be actually only for current Java application windows)
Thanks!
Hopeflly situation is clear...

Michael -> http://java.sun.com/docs/books/tutorial/uiswing/misc/modality.html
;) maybe helps you some day

Similar Messages

  • Firefox always on top problem

    when i use firefox 3.5.9 and then make it always on top of other windows even if i minimize the window for a short period to check another window and then re maximize it firefox still remembers the stay on top setting.
    but with version 3.6.3 if i set it always on top and then minimize and then maximise it forgets this setting and will be like any regular window. so how can i fix this. (every other windows program remembers the setting like firefox 3.5.9 but firefox 3.6.3 is a strange exception)

    When I restarted in safe mode, the firefox window was no longer stuck on top. Restarted again (firefox was set to "show my windows and tabs from last time" for both restarts) in regular mode and it stayed fixed. Maybe just a restart where "show my windows and tabs from last time" is firefox start up setting would fix stuck on top problem?

  • 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

  • Flash always on top in Safari 5.0.5

    Hi,
    I have some problems with flash in Safari 5.0.5 with Flash Player 10.2. My flash banners is always on top and covers menus and popups. wmode and z-index seems to be correct. It works as expected in the latest nightly build of webkit and Google Chrome, but not Safari.
    Here is the webpage, scroll down and you will see the flash covering the top menu: http://www.booli.se/bostad/villa/hisingen/plockerotegatan+16/786830
    I found this question on the same topic (https://discussions.apple.com/thread/2458855?start=0&tstart=0) where the problem was said to be solved with Safari 5.0.1. A test site was set up in that thread by user suastegui which can be found here: http://www.guru.ag/fl2/iframeTest/index.html. On this page the flash is still covering the other elements for me.
    Any ideas?

    BBC iPlayer relies on Adobe Air. AIR 1.5.3 is the last version of AIR that supports Mac PowerPC and Windows 2000. AIR applications that require AIR 2 or later cannot be installed or used on a Macintosh PowerPC or a computer running the Windows 2000 operating system.
    http://kb2.adobe.com/cps/853/cpsid_85304.html
    I am in the same boat. I cannot watch flash videos on the BBC website or on BBC iPlayer, although all other flash videos (YouTube for example) are fine.
    For reasons that passeth all understanding, they work with the PPC version of Firefox, called TenFourFoxG5.app, once you have anabled plug-ins, as it does not natively support Flash.
    You can download TenFourFoxG5 from here:
    http://www.floodgap.com/software/tenfourfox/
    Now for the intersting bit: TenFourFox, like Firefox, does not support most plug-ins. Unless you are prone to headaches (in which case don't) you can read about that here:
    http://code.google.com/p/tenfourfox/wiki/PluginsNoLongerSupported
    But there is a workaround!
    Open TenFourFox and type in the address bar: about:config (no spaces) and click return. This gives you a warning that it might harm the application. Ignore that and click on 'I'll be careful, I promise' and you get the config file that you can edit - with great care.
    Look/search (scroll down) for: tenfourfox.plugins.enabled
    Set it to true. (Double click it to toggle it)
    Now close TenFourFox, open it again, and Flash will now work, as it now uses the plug-ins that Safari has stored.
    I am using Flash 10.1.102.64 in TenFourFox and it works just fine.

  • Dreamweaver Panels - Only one panel visible at a time, others get obscured even with Always On Top.

    I have a problem with my Dreamweaver MX, and it is that I can only see one panel at a time, any other open panels get obscured. For example, with the work space maximized, and having the properties and behaviors panels open, I can only see one of the panels at the same time. If I click on any area of the work space each open panel will display and with the next click the other will display. If I make the work space smaller then the whole area of my screen, and move any open panels outside of the Dreamweaver work space, only then they will stay visible. I know this is not normal behavior, because I used to be able to see all the open panels simultaneously, with the work space maximized to use all the screen area. I went to Preferences> Panels> Always On Top, and all the checkmarks are still set, so as to keep all panels on top at all times, but this does no longer be the case. Can someone tell me what happened here, and how I can get back to being able to see all the open panels? BTW, I tried installing older version of Dreamweaver 4, and the same thing happens to both installed versions. This is extremely annoying!
    Thanks. -Al.

    Since I upgraded to Firefox 19 from 18.0.2, on my Windows XP (SP3) laptop, I, too, can no longer open a new window. File-->New Window does nothing; also can no longer tear off a tab and open it in a new window (it stays where it is). Also, if I right-click on a tab and select Move to New Window, nothing happens. All of these worked fine in FF 18.0.2. All of these work fine with FF 19 on Windows 7. Only an issue on my XP laptop.
    After trying to open a new window, and not seeing the new window come up (and yes, I waited a long time), I decided to close my current window, which had multiple tabs open. Instead of just closing, it pops up the message reminding me that I'm about to close all those tabs. If I say close, and then go into the Task Manager, the Firefox application has disappeared (as expected), but the firefox (and plug-in container) processes are still running. So I have to manually kill the Firefox process to get it to quit. it's as if it thinks there is another Window open (the one I tried to open but never appeared). This happens every single time! I've restarted my laptop, and that does not resolve the problem.
    Is there a way to downgrade back to v 18.0.2 until this is fixed?

  • "Show Desktop" bug forces any program windows to be stuck "Always-on-top"

    What I found under Windows 7, when you use the "Show Desktop" feature (I prefer the ⊞ Win + D shortcut) and then bring all windows back by using it again, some windows behave as if they're glued to the front of the z-order. What this means is, say, I have windows
    A B and C open, with focus on A, hit ⊞ Win +D twice, and now it may happen that if I then want to switch to B or C, either by Alt+Tab or by selecting them on the taskbar, the taskbar shows the highlight, but A stays visible (and usable, it's not just a rendering
    issue) in the foreground.
    Imagine the following situations, all three windows cascading and overlapping:
    A (focus)
    B
    C
    -> ⊞ Win + D
    Desktop (focus)
    -> ⊞ Win + D
    A (focus)
    B
    C
    -> click C on taskbar
    A
    C (focus)
    B
    -> click B on taskbar
    A
    B (focus)
    C
    And so on. Focus means actual input focus, i.e. in second situation, any keyboard typing is sent to window B while window A is in the foreground.
    It does not matter what kind of application; in my current case an instance of Outlook and an instance of Explorer is stuck, while a second instance of Explorer and an instance of Firefox behave normally. This should show that this problem can occur even between
    multiple instances of the same application, and that there are no fancy applications involved that like to pretend they are the most important program and internally force "always on top".
    Showing and unshowing the desktop again doesn't help; in the worst case another window might end up with the "glued to the top of the z-order" too. Between those, I can easily switch, but in order to get a window which still behaves normally on top, I have
    to manually minimize the offending windows.
    The only cure seems to close the offending windows so far, I've not found anything else that helps.
    Could it be that Windows 7 has a bug that can force an ALWAYS_ON_TOP flag
    onto some windows when restoring from "Show Desktop", or am I doing something wrong?
    More information from another user:
    I use win+d. Issue easy to replicate, Win7-64bit-Ultimate.
    The affected windows (any program) seem to be placed into a separate "Z" group. You can place multiple/many windows into this always-on-top state, those in the affected state will function normally in relation to each other with the exception that: - The group
    as a whole is always-on-top of any non-affected window - The whole group is on top of the taskbar. - The whole group does not respond to (context on taskbar) "cascade windows" or similar commands.
    The fact that the affected windows are on top of the taskbar and otherwise function as "special windows" shows that windows 7 has a hidden "feature" of always-on-top that gets applied with Win+D. The feature appears to place windows in a super window state
    that is on top of the taskbar. The normal group remaining behind the taskbar. (When you click the start menu or context menu of the taskbar, the start menu/taskbar comes to the foreground of the always-on-top group, however this does not revert the affected
    windows, only a temporary takeover until you switch to something other than the start menu/taskbar)
    This is key to finding an answer. How do we get windows to unassign the special status or not do the assignment in the first place?

    It appeared to have cleared by closing all windows and restarting. Initially I could not reproduce the error, then after opening all my working windows, I did indeed reproduce it on any window.
    I almost think it could be initialized with something to do with multiple windows of Chrome, and then the show desktop problem will crop up once one window has it. This was because: After messing around some more with a chrome session saver (session buddy)
    and restoring sessions and getting the super state, I restored and closed the window I was in and now I am again at a place where I can not reproduce the error, even in my "work environment" with some 35 chrome tabs in two windows, plus other programs, file
    locations, remote desktops and a second chrome profile with another dozen tabs.
    So, back to square one with finding the actual instigator of the super state phenomenon.
    Once you actually have the super sate issue, the following will reproduce:
    Ok, I am doing this as I type it:
    Open chrome (to view this website), then Notepad, then Calculator, (could be any windows, but for the purpose of demonstration, follow along with me)
    The windows should function normally, overlap your windows so that you can see the edge of all windows and the Z-order is (from front to back):the browser on top, then the calculator, then Notepad (you should be able to see part of the background windows).
    Now, with the browser on top, press win+d, then win+d again.
    Click on Calculator, then your browser, your browser is now stuck in the foreground. Clicking on notepad will bring the focus to notepad, and it will be in front of the calculator, yet it will stay behind the browser, as your browser is in "super state". (many
    arrangements of switching focus after returning from win+d will create the problem, with the exeption of clicking the desktop, I also noticed that I could not get calculator into super state unless it overlapped my chrome browser).
    Again, this does not seem to work until at least one of your windows is affected. We do not know how to get the initial window, only subsequent ones.
    I will post back if I find anything else.
    Let me know if there is anything that develops.

  • JOptionPane show Message Dialog always on top found a Solution

    just thought of a solution for the age old java problem with message boxes / dialogs / input .
    It's funny when you google it you'll find like a million people asking for a solution but none or very few that gives an answer that works.
    this is probly not a new solution but i came up with this yesterday and thought i would "share".
    dunno why the java developers hasnt made a always on top function for this since there seems to be a very high demand for it.
    this hax will hopefully work at all times.
    hope google will find this thread, i searched for a solution yesterday and found none? which is surprising and im a pro googler too.
    import javax.swing.*;
    public class main{
         public static void main(String args[]){
              JFrame j=new JFrame();
              j.setAlwaysOnTop(true);
              j.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              j.setVisible(true);
              j.setVisible(false);
              JOptionPane.showMessageDialog(j,"hi");
              System.exit(0);
    }

    I didn't realize it was an "age old problem." The JOptionPane's showXXX methods just show an ordinary modal dialog. If you want to set the alwaysOnTop property of said dialog then you just need to obtain a reference and call the method in question.
    JOptionPane op = new JOptionPane("hi",JOptionPane.INFORMATION_MESSAGE);
    JDialog dialog = op.createDialog("Message Dialog");
    dialog.setAlwaysOnTop(true); //<-- this line
    dialog.setModal(true);
    dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
    dialog.setVisible(true);No need for an intermediate frame.

  • Firefox always on top, can't alt-tab to other open windows/apps

    I have updated to 11.0, windows vista. I didn't notice or have this problem before the update. for example if I have firefox open and click on my calculator, the only way I can see it is to minimize firefox. I cannot alt-tab to it nor can I click the icon in my status bar of windows.???
    I have looked through the settings, I didn't see an always on top option, but that's what it seems like.
    Any and all info will be appreciated.
    TIA,
    Jim

    When I restarted in safe mode, the firefox window was no longer stuck on top. Restarted again (firefox was set to "show my windows and tabs from last time" for both restarts) in regular mode and it stayed fixed. Maybe just a restart where "show my windows and tabs from last time" is firefox start up setting would fix stuck on top problem?

  • How to have Always on top

    Am using a JInternalFrame to have my tools. i open new JInternalFrames with canvas for painting with tools from my first JInternalFrame. Now my problem is i want to have my InternalFrame with tools to be always in front, so that i can select tools. can i make that InternalFrame as always on top.. Or else suggest me some other option to obtain such scenario..

    Well a JDesktopPane is a layered pane. This means that the components added to it have an associated z coordinate. You can add the floating internal frame at a higher layer then the other internal frames.
    myDesktopPane.add(myToolbarFrame,JLayeredPane.PALETTE_LAYER,0);

  • Awesome window manager: How to keep application always on top

    Is it possible to keep media player applications always on top ?
    Following is my current configuration.
    { rule = { class = "Vlc" },
    properties = { floating = true, ontop = true } }
    This is working fine whenever I start application. But problem is, if I go to full screen and come back, ontop flag is unset.
    Is there anyway to fix this ?

    shmibs wrote:
    you could probably do something like
    client.connect_signal("property::fullscreen", function(c)
    if c.class == "mplayer" then
    c.ontop = true
    end
    end)
    i haven't tested this, though, so don't be surprised when it fails
    This is working partially. ie, VLC is keeping ontop propery, but video is not going full screen.

  • How to keep Calendar Helper always on top?

    In my jsf page, I have a input field with a calendar helper. Below this, is a drop down combo box. My problem is that when i click on teh calendar helper, the calendar appears in a drop down manner, and inspite of this, my combo box which is below, overlaps and appears in the middle of my calendar. Is there a way to avoid this? Perhaps by keeping the calendar always on top, or atleast making the calendar appear on top rather as a drop down.?
    My code snippet is like this:
    <TR>
                                                 <TD width="40%" align="right" height="30"><h:outputText
                                                      styleClass="normalText" id="text12" value="#{msg.To}"
                                                      style="color: black; "></h:outputText></TD>
                                                 <TD width="60%"><h:inputText styleClass="inputText" id="text13"
                                                      onblur="return func_2(this, event);">
                                                      <f:convertDateTime dateStyle="short" />
                                                      <hx:inputHelperDatePicker />
                                                      <hx:inputHelperAssist inputAssist="true" autoTab="true" />
                                                 </h:inputText><h:message styleClass="message" id="message2"
                                                      for="text13"></h:message></TD>
                                            </TR>
                                            <TR>
                                                 <TD width="40%" align="right" height="30"><h:outputText
                                                      styleClass="normalText" id="text10" value="#{msg.Status}"
                                                      style="color: black; "></h:outputText></TD>
                                                 <TD width="60%"><h:selectOneMenu styleClass="selectOneMenu"
                                                      id="menu1">
                                                 <f:selectItems value="Option1" /></h:selectOneMenu></TD>
                                            </TR>

    We are having the same results. Have you heard of a "fix" for this?

  • Always on Top, IS THERE A WAY!?!?!!?

    I've searched through th forumns for a way that makes a window always on top, and have yet to find one.
    What I have is a JFRAME that is actually a JMENU in which every everyone window in my application access the same object, the same JMENU. And the frame is seperate from any other window, sorta like a mac. But the problem is, the key accelrators like
    item.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, Event.CTRL_MASK));
    only work when the frame is in focus. So is there a way to have that frame always in focus and always on top?

    Thnx, that article is helpful. Now I just need to understand the code and implement it.
    Infact if this works like I'm reading, why wasn't this made a lil more known? This is like the cure for AIDS kept secret.
    Do you think it would better as an interface or as an static object in the menubar?
    Message was edited by:
    blackmage

  • Always on Top Frame

    HI, I have search a lot about Always on Top Frame, but couldn't found the solution of my problem.
    My application has a PropertyWindow, the problem is, I want my PropertyWindow always on Top. Please suggest me which container should I use, because If I use JFrame as a PropertyWindow, another frame is created and windows toolbar have two windows.
    If I use JPanel, I dont found the functionalities like WindowClosing, Settitle etc etc.
    Please help me to get rid of this annoying problem. I want exactly something like JBuilder or Photoshop functionality where property windows are always on top and also seperate with the application.

    But I got this error while using 1.5
    "ConnectionPool.java": cannot access java.lang.Object,bad class file: C:\Program Files\Java\j2sdk1.5.0\jre\lib\rt.jar\java\lang\Object.class,class file has wrong version 49.0, should be 48.0,Please remove or make sure it appears in the correct subdirectory of the classpath. at line 13, column 11
    "DBIdentifier.java": cannot access java.lang.String,bad class file: C:\Program Files\Java\j2sdk1.5.0\jre\lib\rt.jar\java\lang\String.class,class file has wrong version 49.0, should be 48.0,Please remove or make sure it appears in the correct subdirectory of the classpath. at line 12, column 11
    Everything works fine in 1.4
    Please Help
    Thanks

  • 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

  • Mac File Site window always on top

    I am using Dreamweaver 8.0, but have seen this exact same
    issue on a Windows CS3 install and a Mac CS3 install.
    I like to have the Files Window detached from the right side,
    and expanded so I can see the Remote Site and Local Files lists
    side by side. When I open an html file, I expect the html file to
    open on top of the file list window. It works this way on some
    installs, but not on others, very annoying. In the problem
    installs, I must manually move the file (site) window way down to
    the right to expose the html file I want to work on. Then when I
    want open another html file, I have to drag it file window back up,
    to see my file list, double click on the file, and then move the
    file list back out of the way.
    In other words, in the problem setups, the File Window is
    "always on top", so it must be a preference or setting, but I
    cannot figure out.
    Please help me fix this annoying problem.
    mark

    I'm having the exact same problem in DW CS5 now. Did you find a solution? Hitting fn+F8 isn't going to work on my iMac extended keyboard. F8 is the iTunes play pause button. Besides, having to command-tab to an app THEN hit fn+F8 just isn't going to work obviously.
    I can't believe in 2010 this is broken.
    Please do let me know if you found a way around it. I tried all the different layout prefabs in CS5, and without exception they all do it.

Maybe you are looking for

  • GetCurrentDate() not found in  oracle.jbo.domain.Date;

    Is it a known bug. Then how do we get the current date and time? Thanks in advance.

  • I was told I had to upgrade Firefox to 4.0, downloaded the dmg, launched it and now Firefox will not open at all.

    I was told I had to upgrade Firefox to 4.0, downloaded the dmg, launched it and now Firefox will not open at all. It tells me "The operation can't be completed because you don't have permission to access some of the items." Also, that "Firefox cannot

  • Not showing wizard network instalatio​n

    We have just recently installed new desktops at our office and are having difficulties in reinstalling the printer on the network. Our printer is model: Officejet 8500 a909a, when doing the instalation the program tells us to select the "wizard netwo

  • 9i and 11g

    hiii i am a student and wants an oracle online certification .. i have worked a bit on oracle 9i , it was taught to me in a 10 days workshop so i like to work in business intelligence. so please help me with it...

  • IPod touch version 4.2.1 have a iOS 5 update?

    I am getting a little annoyed when I try to download new games/apps and it says that my ipod is not compatible. I have been fishing around the site for a little bit and it says that the iOS 5 update is compatible with 3rd and 4th generation ipod touc