Y position always on top of an object!

Riiiight heyyyyy, my new question is... how do you make the y
position of an object always be just above another object, e.g. on
most games on the internet an object or "player" can move over
other objects like "ground" and obstacles, in my quite simple game,
I've been trying to get the ball to roll over a simple "floor" Mc
using hitTest using
_y -- or _y -= 1 to get the object to stay over the floor,
this works fine on horizontal "floor" but on parts where the floor
raises it moves straight through it and goes up slowly if the ball
remains inside the Mc until it reaches the top of it,
Is there a way to keep the ball constantly 1px above the Mc?
Thaaaaaaaanks in advanceeee!

there's no easy fix. you'll need to code for that.
if you have a simple shaped ground, just code directly.
if you have a complex irregularly shaped ground, you can use
the bitmapdata class to record the "height" of your ground as a
function of _x and in your loop that's used to change the ball's _x
property, check the corresponding "height" of the ground and adjust
your ball accordingly.

Similar Messages

  • JInternalframe always on top instead of overlapping

    Hello guys,
    I have some JInternalFrames but one window paints its content above all, even overlapping frames. The code looks like this:
    package visnav.bachelor.gallery;
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.FlowLayout;
    import java.awt.Insets;
    import java.awt.ScrollPane;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.Vector;
    import java.lang.Math;
    import javax.swing.ImageIcon;
    import javax.swing.JButton;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.UIManager;
    import javax.swing.SwingUtilities;
    import javax.swing.border.EtchedBorder;
    import visnav.bachelor.DataLoader;
    import visnav.bachelor.preview.PreviewMap_Ext;
    import visnav.common.Config;
    import visnav.common.DBListener;
    import visnav.common.Options;
    import visnav.common.Photo;
    * The class Gallery adds a window in which all selected Photos (=their
    * thumbnails) can be seen.
    * @author Florian Kratschmann
    public class Gallery extends ScrollPane implements DBListener {
         private static Vector<Photo> selectedPhotos;
         private static Gallery instance;
         public JPanel content = new JPanel(new ModifiedFlowLayout(
                   ModifiedFlowLayout.LEFT, 6, 6));
         public String filename = "";
          * Constructor which creates a new Gallery object.
         public Gallery() {
              selectedPhotos = DataLoader.getInstance().getSelectedPhotos();
              this.updateGUI(selectedPhotos);
         public static Gallery getInstance() {
              if (instance == null)
                   instance = new Gallery();
              return instance;
         public void collectionChanged() {
              selectedPhotos = DataLoader.getInstance().getSelectedPhotos();
              this.updateGUI(selectedPhotos);
         public void selectionChanged() {
              selectedPhotos = DataLoader.getInstance().getSelectedPhotos();
              this.updateGUI(selectedPhotos);
         public void valueChanged() {
              selectedPhotos = DataLoader.getInstance().getSelectedPhotos();
              this.updateGUI(selectedPhotos);
         public void updateGUI(Vector<Photo> data) {
              content.removeAll();
              removeAll();
              for (int i = 0; selectedPhotos.size() > i; i++) {
                   filename = Gallery_Ext.getFileName(selectedPhotos.get(i)
                             .getFileLocation());
                   final int j = i;
                   ImageIcon icon = (new ImageIcon(selectedPhotos.get(i)
                             .getThumbLocation()));
                   if (filename.length() > 15) {
                        filename = filename.substring(0, 15) + "...";
                   JButton thumb = new JButton("<html><p align=\"center\">" + filename
                             + "<br>[" + (i + 1) + "/" + selectedPhotos.size()
                             + "]<br></p></html>", icon);
                   thumb.setContentAreaFilled(false);
                   thumb.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                             Gallery_Ext.openMIME(selectedPhotos.get(j)
                                       .getFileLocation());
                   thumb.setVerticalTextPosition(JLabel.BOTTOM);
                   thumb.setHorizontalTextPosition(JLabel.CENTER);
                   thumb.setBorder(new EtchedBorder());
                   thumb.setPreferredSize(new Dimension(140, 140));
                   content.add(thumb);
              add(content);
          * A modified version of FlowLayout that allows containers using this Layout
          * to behave in a reasonable manner when placed inside a JScrollPane
          * Workaround made to fit size of screen on first updateGUI firing
          * @author Babu Kalakrishnan
          * @author Florian Kratschmann
         public class ModifiedFlowLayout extends FlowLayout {
              public ModifiedFlowLayout() {
                   super();
              public ModifiedFlowLayout(int align) {
                   super(align);
              public ModifiedFlowLayout(int align, int hgap, int vgap) {
                   super(align, hgap, vgap);
              public Dimension minimumLayoutSize(Container target) {
                   return computeSize(target, false);
              public Dimension preferredLayoutSize(Container target) {
                   return computeSize(target, true);
              private Dimension computeSize(Container target, boolean minimum) {
                   synchronized (target.getTreeLock()) {
                        int hgap = getHgap();
                        int vgap = getVgap();
                        int w = target.getWidth();
                        if (w == 0) {
                             Dimension size = new Dimension(0, 0);
                             int noOfTn = selectedPhotos.size();
                             try {
                                  size = (Config.getDimension("InternalFrameSize4",
                                            new Dimension(0, 0)));
                                                 if (size.width==0){size.setSize(300, 200);}
                                  int noOfRows = (int) Math.ceil(size.width / 140);
                                  int heightNeeded = (int) ((noOfTn*1.25 / noOfRows) * 140);
                                  size.setSize(140, heightNeeded);
                             } catch (Exception ex) {
                                  ex.printStackTrace();
                                  int peter = 2;
                                  int heightNeeded = ((noOfTn / peter) * 280)+140;
                                  size.setSize(140, heightNeeded + 100);                    
                             return size;
                        } else {
                             // w = Integer.MAX_VALUE;
                             Insets insets = target.getInsets();
                             if (insets == null)
                                  insets = new Insets(0, 0, 0, 0);
                             int reqdWidth = 0;
                             int maxwidth = w - (insets.left + insets.right + hgap * 2);
                             int n = target.getComponentCount();
                             int x = 0;
                             int y = insets.top;
                             int rowHeight = 0;
                             for (int i = 0; i < n; i++) {
                                  Component c = target.getComponent(i);
                                  if (c.isVisible()) {
                                       Dimension d = minimum ? c.getMinimumSize() : c
                                                 .getPreferredSize();
                                       if ((x == 0) || ((x + d.width) <= maxwidth)) {
                                            if (x > 0) {
                                                 x += hgap;
                                            x += d.width;
                                            rowHeight = Math.max(rowHeight, d.height);
                                       } else {
                                            x = d.width;
                                            y += vgap + rowHeight;
                                            rowHeight = d.height;
                                       reqdWidth = Math.max(reqdWidth, x);
                             y += rowHeight;
                             return new Dimension(
                                       reqdWidth + insets.left + insets.right, (int) (y*1.2));
                             // return new Dimension(120, 300);
    }Any idea why it's content is always on top?
    Cheers,
    Flo

    As the title I can have inside a JDesktopPane some JinternalFrame "always on top" compared to one that makes the background?You might get better help by explaining what you want to achieve, rather than how you want to achieve it.
    You can do custom painting in a JDesktopPane, you know.
    db

  • "Always on Top" of jdk 1.5 is not working when...

    I created a sample application that has Frame/Window and displays some text. Then i needed to make the window always visible on top of any other application or windows. But then when i opened applications like Battle Realms, Counter Strike, or any other games, the window is blocked by the previously run application.
    Can you help me on how can i provide solution with this?
    Thanks in advance.

    This might help you!!!
    About setAlwaysOnTop()
    Changes the always-on-top window state. An always-on-top window is a window that stays above all other windows except maybe other always-on-top windows. If there are several always-on-top windows the order in which they stay relative to each other is not specified and is platform dependent.
    If some other window already is always-on-top then the relative order between these windows is unspecified (depends on platform). No window can be brought to be over always-on-top window except maybe another always-on-top window.
    All owned windows of an always-on-top window automatically become always-on-top windows. If a window ceases to be always-on-top its owned windows cease to be always-on-top.
    When an always-on-top window is sent toBack its always-on-top state is set to false.
    This method makes the window always-on-top if alwaysOnTop is true. If the window is visible, this includes bringing window toFront, then "sticking" it to the top-most position. If the window is not visible it does nothing other than setting the always-on-top property. If later the window is shown, it will be always-on-top. If the Window is already always-on-top, this call does nothing.
    If alwaysOnTop is false this method changes the state from always-on-top to normal. The window remains top-most but its z-order can be changed in the normal way as for any other window. Does nothing if this Window is not always-on-top. Has no effect on relative z-order of windows if there are no other always-on-top windows.

  • 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

  • Java Task Bar always on Top

    I need to be able to create my own task bar which is a Frame that will be positioned
    always above the Windows task bar and will never be obscured by the windows of other
    appications (Task Manager accepted).
    I have seen many postings on tis group what explain how to have a frame always on top
    but how can I state where on top with reference to the task bar?
    TIA
    Steve

    I dont want to get rid of the task bar but to be able to create an own window which isn in effect
    an own task bar that sits directly above the existing Task Bar if it is visable or if not, then it sits along
    the bottom of the screen mimicing a task bar but with the controls that I want to provide fo rmy specific
    application.

  • HTA Always on Top

    Hi all,
    I've got a lovely HTA that is intended to be displayed on all our users screens at Windows startup, as defined by a GPO.  While everything is working fine, I'd really like to have it as an "always on top" window or at least grab focus/flash whenever somebody clicks away.
    Every forum thread I've found via Google says this is not possible, but other people have found 'hacks' to get this to work.  Various people mention either modal/modeless dialogues or using an onblur function.  Unfortunately, as a self taught 'coder', my VBS/HTA powers are fairly weak and I don't really know how to put this into practice.
    Would anybody be able to give me some guidance on how I could possibly launch the HTA and retain focus or keep it above other windows somehow?
    Cheers
    Andy

    You need a Third-party application
    http://www.nirsoft.net/utils/nircmd.html 32 or 64 bit version
    put nircmdc.exe in your path or in the folder with hta file,
    now use this sample .hta
    <!========================================================================
    <!
    <! NAME: RusiaToday.hta
    <!
    <! REVISION:
    <!
    <! AUTHOR: Emprear / gc.gianello[dot]gmail.com
    <!
    <! DATE  : 15/02/2013 09:03:38
    <!
    <! COMMENT:
    <!     Rusia Today en Español
    <!     Canal Internacional de Noticias
    <!
    <!======================================================================-->
    <!
    <html>
    <head>
    <title>RusiaToday</title>
    <script type="text/javascript">
    window.resizeTo(470,300);
    var intHorizontal = screen.width;
    var intVertical =screen.height;
    var left_pos = (intHorizontal - 470) / 2;
    var top_pos = (intVertical - 300) / 2;
    window.moveTo(left_pos,top_pos);
    </script>
    <HTA:APPLICATION
    ID="RusiaToday"
    APPLICATIONNAME="RusiaToday"
    BORDER="Dialog"
    BORDERSTYLE="Normal"
    CAPTION="yes"
    CONTEXTMENU="no"
    INNERBORDER="no"
    MAXIMIZEBUTTON="no"
    MINIMIZEBUTTON="no"
    ICON = "http://actualidad.rt.com/favicon.ico"
    SCROLL="no"
    SELECTION="no"
    SHOWINTASKBAR="yes"
    SINGLEINSTANCE="yes"
    SYSMENU="yes"
    WINDOWSTATE="Normal"
    >
    <script type="text/javascript">
    function ontop(){
    if ((document.getElementById('wtop').innerHTML) == 'notop') {
    document.getElementById('wtop').innerHTML = 'top';
    new ActiveXObject("WScript.Shell").Run('%comspec% /C nircmdc win settopmost title RusiaToday 0',0,true);
    }else{
    document.getElementById('wtop').innerHTML = 'notop';
    new ActiveXObject("WScript.Shell").Run('%comspec% /C nircmdc win settopmost title RusiaToday 1',0,true);
    </script>
    <style type="text/css">
    html, body{
    padding: 0;
    border: none;
    margin: 0;
    overflow: hidden;
    object#rto{
    margin: 0;
    border: none: padding: 0;
    left: 0;
    top: 0
    z-index: 1;
    button#wtop{
    top: 1%;
    right: 1%;
    z-index: 999;
    width:38px;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 4px;
    /*]]>*/
    </style>
    </head>
    <body style="background:#1E1D11">
    <object type="application/x-shockwave-flash" data="http://actualidad.rt.com/static/jwplayer/player.swf" id="rto" height='274' width='470'>
    <param name="movie" value="http://actualidad.rt.com/static/jwplayer/player.swf" />
    <param name="loop" value="false" />
    <param name="menu" value="false" />
    <param name="play" value="true" />
    <param name="wmode" value="transparent" />
    <param name='allowfullscreen' value='true'>
    <param name='allowscriptaccess' value='always'>
    <param name="flashvars" value="&autostart=true&backcolor=0x000000&bandwidth=1016&controlbar=over&file=RT_Spanish_2&frontcolor=0xffffff&image=http%3A%2F%2Factualidad.rt.com%2Fstatic%2Fvideo-player-bg.png&lightcolor=0xffffff&mute=false&plugins=viral-2d&screencolor=0x404040&skin=http%3A%2F%2Factualidad.rt.com%2Fstatic%2Fjwplayer%2Fplayer_skin.zip&streamer=rtmp%3A%2F%2Frt.fms.visionip.tv%2Flive%3Fautostart%3Dtrue&viral.onpause=false"
    />
    <param name="bgcolor" value="#1E1D11" />
    </object>
    <button onclick="ontop();" id="wtop">top</button>
    </body>
    </html>
    Look at the ontop() function and how alternate top and notop status using nircmdc command line utilitiy
    Thats all
    Regards

  • Unable to set a top-level property object

    Hey guys
    I've made a little sequence to fetch data from a XML file. In that XML file, there is some informations (entries) (IP addresses, port numbers, etc) about 4 different types of devices(sections are the devices names). The first section of the XML tells me the NAMES of the devices I have to configure. The type of each device is located in the entries of each device. Each device has its own information and I can have more than one device of a type. In teststand, I've created custom data types (containers with empty fields) for each type of device I need.
    I want to dynamically create the devices that the XML file tells me to configure as fileglobal variables and populate them with their own config informations (entries of the XML file). I'm creating new fileglobal of the type I want using PropertyObject step and I'm creating an alias of that fileglobal that I'm passing in parameter to a subsequence who's getting infos from XML. Here, everything is OK.
    The problem occurs when I want to configure 2 or more objects of the same type. At the SetProperty step (where i'm creating the fileglobal variable) teststand gives me the error:
    "Unable to set a top-level property object to another object. Error accessing item 'Parameters.DeviceToInitStruct'."
    Is there any ways to avoid that problem and creating to variable of the same type ?
    thanks

    Hi
    I finally got rid of that problem.
    Instead of using a PropertyObject.Clone step, I used a statement who's just copy the "MasterObject" into a "CloneObject" and i'm working with that copy. So the sequence can now create devices of the same type without any conflict with the first device.
    i'll post here a short example to show how i did... maybe it'll be useful for someone...
    regards

  • 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.

  • How to keep toolbar in Photoshop CS5 always on top

    I have just upgraded to CS5 from CS3. In CS5, when I move an open document around on screen it covers over the toolbar, but only if the toolbar is docked to the side of window.  It will also cover the property bar and menu bar at the top of the interface.  The palettes on the r/h side always stay on top if not docked to the edge of the window, but if docked they too get covered over. In CS3 all the interface items stayed on top.  Is there any way to make sure they is always on top when docked (I prefer not to have them free floating)?
    I'm using Vista Ultimate.  My monitor is a Dell 24" Ultrasharp running at native 1920x1200 res.

    Thanks for the suggestion.  Turning OpenGL off makes no difference, and with it turned on I have also tried the three different quality settings, none of which made any difference either.
    I've also just tried with CS5 in a window, rather than fully maximised, and like that I can actually drag an open image right outside the Photoshop interface!
    Dave

  • 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.

  • I am using JComboBox.i want ihe JComboBox popup always in top direction.

    Hi friends,
    i am using JComboBox.i want ihe JComboBox popup always in top direction(like mobile options ).by default JComboBox popup always in down direction.plz help me

    probably have better success if you tried to get hold of the source code
    for a mobile app that does what you want, then modify it for swing/awt

  • How do I keep form6.0 ALWAYS ON TOP?

    Hello friends,
    Like Oracle Help, Is there any option in forms6.0 to keep them 'always on top' of other applications.
    Thanx in advance,
    regards,
    Praveenkumar Talla

    Hello,
    Actually I want to keep the runtime form at the top of other application, How to do this?
    regards,

Maybe you are looking for

  • IPhone not syncing to iTunes

    Hello....Please help! I have my iTunes set up on my work computer. My C:Drive got full so I moved my My Music Folder to a e:Drive, removed iTunes and re-installed on my e:Drive. I've lost a great deal of music now in my iTunes library. My iPhone has

  • Upstream DNS preventing mail

    I cannot get my mail server to send messages out. I get the following error: Jan 14 08:36:47 mail postfix/smtp[23334]: 4C58B1887C2: to=<[email protected]>, relay=mx4.hrnoc.net[216.120.237.53]:25, delay=5.6, delays=0.06/0.04/5.5/0, dsn=4.0.

  • Roll out requirements of SAP in European countries

    Dear All, We are in the process of rolling out SAP to our client's European business units based on our US based global template. Is there any documented procedural steps one must follow so that we do not miss any of the statutory/Legal requirements

  • 5.0.1 constant signal drop after every 2 minutes

    As soon as I updated the software in 4s to 5.0.1 the neverending trouble started. There are constant signal drop resulting communication lost and despite the signal bar showing full strength. can any one help, Have already triesd the SIM PIN option c

  • Problems with Multiple Numeric Limit Test

    Hi, I'm trying to use the MultipleNumeric Limit test and I have problems with it 1) Since I use TestStand 3.1, is it recommended to uses the new type template rather than the legacy one? 2) When you let TestStand creat the test code for you it gives