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

Similar Messages

  • 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

  • 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

  • How to position text in a window in sap script

    Hi all,
    I have a sapscript and in the main window of that, i have created 2 boxes. Now some line items get printed in the first box. But my query is about putting some text in the second box. How to put text at a certain position in a window in sapscript ??

    Hi ,
    If the Created boxes are side by side, use Tab or paragraph format (right aligned). If the second box is at the bottom of the main window use new-line command and create a text element and all the same using print program
    Regards,
    Chandra

  • How do I change position of video floating window in IDCS5 PDF export?

    I have created an interactive document in InDesign CS5 (for Mac) that includes some movies. The page size is 1280 x 800 and the H264.mov files are 960 x 540 and 800x600. I place the movie in the center of the page at 100% size (without resizing either the movie object or the frame). The poster is set to None to keep it blank. In the PDF options, the Play Video in Floating Window box is checked, with the size set to 1x and the Position is set to Center by default but it is grayed out, with no option to change it.
    When I export the document to PDF (Interactive) with both View and Layout set to Default and Buttons and Media set to Include All, the resulting PDF file opens the movie window in the upper right corner of the PDF document window. It does this whether viewing in Acrobat X Pro (10.1.2) or Acrobat Reader (9.5.0). I've tried opening the file on other computers and have the same issue. I've also created the same document in IDCS5.5 with the same outcome.
    I'd like the movie to open in the center of the PDF document window. I've made other documents where it does this, but for the life of me can't figure out what I'm doing differently to cause the floating movie window to open in the upper right corner of the PDF document.
    Any insight you could provide would be very helpful.
    Thanks,
    John

    Thanks for your reply, Steve. I, too, believe there is a bug, but it's not in InDesign CS5, as I mentioned in my post, I was able to replicate the problem by opening the file in CS5.5 and exporting it to an interactive PDF. The movie again opens in the upper right corner.
    However, if I create a NEW page in the document and place the same movie. it opens in the PDF reader centered in the page. I guess I could recreate the document if this is the only fix, but I thought that I may be doing something wrong, which apparently is not the case.
    "Computers often do what you want them to, but they ALWAYS do what you tell them to."   —anonymous
    "If you have placed the video in InDesign in it's own frame, should you not leave this box unchecked?"
    Rik, I didn't actually place the movie into a new frame. What I meant to say was that once the movie was placed into the document, I did not resize it. I found that if I don't have the PDF viewer open the movie in a flaoting window, the movie quality suffers if the PDF viewer opens in a larger size than the original InDesign page size (which can happen depending on how the user's PDF viewer is configured). However, the movie plays and views perfectly if it is in a floating window.
    jh

  • Editing the position of a floating window video for an interactive PDF

    I'm fairly new to InDesign CS5's interactive features, so forgive me if I'm making a blatant mistake. However, everything I have read about floating windows says that you can easily adjust the size and position in the Interactive PDF options dialog and I am not able to. I have no problem getting the video to play in a floating window, the problem is that I am unable to change the position settings. It is locked as "centered" though when I view the PDF, the window pops up in the upper right and extends beyond the frame of my window. How do I unlock the position settings and get it to actually play centered?
    I have tried this using a placed .mov video and I also tried converting it to a F4V file, because I read those worked better, but still no luck.
    Is anyone else experiencing this problem? Any solutions?
    Thanks!

    PDF (Portable Document Format) used to be a proprietary standard developed by Adobe Systems. A few years ago, they decided to make it an international standard, no longer proprietary: ISO 32000.
    http://www.adobe.com/devnet/pdf/pdf_reference.edu.html
    International standards are managed by standards organizations which meet with a committee structure. As such, they are slower to adapt to new techologies.
    By contrast, Adobe Digital Publishing Suite, it an active, rapidly-changing, PROPRIETARY set of applications and cloud-based services.
    Both models have their advantages and disadvantages.

  • Positioning box in Main Window

    I have a main window (Sapscript) with multiple text elements as follows:
    <Start Text Element1>
    Include statement with varying text length
    <End Text Element1>
    <Start Text Element2>
    Include statement with varying text length
    <End Text Element2>
    <Start Text Element3>
    I need a box to appear here with item header. ****
    <End Text Element3>
    How can I position the box in the 3rd text element section ? The text appearing in Text Element1 & Text Element2 are not fixed in length. I will not know where text element 3 starts.

    Hi...
    You can do like this.
    BOX XPOS  YPOS   WIDTH 10 CM HEIGHT 10 CM
    INCLUDE TEXT
    INCLUDE TEXT
    INCLUDE TEXT.
    Here, you need to change your XPOS and YPOS accordingly
    So that your Third text will be fit in the Box.
    Regards
    Sandeep Reddy.
    Edited by: Sandeep Reddy on Dec 31, 2007 11:34 AM

  • Tooltip position relative to browser window

    Hi -
    I have a repeating region of left-floated divs that works
    like a horizontal looper for my data set - items repeat
    left-to-right, then start a new row. I have a tooltip on the div to
    pop up a large-scale image of the underlying repeating data.
    The problem is that on the rightmost column, the tooltip
    image runs off the right edge of the browser window (causing the
    horizontal scrollbar to appear). The bottom row does the same with
    the bottom edge of the window - you have to scroll town to see the
    entire tooltip, rather than the tooltip adjusting for the bottom of
    the window. Does the tooltip widget have a setting that will change
    its position relative to the mouse if you are up against the edges
    of the browser window?
    Thanks,
    Rod

    I have this same question. Can the tooltip flip horizontally
    when it touches the browser edge?

  • Controlling the minimized position of a Form Window 10.1.2

    Is there a way to control the position where the minimized screen is placed in Forms App Server 10g? The reason I ask was that I put a post on here earlier that asked if anybody had issues with minimized screens getting lost in the app server window.
    I was having this happen when I set the Width and Height of formsweb.cfg to 800 Width and 650 Height. When I moved the Height to 850 and minimized the screen, displays my minimized window but I have to use the scrollbars in the web browser to see it. If I make the Height smaller, it doesn't contain it in the window.
    I can't find anywhere in the Forms themselves where you control this. I was interested if it is possible to modify the position. I Figured there was some code but I've looked and can't find it.
    Thanks,
    Chris

    Sarah,
    This worked on my local WIndows PC when developing but when I moved it up to the Linux Application server, it is still having the same issue. So, I'm still looking. But thank you because this was good to know. I'll look at the other threads here and try some of these.
    To the others, yes, I am trying to be able to select the Minimized window. I don't really care what the minimized window looks like. I just need to be select it. Right now, I can't even select it. I tried the height/width at 100% and the minimize doesn't display.
    So, I'm looking at the other options that everyone is suggesting.
    Thanks,
    Chris

  • Size and Position of New Safari Windows

    When I click on a link in safari and it opens a new window I would like to be able to have that window open at a particular size and position of my choosing.  How can I do this?

    I used to think that it used the same size and placement as the last window closed but it is not doing that for me now.
    It should.
    Since you're running Lion disable Resume >  How To Disable Lion's 'Resume' Feature - MacRumors.com
    Then restart your Mac.
    If that doesn't help, go to ~/Library/Caches/com.apple.Safari
    Move the Cache.db file from the com.apple.Safari folder to the Trash.
    Restart your Mac. Launch Safari. See if it will "remember' window size.
    Message was edited by: Carolyn

  • Can I move an iconified JInternalFrame??

    Is it possible to move a JInternalFrame that has been iconified?
    I've tried all the usual methods, setBounds(), setLocation(), move() and they are ignored.
    I have a JDesktopPane that contains several JInternalFrames. When one is iconified I want to move it to another spot on the desktop.

    It sure is possible. The thing is, the icon is not the JInternalFrame itself. It is another component altogether that represents the JInternalFrame's iconified form.
    This component is a JInternalFrame.JDesktopIcon. You can get a reference to it using the JInternalFrame.getDesktopIcon().
    I would probably just use setLocation() on the JDesktopIcon.
    Example:
    JInternalFrame f = ....;
    if (f.isIcon()) {
        f.getDesktopIcon().setLocation(newX, newY);
    }Note: None of this code was tested.
    Good luck.

  • Screen Position & Scaling to Fit Window Size

    Hi there!
    I was hoping someone might be able to help me or point me in
    the direction of help! I'm not sure if I'm asking a really stupid
    question! I'm also not sure of what I'm asking for is called so
    I've looked at existing examples on the web to illustrate my
    questions.
    I've come across this website (
    http://www.toshiba-emi.co.jp/hikki/index_f.htm)
    which features a swf which is displayed at 100% width and height,
    and with no scaling.
    Firstly, I was wondering how the background photo can be
    rescaled depending on the window size, even with the noscale param?
    Secondly, I'd like to know how the 'Last Update' box always
    aligns to the bottom left and the title box always aligns to the
    top left. Another website (
    http://www.square-enix.co.jp/kingdom2fm/)
    shows similar with elements snapping to the extremities of the
    screen while the main content stays centred.
    Thanks for taking the time to read this. I'd really
    appreciate any help you can give me!
    Andy

    bmihura wrote:
    I'm studying for the CLD and I notice that one of the requirements is this:
    Develop block diagrams to fit a screen resolution of 1024 x 768.
    When I create a new VI, its resolution is slightly too big: 1110 x 768.
    When I create a subVI via the menu item Edit >> Create SubVI, it is way too small: 800 x 543.
    For both methods of creating new VIs, I would like to specify both the screen position and window size. But if that is not possible in LabVIEW, I'd like a quick way to make this happen. I see some property nodes for VIs where I could write a subVI that could do this for the front panel, but that is awkward. And it does not apply to block diagrams.
    Is there a clever way to do these things?
    It doesn't mean the default size of the window. It means once your code is complete, your block diagram should be small enough that you can see all your code when its on a monitor of that resolution. Before you test, set your computer monitor resolution to 1024x768. Write your code. If all the code on your block diagram can be seen without scrolling, you will be fine. They won't measure this explicitly. They are basically just saying "you shouldn't have a huge block diagram."
    CLA, LabVIEW Versions 2010-2013

  • Messages are incorrectly positioned inside IM chat window (after Office 2013 SP1 update)

    Hi,
    After installing Office 2013 SP1 today (Lync desktop 2013 client version updated to 15.0.4569.1506), messages inside Lync's chat windows are positioned in a wrong way when using DPI of 125% in Winodws 8.1.
    Can anyone else confirm this and/or suggest a solution? We cannot unistall SP1 since we're using Click-to-Run version from O365.

    Can you try re-sizing the Lync IM window's width as small as possible? I have the issue due to long name, haven't tried playing with DPI.
    Please mark posts as answers/helpful if it answers your question.
    Blog
    Lync Validator - Used to assist in the validation and documentation of Lync Server 2013.

  • On a Mac with two monitors, how do I get a new FF window to open on the second monitor? I can do this on a Windows XP box easily enough but on a Mac FF won't remember the position of a new window. Please help!

    I proof websites for a living and workflow is everything. On my 26" main monitor I have FF running the job tracking web site. In this site, there are links to the sites I need to proof. I would like to be able to right click on a URL and select 'open in new window' and have that window open up on my second monitor.

    Here's some more info about the router settings:
    iOS: Recommended settings for Wi-Fi routers and access points
    You should be able to get into the setup of your router by typing the IP address into your browser.
    Depending on your router security setup, you might need the MAC address of your iPad, to allow access to your network, if the so called MAC filtering is active.
    You can also check the name of your home network if your click on the AirPort icon on your desktop of your MacBook.
    And here's a Wi-Fi assistant to get you going: http://www.apple.com/support/ipad/assistant/wifi/
    Message was edited by: Ingo2711

  • How to control the location of Iconified JInternalFrame?

    Is there any way to control the location of Iconfied JInternalFrame on JDesktopPane? I've searched API reference and tried to find suitable methods to override in UI classes. But I still cannot figure out how to do it after a long time. Who have any ideas about it? Thank you very much.

    DefaultDesktopManager.iconifyFrame(...);

Maybe you are looking for

  • Creative Cloud subscription and trial mode?

    I have a creative cloud subscription for a year, but business catalyst seems to only offer me a "trial mode". I'd like to set up a website (actually, a subdomain off of a current website hosted somewhere else). I was under the impression that we're g

  • LG Optimus Exceed 2 - Keyboard disappears

    I've only had this phone a couple of months.  The first problem started with the keyboard issue.  I'd be typing and after a few keystrokes the keyboard would just disappear.  I could tap the message box, or toolbar, whatever I was typing in and MAYBE

  • Occasionally text is coloured and blurry

    For 2 days now occasionally I will see some text on web sites that appears to be blurry and/or off-coloured. I've capped a screen and have posted it here. http://img109.imageshack.us/img109/7152/blurry.jpg Update: Problem being looked at in this thre

  • DW CC 2014 Behaviors - Effects - Fade

    I need help.  Been chasing my tail a bit.  My goal is simple - I want to fade in a photo on load and leave it there until the customer clicks on it to close. I tried a few things and here are the results but not yet what I want. Prior to setting any

  • Cannot Get Mail Username or Password incorrect even if info are correct

    I have a Gmail account witch use to work on previous iPhone system (1.X). Now that I upgrade to (2.x) the mail app seems to be completely crazy. It tells me that my information are incorrect (password or username). I reset my email account probably 2