Detect topleft icon position of the JInternalFrame window

Hi,
How to get the topleft icon position of an internal window ? because I want to active the system menu of the internal frame by click mouse . Thanks.
Liwei

Can you use getLocation(...) of the JInternalFrame and then 'guess' that the icon will be (+20, +20) from the location of the internal frame? Here is a thread that does this for a JFrame:
http://forum.java.sun.com/thread.jsp?forum=57&thread=238132

Similar Messages

  • Position of iconified JInternalFrame window

    Hi,
    I am attempting to "memorize" the position of a JInternalFrame window when it is iconified. However, if I use the standard getX(), getY(), getWidth() and getHeight() calls, it returns the original position of the JInternalFrame, as if it was deiconified. Is there any other way to get this information?
    Regards,
    Herman

    Hi,
    iframe.addInternalFrameListener(new InternalFrameListener()
                   @Override
                   public void internalFrameActivated(InternalFrameEvent arg0) {
                   @Override
                   public void internalFrameClosed(InternalFrameEvent arg0) {
                   @Override
                   public void internalFrameClosing(InternalFrameEvent arg0) {
                   @Override
                   public void internalFrameDeactivated(InternalFrameEvent arg0) {
                   @Override
                   public void internalFrameDeiconified(InternalFrameEvent arg0) {
                   @Override
                   public void internalFrameIconified(InternalFrameEvent arg0) {
                        int x = iframe.getX();
                        int y = iframe.getY();                    
                        System.out.println(x + "  " + y);
                   @Override
                   public void internalFrameOpened(InternalFrameEvent arg0) {
              });Thanks

  • Hi, I have trouble loading my iPhone 5 photos into Aperture. The iPhone icon appears in the import window, but the images won't show up in the loading window.

    Hi, I have trouble loading my iPhone 5 photos into Aperture. The iPhone icon appears in the import window, but the images won't show up in the loading window

    The iPhone icon appears in the import window, but the images won't show up in the loading window
    Do your images show, if you disable the option "Do not import duplicates"? If yes, then check, if the images have already been imported, eg. using Photo Stream, if you are using Aperture 3.3 or later.
    Aperture 2, Mac OS X (10.6.8)
    Is your profile signature above still current?

  • Icon position of the af:commandToolbarButton

    Is is possible to change the position of the icon on a toolbar button?
    I would like to have the icon above the text.
    With the skin editor I've been able to change the appearance of my toolbar buttons a lot but couldn't find any selectors for the icon placement.
    Thank you,
    Rasto

    Rasto,
    You can use commandLink in your toolbar and use something like this:
    <af:commandLink>
    <af:panelGrouplayout layout="vertical">
    <af:image/>
    <af:outputText value="my link text"/>
    </af:panelGroupLayout>
    </af:commandLink>
    After this style the commandLink to look like a commandToolbarButton :)
    Thanks,
    Ansuman

  • Can I switch the positions of the "new window" and "new tab" under file in Firefox 4?

    Would like to make the order under "file" in Firefox 4 the same as in Firefox 3. Very used to Firefox 3 order and used to open new window being the first link.

    Look at:
    *Menu Editor: https://addons.mozilla.org/firefox/addon/menu-editor/

  • I have lost my yahoo tool bar icons except for the search window, e.g. bookmarks.

    I was looking to see if there was something to help me keep my forward and backward arows functioning...suddenly I had no icons on the Yahoo toolbar

    I found this answer on Yahoo!Answers:
    * Go under tools
    * Click on add ons
    * Highlight yahoo toolbar
    * Go to options and change the skin
    * Click on "I'm done"
    * The toolbar should open the way it's supposed to.
    I then went back and selected "No skin" and the toolbar stayed on.

  • I just switched to Firefox 10.0. Why is it that when I click on my bookmarks I get a bar that opens on the left side of my window? I have to go back to my bookmarks icon to close the

    Since I installed Firefox 10.0 when I open my bookmarks I get a side window that opens and stays open when I click on a bookmark. I have to go back to the top icon to close the side window. In the past when I would get the drop down bookmark list that would disappear when I clicked on a bookmark. Is there a way to go back to the way it used to be?

    Thanks guys! That took care of it. Appreciate your response.

  • Can I set the position of the new mail window?

    Each time I compose a new message, the new message window seems to appear at a different place, usually obscuring the main window. I would like to have it always appear to the side of the main window. Can I set this, perhaps in the property list?

    Perhaps something is corrupt that is causing bad behavior for some users and so my comments are unhelpful, but here's some more data to add to this discussion: My Mail.app behaves as George Coghill described above, subsequent message windows open where the previous window was open.
    For example- Close all Mail.app windows so that only the main "Message Viewer" window is open (basically, don't have any emails that you're in the middle of drafting open).  Open a new message, adjust the position as you wish, then close it.  When you open another new message, does it have the same position as the one you just adjusted?  It should.
    However, for me, sometimes it would be off by a few pixels as Thomas A Reed described above.  I realized that this was because I had another compose window open in the background.  So as you troubleshoot, make sure no other compose windows are open, to remove one complication and help isolate the issue.
    Side note: in cases where the original window's height fully extended across the display, the new window would be shifted over to the right only, but not down at all as some apps do (like Mac Word, annoyingly).  Another note: if you maximize the original window, subsequent windows also open maximized and unshifted.
    A corollary to the paragraph immediately above is that if you open say 3 new windows, the second one will be shifted and the third one will be even more shifted.  Let's say you send all 3, and now open a new window, it has the position of the 3rd window.  Annoying.  Yes, it would be nice if it always opened new windows in the exact same position, but Apple likely won't do this since people will get confused and think they lost the window if it doesn't do the shifting.  I guess the take-away is draft one message at a time or maximize your composition windows, otherwise it's going to move :/
    A band-aid solution: When a window isn't positioned how you like it, a quick/simple way to reposition it is with apps like Moom (my favorite), Cinch, Divvy, SizeUp, etc.  While I'm at it I should mention RightZoom, which makes the green zoom button behave like the Windows maximize button, and Cordless Dog Stay, which is great if you connect/disconnect your laptop to a screen causing the window positions to always get disturbed between displays.

  • Is it possible to controll the positioning of a new window when someone clicks  one of my links

    I was wondering if it was possible to control the positoning of a new window that pops up  when someone clicks one of my site document links on my dreamweaver site. When a link is clicked and the new window pops up, I'd like to control the window size and positioning of the new window. Is this possible without having to use a tooltip or other option?

    Some browsers will display pop-up windows in the parent window, some will open them in a new tab or new window.  I'm afraid there is nothing you can do about end user settings.
    Creating link to open in a Pop-Up window using DW and the Behaviors Panel
    http://www.cbtcafe.com/dreamweaver/popup_text/index.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Urgent!! How to capture the active windows

    I want to write a program to capture the active windows in the Windows desktop. Can anyone help me. I know to use class "Robot" to capture the screen, but how to determine the position of the active windows in the desktop.
    Thanks...

    This code could work to capture the desktop screen:
    Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
    Image imgs;
    try{
         Robot r = new Robot();
    Rectangle rect = new Rectangle(0,0,d.width,d.height);
    imgs = r.createScreenCapture(rect);
    }catch(AWTException awe) {
    System.out.println("robot excepton occurred");
    Try this!!!

  • Snow Leopard Finder Icons Position

    Hi!
    Sometimes, when i restart the OS the system arrange the icons positions on the left side of the screen...
    I have a lot of icons (using two monitors) and this thing is very, very unpleasant!
    Anyone solved this problem?
    The genius tech's don't have a clue...
    Regards

    Hi!
    The problem isn't in the menu/option, it seems that when you connect external discs (USB or Firewire) and restart the machine, the icons on the desktop are rearranged by the system itself losing the initial position used by the owner of the account.
    If tried some tips found in the web but didn't solve the problem.
    Regards

  • How to understand the "New Item" icon at the bottom of the Project window

    I'm trying to understand that small "New Item" box at the bottom of the project window better. I'm aware that when I bring video clips into my project, if I drag them to this box, PPCS5 will add them to the timeline. I partially understand the positive reasons for doing so, primarily that PPCS5 will correctly identify the type of video being brought into the project. I know that if I select all my clips and drag them to the new item box, that all my clips will be added to the timeline at the same time and all together on the timeline. There are many things I don't understand about it. If I add my clips one by one using the "New Item" icon, they will show up as separate sequences on the timeline. If you try to add another clip at a later time, can that clip not be added using the "New Item" box?  One other question is what would be the advantage in putting clips on the timeline as separate sequences? And one further question is do you drag other items to this box besides video clips? Like music, and still images?

    Dragging something to the New Item icon doesn't just add that something to a sequence.  It actually creates the correct sequence for the something to be added to.
    You do this once, when you need a new sequence.  Anything else you want to add to that sequence you do by other means.

  • TS3694 I cant get my ipad 2 out of recovery. The apple icon stays on and nothing happens. I tried restoring it through Itunes but it comes up with a 3194 error code. I have the latest Itunes being 10.6.1.7 and the latest windows update.Can someone please

    I cant get my ipad 2 out of recovery. The apple icon stays on and nothing happens. I tried restoring it through Itunes but it comes up with a 3194 error code. I have the latest Itunes being 10.6.1.7 and the latest windows update.Can someone please help?

    Recovery Mode
    1. Disconnect the USB cable from the device, but leave the other end of the cable connected to your computer's USB port.
    2. Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for the device to turn off.
    3.While pressing and holding the Home button, reconnect the USB cable to the device. The device should turn on.
    4. Continue holding the Home button until you see the "Connect to iTunes" screen. When this screen appears, release the Home button. iTunes should alert you that it has detected a device in recovery mode. Click OK, and then click Restore to restore the device.
    Note: Data will be lost. You may have to repeat the above many times.

  • Bluetooth is neither detected nor working. In the system preferences under BLUETOOTH header it says "No information found". Bluetooth icon is not appearing on desktop either. Please help.

    Bluetooth is neither detected nor working. In the system preferences under BLUETOOTH header it says "No information found". Bluetooth icon is not appearing on desktop either. Please help.

    Yes....It happens all the time. I also erased my HD and installed Snow Leopard but with no success. Tried lots of REBOOTING but nothing worked for me.As I have already installed the new OSX I think there is no need to go through the below procedure. What do you suggest?
    Before you go through the ritual of reinstalling the entire system just try to do a "factory reset" of your bluetooth environment. To do this you need to run the Bluetooth Explorer which is a utility installed as part of XCode.
    1. Launch Bluetooth Explorer.
    2. Select the "Modify Software & Device Configuration" from the Utilities menu.
    3. Keep the first 4 checkboxes checked (one will say "Full factory reset").
    4. Click "Perform actions" button (lower right of window).
    5. Reboot (possibly the Reboot NOW button will work, if not just do a normal reboot).
    Hopefully that will clear your problem(s) so you can re-pair your bluetooth devices.
    Good luck.

  • How do I stop Firefox from claiming to have sessionrestore errors or opening the wrong session items and/or remember the wrong window size and/or position.

    Since automatically updating to version 25 Firefox is randomly opening recent tabs and windows from the browsing history, and/or randomly positioning the browser window from history.
    Currently using Firefox 25.0.1 on Windows Vista and Windows 7. Problems started immediately after automatic updates to 25.0.0. Problems are most noticeable on the Vista box because it has so much screen geography (the Windows 7 box is a laptop).
    Problems include:
    Firefox may open the correct tabs into a properly sized and positioned window, without problem. (Not a problem, included for completeness since it does, occasionally, work without error).
    Firefox open a single empty tab (about:blank, my Home page). (Listed as a problem because Firefox simply forgot the tab which was open.)
    Firefox may claim it cannot open the correct tabs and pop up about:sessionrestore. Proceeding will open all tabs (usually only one or two for me). This gives the impression Firefox did not actually have a problem. But, then, often, the tab Firefox is having problems restoring is about:blank so I should hope there was no problem!
    Firefox may open randomly selected recent browsing items, without other problems. This gives the impression that Firefox does not properly record recent history for about:sessionrestore. Checking History appears correct; Firefox simply reached back hours, or days, or even weeks, and restored a random session from long ago.
    Any of the above may occur, but the window position and/or size will be randomly selected from another recent history item. This is most noticeable when the position is on the wrong monitor and can be annoying since Firefox simply "disappears" if (as it often is for me) that other monitor is disconnected or powered off.

    If you use cleanup software like CCleaner then check the settings for the Firefox application.<br />
    Also make sure that your anti-virus software doesn't mess with files in the Firefox profile folder.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    You can check for problems with the sessionstore.js and sessionstore.bak files in the Firefox profile folder that store session data.
    Delete the sessionstore.js file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox profile folder.
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Multiple_profile_files_created
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost and you will have to recreate them (make a note or bookmark them if possible).

Maybe you are looking for