Using a lightweight window that's always on top

What I'm trying to do:
Using JGraph, I'd like to set up a bunch of operations that are triggered initially by a button click, then by clicking a number of nodes. Imagine 'Delete', where the user clicks delete, and then clicks a node.
Here's my question: After clicking delete, I'd like to have a lightweight component / window pop up and say the name of the operation, how many clicks they still need, a cancel button, etc. The window I'm thinking about is headless but can be dragged around, kind of like a toolbar. "So," I said to myself, "why not try using a JToolbar?" which I tried. It kinda works, but there are two problems:
1. JToolbar has to started docked in some component. Also, I don't see a programmatic way to float it. I'd prefer for it never to be docked.
2. When I call setVisible(false) when it is floating, the title bar remains.
Can anyone suggest a better way to do this?

This is working quite well for me now. Thanks for the help
The window I'm thinking about is headlessUse a JWindow
but can be dragged aroundThen you need to add dragging code to a component in
your window. Here is a simple [url
http://forum.java.sun.com/thread.jsp?forum=57&thread=40
114]example.

Similar Messages

  • Create a window that will always ontop

    pls am having a problem creating a window that will always on top such that it cannot be minimized that cannot go to the background ,will always be on top like the task manager in windows
    help meeeeeeee!!!!!!
    my email:[email protected]

    http://forum.java.sun.com/thread.jsp?forum=57&thread=121761
    Try searching the forums, this has been asked many times before.

  • TS1717 Everytime i open Itunes in windows 7 despite me specifying maximised it opens in window that is always too large for the screen. EVen windowing the frame and then remaximiseing puts the buttons outside the edge of the screen

    Every time i open Itunes it starts in a window that is too large for the screen (despite me setting "start maximised" in the launch options). Then hitting the "maximise" button expands the window slightly pushing all the buttons and edge of the frame out of the screen and behind the taskbar at the bottom. I have to move the window to a place where i can resize it smaller than the screen then and only then does maximising the window fit it properly to the screen.

    Okay, I just opened up Itunes this evening and it's not working again! Sheeshy Peetz!
    HOWEVER, this time I followed some different steps and got it working.
    (1) Uninstall Quicktime
    (2) Uninstall Itunes
    (3) Re-download Both
    (4) Install Quicktime First!  (Read #6 below first though)
    (5) Install Itunes Next!  (Read #6 below first though)
    (6) Here is the CAVEAT for me:  I have an SSD as my C:\Drive, which is where I originally installed both of them.   So this time, I installed both Quicktime and Itunes to a Non-SSD drive, which was one of my SATA Drives.
    (7) Start Itunes and Test your Movies now.  For me I was able to play them finally.  Who knows how long this will last lol.
    Maybe this work for someone.

  • Windows 8 taskbar always on top?

    Hi, 
    Taskbar appears to be on top in Windows 8 whenever I got into full screen - pdf., movies, presentation.
    My display is on 'Larger - 150%'.
    However, this happens only recently and I have no clue why. It used to be working even the display was on 150%.
    I hate the auto-hide option..
    Please help!

    I have this problem too. It is not a graphics driver issue. In previous versions of windows, this was a selectable option for the task bar. Now it is default with no visible option to change it. Even with the task bar set to autohide on, it just retreats
    to the edge and if you bring your mouse cursor too close to the edge, the task bar pops up. What we want is to know how to set the task bar so that all other applications are on top of it, unless the task bar is what we have selected as the active focus object.
    It has absolutely nothing to do with the task bar position and everything to do with it's disposition. Please help. I often have applications running in full screen borderless window mode and with the task bar always floating on top, it gets annoying when
    I need to use buttons at the bottom of the screen in the application I have as the active focus only to find the task bar has popped back up and is in the way, often causing me to lose focus with application I am trying to use. For people who don't use autohide,
    it's even worse, because the task bar is always there. We want it to stay UNDER our focused apps until we alt-tab out and select the taskbar. I tried modding the reg file, but the structure for this "feature" has changed since windows 7 and earlier
    versions. It is just one more feature Microsoft removed from windows, that we the users want restored.

  • Windows stuck in always on top mode

    I am not sure why but many of my windows like to stay always on top. It gets frustrating when I have something running full screen, and I cant get to the other window or application because the full screen application wont let anything come on top. This
    also happens with my chrome windows. This is where I first noticed this issue. I tend to keep dozens of tabs open and keep them organised in specific windows. But when I try to drag one to another monitor overtop another chrome window, or bring it to the front
    it stays behind the other window. It seems to be somewhat random as well as some windows will allow others to come to the front, but generally they will not. I don't know if there is a shortcut or something that I maybe hit to change this setting or what.
    Any suggestions.

    Hi,
    "But when I try to drag one to another monitor overtop another chrome window, or bring it to the front it stays behind the other window. "
    Are you using dual (or multiple) monitors? Are you able to show other windows by click the follow options (right click the taskbar):
    Pleaes also note that some third party programs can make certain windows stays on top, please check if this is the cause.
    Yolanda Zhu
    TechNet Community Support

  • I am using bootcamp with windows 7, and always is showing me that there is no networks, it says I don't have a driver for the adapter; therefore i keep installing it, and suddendly windows 7 doesnt recognized it.

    I have a Macbook Air 13" (mid 2012), recently i installed windows 7 with my original disk and code. I downloaded all the drivers via bootcamp assitant, however everytime the machine keeps disconnecting spontaneously from the internet, and keep saying that there is not driver for the adapter.
    What can i do???

    I install it according boot camp instructions. My thunderbolt adapter used to work fine with windows 7, but suddenly windows 7 did not recognize the driver of the adapter, and each time i install it, happens the same.

  • How can I turn off the the big orange window that keeps opening on top of Google since the last firefox update installed.

    Since the last mozilla/firefox update whenever I go online, google and mozilla/firefox open at the same time and I can not see google since mozille/firefox (a big orange window) opens on top of google. I read everything in the window but there doesn't seem to be an "off" button for this big orange window.

    Hi pamerritt,
    Are you saying you always see the "Welcome to Firefox" message? If so, you should look at [https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox this article about that specific issue] and the article [http://kb.mozillazine.org/Preferences_not_saved Preferences not saved]. These should give you all the information you need!
    If that doesn't work:
    # Type about:config in the address bar
    # Click ''I'll be careful, I promise'' if prompted
    # In the Filter input field type ''startup''
    # Double click on startup.homepage_override_url
    # Delete the text string and click ''OK''
    # Close Firefox and reopen the window to verify that it has worked.
    Hopefully this helps!

  • 'separate video window' has no always-on-top option in miniplayer mode

    In miniplayer mode, the control panel can stay on top, but the video widow can't. This defeats the purpose of keeping the miniplayer on top.
    I hope this, and all the other problems are rectified in the next release.

    On most models, performing a factory reset will cause the TV to go through the initial setup, allowing you to specify its location. However, I don't see your model listed in our database. If it's not a US unit, you may want to contact Toshiba in your region.
    - Peter

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

  • Always-on-top preview of section of another window?

    Is there any way I can get a preview of a section of another window, that will always stay on top in the top right-hand corner of my screen (except when I switch to that window)?
    Specifically, I'm playing Runescape on a single monitor (laptop) and I frequently alt-tab out to do other things in the meantime. It would be awesome if I could get a window that's a preview of the 200x200 pixel square around my character so that I can see what he's doing (and when he's finished, so I can make him do something else).
    Does anyone know of something that can get me this functionality?

    karol wrote:dwm uses tags, so one tag can be e.g. mpv playing a movie fullscreen, another tag will have a bunch of terminals and the same mpv playing the movie in a small window.
    I don't know if it woks with Runescape.
    Will it let me preview only a certain subsection of the window? Scaling a 1920x1080 window down to an unobtrusive size would probably not let me see my character anymore =\. Thanks for the suggestion though, I'm looking into dwm right now.
    Also, this is what I'm ideally trying to get (notice the preview in the bottom-right):
    http://i.imgur.com/JyfL4HD.png
    moderator edit [ewaller] Changed image tags to over sized image to url tags
    Last edited by ewaller (2014-03-01 20:52:53)

  • Always on top under solaris (7)

    Hi all,
    I have searched through this forum and have found no usable answer to the question how to enable a window in Java to stay on top under Solaris 7. Best solution is probably through JNI (java native interface) but does anybody know any help about that?
    Thanx in advance,
    G

    I forgot to tell, that it is very probable that the always on top depends on the window manager. I am using mwm (motif window manager). As far as I know this mwm has no feature like letting a window stay on top.
    My despearat question would be that does anybody know any alternatives?
    Thanx,
    G

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

  • I have a client that uses Windows that has recently told me she can no longer open the PDFs I send her. I can't find this elusive "Always Send Windows-Friendly Attachments" setting that I have read may solve my problem. Can someone get me there?

    I have a client that uses Windows that has recently told me she can no longer open the PDFs I send her. I can't find this elusive "Always Send Windows-Friendly Attachments" setting that I have read may solve my problem. Can someone get me there?

    Dear Dan,
    It was from InDesign that I was creating the shared pdfs. I was one of two Mac drivers in a corporate sea of Win users and had to make the change I mentioned in order for the Win users to see my pdfs for review. The difference from what you appear to be doing was that were all on an MS Exchange Server so the files were shared over the company's Exchange Server e-mail system. However, some of these files occasionally went to outside users via regular e-mail and those people had no issues either.
    So what I did was tested and worked for years.
    You might look at the Adobe forums or Knowledge Base to see if that is a reported issue with newer version of CS. I was on CS2 when I was doing this, and the other Mac driver was on CS3 but had no problems either.
    Some Win users I've talked to find a problem opening some pdfs (not mine) in general and found they had to open Reader first and them open the file from Reader's File menu. That most often happened if the client was using an outdated version of Reader.

  • I have been using Safari for years and have always kept it on "private." Starting two days ago, I suddenly found myself unable to log onto my blog and many other sites that I normally log onto when private is set. Why?

    I have been using Safari for years and have always kept it on "private." Starting two days ago, I suddenly found myself unable to log onto my blog and many other sites that I normally log onto when private is set. This so annoying, I just switched to Firefox. I don't like Firefox nearly as much as I like Safari. What is happening? How do I fix the problem?
    Thank you.

    Might be a corrupted database ...
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following:
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.

  • A new window used to open windowed, now always opens maximized

    Clicking on "Print" inside of maps.google.com opens a new window.
    It used to open windowed, not maximized and always in a certain size.
    Firefox crashed, had to restart the PC and now this new window always opens maximized.
    I want new tabs maximized (eg, clicking the + button) , but if an application opens a new window, I want it windowed, not maximized.
    I deleted prefs.js and localstore.rdf, the problem still persists
    Firefox 24

    If the page uses a script to specify certain window dimensions, then Firefox usually will honor those dimensions.
    However, if the new window is launched without that information, the window typically will have the same size/state as the current window, or maybe the last closed window.
    The information about window sizes and positions is stored in the same file as toolbar customizations. You can get rid of this file without doing a full Firefox reset. Here's how:
    Open your current Firefox settings (AKA Firefox profile) folder using
    Help > Troubleshooting Information > "Show Folder" button
    Leave that window open, switch back to Firefox and Exit
    Pause while Firefox finishes its cleanup, then rename '''localstore.rdf''' to something like localstore.old
    Restart Firefox. Hopefully now your window behavior will be back to the default.

Maybe you are looking for

  • How to  make a good voip server +applet ?

    Here is my applet wich I made http://84.244.8.225/test.html It works a bit Here the code: http://84.244.8.225/javamic4.txt Any ideas/suggestions to make it better... (for example how to make a good server (windows) ?) Thx! Edited by: FrederikPot on S

  • Purchase Order With Sub Item Component List for BOM material..??

    Hi MM Experts, We want to create PO with a component list that should be appears under the main item. The component list is a mterial BOM. Ex:- bom MATERIAL - CATALOG1 (Non Stock Materials) COMPONENT 1 :-ABCD COMPONENT 2 :- XYZ. WHEN I ENTER THE BOM

  • Form submit not working even with usage rights enabled

    Hi everyone, I created a form in Acrobat 7 professional (mac version), then used Acrobat 8 (windows version) to enable usage rights. I have the following javascript code attached to a submit button: this.mailForm(true, "[email protected]", "", "", "R

  • How do I use two computers in logic at the same time?

    I would like to find out how to make two computers work in the same project, both having logic installed.

  • Copy and Paste WLAN password (PSK-key) on E7-00

    It took quite long to find out how the 128 character password of my private WLAN can be copied and pasted in the PSK-key field. Now I found the (not documented) solution and would like to share it with other users. Simply press and hold the Shift key