Setting repaint behavior

Hello
I am now developing a swing application for my customer (which should work under windows and under MacOS X), and I have an issue to fix:
When the main frame of my application is resized by pulling one of its borders with a mouse, the Swing tries to repaint the frame in process. However, as the UI is rather complex, it takes a while to repaint and results in "jumpy" resizing. Im quite sure there was a way to change the resize behavior to repaint only after the mouse is released, but I cant find, how! Could anyone help?
P.S. Searching the forum and the web didn't bring any results..

A ComponentListener may be what you need. You may do well to re-search this forum with the words -- componentlistener jframe resize -- or some similar combination.
One result:
[http://forum.java.sun.com/thread.jspa?forumID=57&threadID=5228050|http://forum.java.sun.com/thread.jspa?forumID=57&threadID=5228050]
Edited by: Encephalopathic on Apr 25, 2008 8:09 AM

Similar Messages

  • Set Speed behavior question

    I don't gedit... I've applied 2 Set Speed Behaviours of 50% to a clip: the 1st one to the first 18 frames and the 2nd one to the last 15 frames. The clip's original duration of 00:00:05:21 is unchanged after applying the set speed behaviours. I was expecting that the duration would increase by 33 frames (18 + 15). I have not used ease in or ease out (they are set to 0). I have not blended the frames or used Optical Flow. When I scrub through the clip frame by frame, I can see that Set Speed has duplicated each frame, which is what I expected. But if it's doubled the frames and not increased the overall duration, surely something must have been dropped? The clip ends at the same place.
    The clip's original frame rate is 25fps and the format is HD Blackmagic 10 Bit, 1920 x 1080, progressive
    Can anyone explain why there is no frame rate change please. I've spent a couple of days searching to try to find a discussion on the Set Speed behavior in Motion 3 but haven't found anything that goes into the frame rate implications.

    Good question as I originally imported the clip as project to ensure I had the right settings. This did create a project duration of 00:00:05:21, so I changed it in the Project Properties dialogue to 00:00:10:00. I then applied the 2 Set Speed behaviours and RAM previewed all. After frame 00:00:05:21 the remaining frames are black - ie the clip still ends at 00:00:05:21 even though the project's duration is 00:00:10:00.

  • Setting Link Behaviors

    I want to create a link to open a new window that has a
    defined width. I've created a hyperlink on in the document and
    selected _blank so it opens up in a new page. However, it opens in
    a fully maximized page, whereas I want it to have a smaller defined
    size so it does not cover the original page.
    My link code is: <div id="Footer">&copy; 2009
    Company Name &#124 <a href="legal.html"
    target="_blank">Legal and Copyright</a></div>
    I tried to define the size of the new page by having my
    cursor on the link and setting the Behaviors - Open Browser Window
    paramaters. I define the URL, the size, etc. as seen in the code
    below:
    <div id="Footer">&copy; 2009 Company Name &#124
    <a href="legal.html" target="_blank"
    onclick="MM_openBrWindow('legal.html','','width=800')">Legal and
    Copyright</a></div>
    However, when I go and test it, it opens two new pages: a
    full page and a minimized page set to the parameters I specified. I
    also tried to just use the Behaviors panel vs. defining the
    hyperlink but that just caused it to apply to the entire paragraph
    and no hyperlink appearing in the page.
    Please advise on how I can have a link that opens up a new
    browser window that has defined width (that does not end up being
    blocked by a pop up blocker).
    Thanks.

    You can use DW's OpenBrowser Window behavior instead of the
    method you are
    using.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "ndc6060" <[email protected]> wrote in
    message
    news:gnegpd$arh$[email protected]..
    >I want to create a link to open a new window that has a
    defined width. I've
    > created a hyperlink on in the document and selected
    _blank so it opens up
    > in a
    > new page. However, it opens in a fully maximized page,
    whereas I want it
    > to
    > have a smaller defined size so it does not cover the
    original page.
    >
    > My link code is: <div id="Footer">&copy; 2009
    Company Name &#124 <a
    > href="legal.html" target="_blank">Legal and
    Copyright</a></div>
    >
    > I tried to define the size of the new page by having my
    cursor on the link
    > and
    > setting the Behaviors - Open Browser Window paramaters.
    I define the URL,
    > the
    > size, etc. as seen in the code below:
    >
    > <div id="Footer">&copy; 2009 Company Name
    &#124 <a href="legal.html"
    > target="_blank"
    >
    onclick="MM_openBrWindow('legal.html','','width=800')">Legal
    > and Copyright</a></div>
    >
    > However, when I go and test it, it opens two new pages:
    a full page and a
    > minimized page set to the parameters I specified. I also
    tried to just use
    > the
    > Behaviors panel vs. defining the hyperlink but that just
    caused it to
    > apply to
    > the entire paragraph and no hyperlink appearing in the
    page.
    >
    > Please advise on how I can have a link that opens up a
    new browser window
    > that
    > has defined width (that does not end up being blocked by
    a pop up
    > blocker).
    >
    > Thanks.
    >

  • SET QUOTED_IDENTIFIER behavior change? SQL2012

    I am running into a problem with a statement that had been being used for almost a decade(My way of saying I didn't come up with it). Using ADO, we execute the statement "SET QUOTED_IDENTIFIER OFF Select * From Models Where (Name = "ModelDb_Template")
    SET QUOTED_IDENTIFIER ON". The string, "ModelDb_Template" is inserted by our code into the string before execution rather than using a parameter.  
    My best guess is that this was done to allow the Name column to be tested against a string that might contain a apostrophe.  And it seems to have work up until now. Now I am seeing a rather cryptic message:
    Error: WriteToTbl failed, because Invalid column name 'ModelDb_Template'
    I can understand that if the QI flag is not set 'right', the engine will be treating "ModelDb_Template" as a column name. What puzzles me is why this is happening now and what that
    WriteToTbl bit is about. The [Models] table has only one row so I would not expect a temp to be needed unless it is a result of the QI flag. And it ONLY happens on the very first call of the session. After that, it succeeds! It seems like the Setting QI
    to OFF is happening at the END of the statement now after the Select statement is parsed.
    All other places I am seeing this are users who have moved to SQL2012 and I am wondering if this is a breaking behavior I had not seen before. It is happening on
    11.0.2100.60 at least and I am trying to get info on 2012 SP1 and 2008r2.
    And information or clues would be most welcome.
    Thanks

    I did a closer read of the docs and there is a SMALL but important difference in the description of QI between the 2012 and the 2008r2 versions.
    IN 2008r2, It reads:
    SET QUOTED_IDENTIFIER is set at parse time. Setting at parse time means that if the SET statement is present in the batch or stored procedure, it takes effect, regardless of whether code execution actually reaches that point; and the SET statement takes
    effect before any statements are executed.
    This could be read as meaning that the text between the two sets is parsed based on the first one. 
    in 2012 it became:
    SET QUOTED_IDENTIFIER is set at parse time. Setting at parse time means that if the SET statement is present in the batch or stored procedure, it takes effect, regardless of whether code execution actually reaches that point; and the SET statement takes
    effect before any statements are executed. When multiple conflicting SET statements are present in the batch, the last setting parsed is used.
    This strongly suggests that the first will be ignored.
    So, while it doesn't explain the fact that the query runs after the first failure, I think it does explain the first failure.
    Now to find a way to let this run without a new version of the app. I don't think I can.
    Thanks again to anyone who took the time to think about this for me.

  • It should be possible to set default behavior for all file types

    It should be possible to set a default action for all file types. I'm so tired of having to manually sit and say "save this file" because Firefail always defaults to "open with" and has disabled the "Do this automatically for files like this from now on."
    And spare me the zealotry religious excuses for why its the fault of websites and not Firefail
    ''edited to remove swearing''

    I do want users to have full control to be able to set any folder view they want by using Apply to Folders; I just want to set the initial/default view to Detail because that matches what the majority of my users want.
    That is, what registry setting changes when I go to a picture folder, change the view to Detail, and click Apply to Folders? Having done that, I still retain the ability to change it to some other view and apply that to folders. But what registry setting
    represents the change I just made when applying Detail view to all Picture folders.?
    This settings is simple via GUI, but it is related a lot of registry keys, I made a test in my machine, capture the "Apply to Folders" process using Regshot tool (this is a small tool which can compare the regsitry changes after you change some
    settings), and this is the result:
    this is part of the registry changes, a plenty of registry keys and values need to be changed. hard to list them here. if you have interests, I recommend the tool Regshot, it can help you capture the regsitry changes.
    NOTE: Please Note: The third-party product discussed here is manufactured by a company that is
    independent of Microsoft. We make no warranty, implied or otherwise, regarding this product's
    performance or reliability.
    Yolanda Zhu
    TechNet Community Support

  • Need help with Set Text behavior

    In Dreamweaver CS3/Mac, I am creating a disjointed rollover
    that is initiated by rolling over an image. I need it to swap two
    images and hopefully set text in two divs. I want this to happen on
    rollover and not on click. I don't want it to restore on mouse out.
    The images are no problem but I can't seem to make this happen for
    the text. Is this possible? Any help? Thanks.

    http://murraytestsite.com/carneros.html
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "LB:Monroe" <[email protected]> wrote in
    message
    news:fsp2da$l1$[email protected]..
    > Thanks for your response. You can view the page under
    construction at:
    >
    http://www.monroest.com/tlcd/
    >
    > As one rolls over a square (image file) in the top bar,
    the following is
    > to
    > occur:
    > the large image swaps (simple swap image)
    > the caption text changes (text, not an image)
    > the text to the right of the image changes (text, not an
    image)
    > the background color of the text div (currently light
    gray) changes
    > (property
    > change?)
    > on some of them, the text color of the long text block
    changes (property
    > change?)
    http://www.monroest.com/tlcd
    >

  • Help setting the behavior of a button, possible using a variable

    Hi,
    This is my first time posting here and I'm sure I will be coming back, because I'm about to start a big project.
    The Problem:
    What I'm trying to do is get the user's input (text field = new_title), then having a button that will take that input and use it as part of a URL.
    The following will be the destination URL:
    http://www.mysite.com/wiki/index.php?title=new_title_from_text_field&action=edit&redlink=1
    The Background:
    I have installed Media Wiki in my website, but I want to have a more straight forward approach to creating new pages. So I'm creating an introductory page where the user can enter the title of the page he/she wants to create, click a button and go to the editing page from the Wiki, with their new title in place.
    Thanks, I appreciate any advice you can give me.
    Daniel

    Bregent and Michael,
    Thanks for your help, I used both of your answers and came up with the following.  I'm not sure if it's done in the "propper" way, but it accomplished what I needed.
    Please let me know what you think.
      <form action="http://www.mysite.com/wiki/index.php?title=" method="get" name="form1" target="_parent">
        <input type="text" name="title" id="title">
        <input name="action" type="hidden" id="action" value="edit">
        <input name="redlink" type="hidden" id="redlink" value="1">
        <input type="submit" name="new_page" id="new_page" value="Create">
      </form>
    Thanks,
    Daniel

  • Odd ProRes sequence set-up behavior in Premiere Pro CC

    When I create a new sequence by dragging a ProRes HQ file onto New Item icon, it creates a DNxHD sequence.  My ProRes HQ footage is captured by the Blackmagic Shuttle2 recorder, and MediaInfo verifies it is ProRes.  Yet the sequence settings in Premiere Pro CC show:
    Editing Mode:  DNX 145 1080i
    Video Previews box:
    Preview File Format: DNX 145 1080i 59.94
    Codec:  DNxHD
    I am on a Mac with Quicktime 7 installed.  There is no problem ingesting and importing the ProRes HQ camera video files into Premiere Pro.  I am just not seeing a ProRes sequence being created.  Is there something else I should test for?
    Thanks.

    No, sadly.
    I went into great deal about it here:  http://forums.adobe.com/message/5457995#5457995 , and here :http://forums.creativecow.net/readpost/3/942978 ; it seems to be a 'well known' bug?
    I can work around the sequence not matching the clip properties, but I want the export settings to match the clip properties (which is why I wanted the sequence settings to match the clip properties; because then I can do an export using sequence settings).  I can't do that now unless I do it manually....anyway, see my first link above for the details.
    Thanks!
    ~Michael

  • There has got to be a way to set Tab behavior?!

    I cannot believe that something as simple as being able to Tab to the first cell of the next row is not an option...or at least I can't find it.
    If I have a header row for a specific number of columns and the rest of the header cell fields are empty, when I start filling in the data fields why would it be coded to think I want another column when I've already titled the columns I need?  And in fact, while I've been writing this I've also been testing multiple actions just so I at least had a legitimate question...but I can't even find any keyboard key (or combination of) that will get me to the first cell on the next line!
    I am a keyboard person.  I do not look at the keyboard while I'm typing.  I shouldn't have to stop typing and use my mouse to select the cell I want.  What am I missing?

    If you enter data in one cell and hit Return, it moves you to the cell directly beneath.
    If you enter a few columns of data, using Tab to enter and move right, when you hit Return it moves you to the first column, one row down.
    If you hit tab when in the rightmost column ,it will add a column to the table. If you hit Return while in the last row, it will add a new row. It can be argued that both of those actions make sense for data entry. It can also be argued that they don't make sense, that you should have to manually add more rows/columns when you need them.

  • App sets behavior of Galaxy S6 and S6 Edge backlit keys

    If you want to set the behavior of the soft keys on the Galaxy S6 or S6 Edge, there's an app for that:
    http://www.droid-life.com/2015/04/21/handy-app-galaxy-button-lights-lets-you-decide-when-your-galaxy-s6s-soft-keys-light…

    Excuse the thread necromancy, I had an S4, that upgraded from KitKat to Lollipop and the app drawer remained sorted alphabetically. New S6 has them higglety pigglety which is of precisely no use to anyone whatsoever. No option to sort. So it seems to be wholly an S6 thing and o2/Telefonica need to bring pressure to bear upon Google/Samsung to allow a AZ sort. Why would I want apps ordered in date of install rather than the universal standard alphabet?! Almost as annoying as Facebook/Instagram installed on the ROM and not uninstallable.

  • How to get the text of an onclick/'open browser window' behavior to look like a link

    If I set this behavior to a specific word (on an <a> tag without the 'href') the link is not underlined and the mouse does not turn into a pointer. If I set this behavior to a full <a> tag with the 'href="..."' then the browser opens a new window (as per the behavior) and a new page on the original window (as per the href="..."). How do I get the link to appear as a link (underlined and mouse changing into pointer) without having to assign a href="..." to the <a> tag?

    Gary,
    I appreciate the time you are giving me to address my question. However, even though I would like to have this link stand out to the viewer, I do not want it to stand out from all the other links that surround it. Also, I have tried the solution you have given me, yet it to also causes the browser to load the new window and the original page. There is no difference whether the behavior is linked to <a href> or some other tag as long as there still is an <a href> the original browser will load the new page as well.

  • Pause / Resume button combination not working when set to display for "rest of project"

    Good day,
    I have created a set of four objects on slide2 of my project
    1. Smart Object rounded rectangle with text "(playing) - CLICK to Pause" [this is the graphic the user sees]
    2. Smart Object rounded rectangle with text "(paused) - CLICK to Resume" [this is the graphic the user sees]
    3. Smart Object rectangle, transparent, used as button, set to not display in project - btn_Resume
    4. Smart Object rectangle, transparent, used as button - btn_Pause
    A. Script assigned to btn_Pause hides btn_Pause and the "CLICK to Pause" graphic, shows the btn_Resume and "CLICK to Resume" graphic, and pauses the project by setting the system pause variable to 1
    B. Script assigned to btn_Resume hides btn_Resume and the "CLICK to Resume" graphic, shows the btn_Pause and "CLICK to Pause" graphic, and resumes the project by setting the system resume variable to 1
    C. All items are set to display from the beginning of slide2 for the "rest of project"
    On slide 2, the buttons hide/show and pause/resume behaviors work correctly.
    On slide 3, the correct initial button and graphic appears, and the click sound works when clicked, but no behaviors (show/hide/pause) occur until a good amount of time into the slide: you can click all you want for 20-30 seconds, but nothing works except the click sound. Eventually, the behavior will work.
    On slides 4 and following, the correct initial button and graphic appears, and the click sound works when clicked, but no behaviors EVER work.
    If the behaviors NEVER, EVER worked, I would keep looking for what I did not have set correctly, but the correct working on the slide where they are set, delayed behavior on the next, and no behavior on the remainder of slides following has me stumped.
    Captivate version 6.0.1.240
    Windows 7 OS
    I hope I'm missing something obvious here, and I'm more than willing to face-palm if you tell me . Otherwise, I have not been able to find any setting that makes any difference. I would REALLY rather not duplicate the buttons and scripts on every page of the project. Given the blog posts I have seen saying this method should work just fine, I'm hoping there is a side quirk somewhere that I'm missing.
    Thanks for any help you can give.

    Without clouding with too much explanation, this technique arose out of a need to deal with (in a different project) objects that were grouped, and wanting to deal with the groups in as simple a way as possible, allow for easy swapping of group assets, and having a few buttons do multiple things. The idea of being able to have multiple interactive buttons stacked on top of each other while appearing for the rest of the project led to trying this simple construct before trying something more complex.
    You are correct, that there is a simpler solution, which we ended up using because we were not able to get two interactive buttons stacked on top of each other while displayed for the rest of the project to work properly (although that is SUPPOSED to work, as far as I understand).
    Here's what we ended up doing:
    A) Two smartshapes used as messaging graphics
    B) A single (one) interactive smartshape used as a button
    C) A conditional action to pause/resume and show/hide the appropriate messaging graphics
    D) All three objects (A&B) stacked, B on top.
    E) All objects set to always appear on top, and to display for rest of project.
    Our hypothesis, then, is that you are not able to stack interactive objects on top of each other and then display for the rest of the project.
    If anyone has evidence to the contrary, we would, gladly, take a look.
    Thanks for your interest Lilybiri, and for your input.
    Best regards,
    Hank

  • Mutiple Behaviors from one button

    How can i set multiple behaviors to one button? I want a
    popup window to close when I click Submit, and also change the main
    page to a different website. Any help with this will be
    appreciated.

    Write a script that does it, activate the script with the
    button.
    "B3CARL" <[email protected]> wrote in
    message
    news:ea9at5$anv$[email protected]..
    > How can i set multiple behaviors to one button? I want a
    popup window to
    > close when I click Submit, and also change the main page
    to a different
    > website. Any help with this will be appreciated.

  • Having trouble getting "Set action to take when logon hours expire" to work - Windows Server 2012

    I have a Windows Server 2012 server that allows remote desktop users (sessions are hosted on the server itself). I'm trying to enforce logon hours for these remote desktop users.
    I have specified logon hours for a user and confirmed that they work--they aren't allowed to logon when logon hours are disabled. However, they are allowed to continue a session past their logon hours limit if they are already signed in (which is fine, this
    is the default behavior).
    However, when I try to use the `Set action to take when logon hours expire` option (`User Configuration/Administrative Templates/Windows Components/Windows Logon Options/Set action to take when logon hours expire`), and set the behavior to "Logoff",
    nothing happens--the user can continue their session happily. I've tried applying this policy both for the user's group and for the local computer. I've run `gpresult` for the user and confirmed that the policy is apparently in place.
    I also naively tried the "Force logoff when logon hours expire" option, but that apparently doesn't apply to interactive logins (confusing!).
    Am I misapplying this setting, or do I need to take some other steps to get it to work? I'd be grateful for any input. Thanks!

    Hi,
    Sorry for the late response.
    We can log off and log on again to see whether the setting gets applied.
    According to
    Policy Settings that require a reboot or logon section in the following article, this setting needs a logon.
    Deploying Group Policy Using Windows Vista
    http://technet.microsoft.com/en-us/library/cc766208(v=WS.10).aspx
    Best regards,
    Frank Shen

  • Default link behavior is rather annoying

    Safari seems to be the only browser that doesn't open links in a new tab and doesn't provide an option to set the behavior. I've been told its an option on the mac version but the only option is to control when you click links on the windows version. Why the **** is there no option to send links to a new tab? It gets rather annoying when using something like google reader in which you open a lot of links.

    Why the ** is there no option to send links to a new tab? It gets rather annoying when using something like google reader in which you open a lot of links
    Only the folks at Apple know. Send your feedback to them via the Help menu > Report Bugs to Apple... option in Safari.

Maybe you are looking for

  • How to get commerce item level taxAmount,shipTo details and etc?

    Hi , How to get the commereceItem level taxAmount ,shipTo address details,price includes vat or not and discounts. Regards, Satya.

  • Need Help by some % calculation

    Hi Guys, i need some help calculating something. I have 5 boxes; "boxA" - "boxB" - "boxC" - "boxD" and "boxE". Box A–C are sums coming from other fields. "boxD" represent the VTA – and can be just 19% ore 0%. This means that "boxE" = ("boxA" + "boxB"

  • How to check a listener in SAP for a TIBCO topic (published message)?

    Hi,    We are using TIBCO  as the middle ware between SAP and Documentum. For the last few days none of the IDOCs sent from TIBCO are coming into SAP. The concerned person from TIBCO team said that, "TIBCO is publishing messages on the topic SPC.All4

  • Thumbnails in sample application

    Hi APEX gurus, can anyone explain how the Products report in the sample application manages to display these nice little thumbnail pictures please. And also: can anyone lead me the way to the images (where are they stored exacltly?) and how can I fin

  • Alternate Shell with specified batch file

    Hi there, I've created a set of scripts for my computer lab which, per a scheduled task, reboots the computer into safeboot with the alternate shell enabled (via bcdedit). It also sets the machine to auto-login (via registry keys). Then it runs a cou