SpringLayout Unexpected Behavior: Up, Up, and Away!

Hoping to replace several custom layout managers, I have been tinkering with SpringLayout. Odd things are going on. When I increase the parent's height, some components move out of sight. To see a similar effect:
(1) get SpringDemo3.java from How to Use SpringLayout. http://java.sun.com/docs/books/tutorial/uiswing/layout/example-1dot4/SpringDemo3.java
(2) change one line of code to replace the JTextArea with a JButton or a JLabel
//JTextField textField = new JTextField("Text field", 15);
JLabel textField = new JLabel("Not Text Field");(3) Run the revised SpringDemo3
(4) Increase the frame's height (with the mouse, not in code)
(5) The first label moves up and disappears out the top of the frame!

A very interesting problem, with a very simple solution after a very large amount of messing around. Luckily for both of us I ran into a similar problem yesterday with my reply on this thread While fixing that I found your solution.
Just add this constraint to your modified SpringDemo3 and it ties your columns together and they don't float any more.
layout.putConstraint(SpringLayout.SOUTH, label, 0, SpringLayout.SOUTH, textField);You can tie either the north or the south together to tie stop the floating.

Similar Messages

  • Unexpected behavior with UIWebView and Apple website

    I am experiencing a very weird behavior when I try to load the new Apple website (www.apple.com) within a UIWebView. It first loads ok but when it finishes loading the WebView switches to a blank page.
    I don't experience this kind of problem with other websites that I have tested. Therefore I don't believe that this is an issue of my application.
    Could someone please do me a favor and confirm this behavior?
    Thanks a lot,
    Florian

    Actually, Apple has always supported using custom folders in iMap for Deleted Messages, Drafts, Sent, & Junk. But I agree that with the release of 10.7.2 and iCloud with their new Archive feature, they haven't made it easy!
    I run my Mac in Swedish, so forgive me if I don't remember or get the exact wording of each option 100% correct, but I'm sure you'll figure it:
    In Mail Settings under your iCloud account, and in the middle tab (Mail Box Functions?), under the trash option at the bottom, make sure that:
    Move deleted mail to the trash can is Checked!
    Save deleted mail on on the server is Checked!
    Delete trashed (?) mail permanently is set to NEVER!
    Then go back to the main mail window and display the folders for your iCloud account on the LH side
    Select your achive folder.
    Go to the Mail Box menu in the menubar, Select "Use this mailbox for..." and then Select trash.
    You will not notice that your archive folder now appears under the trash can in Apple Lion Mail (and the deleted items folder that is no longer the trash will appear under the folders).
    This works a treat, and in fact I use this for Gmail as well. If you're interested, I have so much mail in all mail, but I want to have everything in Apple Mail. I also get to have a private backup on my Mac (and Time Machine).
    So, in Gmail, I have an "Apple Trash" folder which I link to deleted items as above, and which every six months or so I relabel (in the gmail app) to another folder. That way I don't have 50,000 mails in my trash. I don't activate All Mail in Gmail's IMAP because everything I have is always in at least one other folder / lable which syncs to my mac!

  • DNS SRV Proxy Lookup and Failover Mechanism / Unexpected Behavior

    Group,
    I came across some unexpected behavior yesterday I was wondering if someone could help shed some light on the problem. In my DNS I created this record: _sip._upd.platautofinance.com which when I do a query using MX Toolbox it is correctly reporting the following:
    On the SPA504 I have programmed the SRV records into the system using the following:
    So here is the issue, the phones will register correctly to the primary server but after a length of time ALL the phones will abandon ship and jump to the secondary server and stay there. I have to manually shut the secondary down, reboot the endpoints at which point they will re-register with the primary. So I think I need to understand the mechanism a bit better. Here is what I can think of:
    The phones are not using the primary DNS service record providers DNS servers, we are using OpenDNS instead of Network Solutions <-- Unlikely because the SPA would not be able to resolve the SIP SRV records / servers at all with a broken DNS resolution. I can tell by dropping from the primary to the secondary that resolution is taking place on the phone because they are jumping between the right ones.
    My understanding is the proxy fallback interval should have the phone register (and they should be checking periodically if the primary is available again and if so, re-register the to the lowest-weighted server) but that's not happening without a manual reboot. Once on the secondary they want to stay there.
    My firewall for both the primary and secondary servers do not answer ICMP. 
    So the question is: why do the SPA phones think the primary is offline? What is the mechanism or criteria the SPA uses to determine a server is offline and then rolling to the secondary? Why do they want to stick around the secondary which is using only a best effort connection when we have a bonded T on the primary?
    Thanks as always for your help and input group! Appreciate your time.

    Hello Adam,
    I believe it will be easier if you call SBSC and ask the questions directly. The questions are very good and exact. I will try to answer shortly. Assuming you use only CCA to configure the system.
    1. If you have set dns for your internet connection it should work, you may try with different dns servers. Please delete the SIP trunk and recreate it.
    2. Please delete the SIP trunk and recreate it.
    3. If you need to configure more codecs through CCA you may send feature request using envelope button of the CCA.
    I hope the above answers will be helpful although very short. If they are not helpful please contact SBSC and open a case.
    Best regards,
    Alex

  • Unexpected Behavior error while creating a connection in IDT

    Hi Everyone,
    I have created a connection on top of a database using ODBC.
    I could able to see the connection in IDT.
    I have mentioned the user name and pw correctly  and tried testing the connection and got the error "unexpected behavior"
    PFA error.
    what could be the reason? any idea?
    Thanks.

    I find this 32-bit vs. 64-bit ODBC somewhat confusing.  I know you aren't dealing with Crystal Reports, but this blog post does provide some clarity.  It has a link to this Microsoft knowledge base article from which I quote...
    A 64-bit version of the Microsoft Windows operating system includes the following versions of the
    Microsoft Open Database Connectivity (ODBC) Data Source Administrator tool (Odbcad32.exe):
    The 32-bit version of the Odbcad32.exe file is located in the %systemdrive%\Windows\SysWoW64 folder.
    The 64-bit version of the Odbcad32.exe file is located in the %systemdrive%\Windows\System32 folder.
    One other warning.  In my experience I have found that you cannot run both the 32-bit and 64-bit ODBC admin tools at the same time.  If you have one running and try and start the other one it will just bring up the one you already had running.
    To make sure I know which instance I am in at any give time I have created a dummy data source that corresponds to the instance; 32-bit or 64-bit.
    Let us know how it goes.
    Noel

  • Unexpected behavior on 5.1.19 Select query

    Hello There,
    We are seeing an unexpected behavior on 11.2.5.1.19 where we are expecting our query should response “X” number of records while it response us back with less number of records in some situation. While looking to the change log we did notice that a fix has been added to 11.2.5.1.25 as follows:
    “Fixed a bug that would return DB_NOTFOUND while searching for an existing item using a cursor on a non-sorted duplicate btree database. [#19210]”
    We were wondering whether that fix could resolve this issue or not? If yes, is there a way we can get a Patch to apply and validate so that we can move to 11.2.5.1.25 or newer versions.
    Here is what we are doing, Within an application we have two threads, One is Inserting/Updating record in the table while the other one is selecting, and all DB operations are done in transaction. Select thread comes after certain time whenever a condition is satisfied. Although it work fine most of the time but there are situation where select response with fewer records that we expected, that causes our program to died as expected. However, if we query the Database (using dbsql) after the application died using the same select query/criteria we could able to select the exact same number of records that we were expecting to see. We are not sure what is going wrong here, any help is appreciated.
    Regards & Thanks

    Hi Rittick,
    I have made some modifications to the example program ex_sql_multi_thread.c,
    based on the information you sent in email. So far I can not reproduce the
    problem either. This does look like something we have seen before:
    Berkeley DB lost data sometimes when I ran the example ex_sql_multi_thread
    but it is difficult to pinpoint without an exact reproducer. One thought is
    if you can try the application with the latest Berkeley DB release which
    is: 5.3.15. Some race conditions were fixed in that release and since you can
    reproduce the behavior with 5.1 and 5.2 you should be able to verify if
    it is present or not in 5.3.15.
    Thanks,
    Sandra

  • Unexpected behavior error

    Header 1
    When running a self-built report using the IOM Tactical Reporting Universe.  This error is received intermittently, as at times the report runs without any issues (indicating no logic issues in the actual query).if we run rest of the reports on same universe reports working fine.we are using sap BO 3.1 sp 3. please help anyone on this.
    Error....Unexpected behavior (wis10901)
    Thanks,
    subbu.

    Hi sathish
    when we run that report sometimes it running successfully and sometime getting this error..
    why it happen cant understand..if i run 10 times 6 times it success and 4 times getting error like
    unexpected behaviour error.
    i have look into the functions all working fine..plz give me ur suggestions
    Thanks.

  • Test-OutlookConnectivity WARNING: An unexpected error has occurred and a Watson dump is being generated: Object reference not set to an instance of an object.

    Hi All,
    When we do a test-outlookconnectivity -protocol:http the result is a success but then we get the following:
    ClientAccessServer   ServiceEndpoint                               Scenario                           
    Result  Latency
    (MS)
    xxxxxxxxxxxx... xxxxxxxxxxxxxx                 Autodiscover: Web service request.  Success   46.80
    WARNING: An unexpected error has occurred and a Watson dump is being generated: Object reference not set to an instance
     of an object.
    Object reference not set to an instance of an object.
        + CategoryInfo          : NotSpecified: (:) [Test-OutlookConnectivity], NullReferenceException
        + FullyQualifiedErrorId : System.NullReferenceException,Microsoft.Exchange.Monitoring.TestOutlookConnectivityTask
    So it looks like it's not completing successfully.
    I can't find anything on this in particular, and don't really know how to go about solving it - We are fully up to date, Exchange 2010 Sp2 with Rollup 5-v2
    Any help appreciated!

    hi,
    I have the same issue also on Exchange 2010 SP2 RU5v2
    I ran your command and get the below
    [PS] C:\Installs\report\Activesync>Test-OutlookConnectivity -Protocol:http |FL
    RunspaceId                  : ebd2c626-1634-40ad-a17e-c9a713d1a62b
    ServiceEndpoint             : autodiscover.domain.com
    Id                          : Autodiscover
    ClientAccessServer          : CAS01.domain.com
    Scenario                    : Autodiscover: Web service request.
    ScenarioDescription         :
    PerformanceCounterName      :
    Result                      : Success
    Error                       :
    UserName                    : Gazpromuk.intra\extest_645e41faa55f4
    StartTime                   : 8/21/2013 4:08:50 PM
    Latency                     : 00:00:00.1250048
    EventType                   : Success
    LatencyInMillisecondsString : 125.00
    Identity                    :
    IsValid                     : True
    WARNING: An unexpected error has occurred and a Watson dump is being generated: Object reference not set to an instance of an object.
    Object reference not set to an instance of an object.
        + CategoryInfo          : NotSpecified: (:) [Test-OutlookConnectivity], NullReferenceException
        + FullyQualifiedErrorId : System.NullReferenceException,Microsoft.Exchange.Monitoring.TestOutlookConnectivityTask
     Any help would be greatly appreciated, I also get random failures of OWA, EAS and web services, very frustrating
    I have no errors in the app event log
    thanks
    Faisal Saleem Windows Systems Analyst 07595781867

  • Error message on restart: finder unexpectedly quit...and can do nothing! help please

    error message on restart: 'finder unexpectedly quit'...and then can do nothing! help please

    thank you hatter....repaired drive but problem persists....can you please explain what i am to do with the library or point me in the direction to read what to do?

  • My behavior is locked and I can't unlock.

    HELP!! I inherited this png. There is a Behavior Event:
    "onMouseover" Action "Set Text of Staus Bar" Info "Team" I wan't to
    delete this behavior but it has a lock on it and I can't seem to
    unlock it. Any ideas?

    What exactly do you mean? Can you give more details?
    alex
    Agnostichellboy wrote:
    > HELP!! My behavior is locked and I can't unlock it, I
    need to delete the behavior and can't.

  • Unexpected behavior of Foreach Loop in SSIS 2012

    I have come across the unexpected behavior of Foreach Loop in SSIS 2012. While testing package for invalid folder (path asdf:\Vishal_Work does not exists in this case) for source files. 
    I observed that the control does not enters into Foreach Loop, but also it does not fails the task. The task Foreach Loop runs successfully, though folder was invalid.
    The package did not throw any warning regarding invalid folder, but for the unmatched file pattern.
    My concern is ‘why Foreach Loop in SSIS did not failed even if folder was invalid or not exists?’

    The warning is "The For Each File enumerator is empty. The For Each File enumerator did not find any files that matched the file pattern, or the specified directory was empty."
    The warning message states the specified directory was empty, though it does not extists.
    We can handle this scenario through script task easily, but I really wonder why Foreach loop does not validate the folder. It is loophole in Foreach loop?
    I would not classify it as loophole. I actually agree with Russ, it was a design decision on the side of the development team.
    But you may freely file it as a bug or suggestion at MS Connect: https://connect.microsoft.com
    I would vote it up because I see how it can lead to undesired package behavior (logical flaw).
    Arthur My Blog

  • [svn:osmf:] 15769: Fix FM-505 - Document behavior of F4MElement ( and LoadFromDocumentElement) with regard to trait events.

    Revision: 15769
    Revision: 15769
    Author:   [email protected]
    Date:     2010-04-27 13:59:03 -0700 (Tue, 27 Apr 2010)
    Log Message:
    Fix FM-505 - Document behavior of F4MElement (and LoadFromDocumentElement) with regard to trait events.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-505
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/elements/F4MElement.as
        osmf/trunk/framework/OSMF/org/osmf/elements/LoadFromDocumentElement.as

  • Behavior of flowN and flow

    I need the maximum of informations you can give me about the behavior of flowN (and flow). How does it work? Is each flow instanciated in a thread or are all flows implemented in a "while" mechanism ?

    This is a good question. There are 2 modes.
    Mode #1 - ParallelSearch Demo
    When the partnerlinks that are invoked in each branch are marked as “<property name="nonBlockingInvoke">yes</property>” (see C:\orabpel\samples\demos\ParallelSearch\AggregatedCatalog for example), then multiple threads perform in parallel on one specific instance.
    Mode #2 - LoanDemo
    If the nonBlockingInvoke flag is not set, then the branches are performed overall in parallel but each activity will lock the instance while it is executing. This means that, in mode #2, if you have
    flow
    sequence 1
    invoke 1.1
    receive 1.2
    sequence 2
    invoke 2.1
    receive 2.2
    and each receive takes 10 minutes, the overall flow will take 10 minutes but that each receive will actually lock the instance while it is receiving the callback and updating the scope.
    I hope this helps.
    -Edwin

  • FAR and AWAY going into  bogie nights title - and speed

    I am making an intro to a video I am making for my wife's 40th birthday. In video I am starting with scrolling titles either far and away or the other one at scrolls.
    I want to have running copy on the screen that moves slow enough for people to read it then the last word will be. This is the story about....
    As soon as the ... is in the middle of the screen I want it to switch to the Boogie night title with my wife's name.
    What is happening is that the... fade off the screen and there is a big pause between the... and the boogie nights with my wife's name. How do I make this work smoothly and quick?

    The last item being this? ~> This is a story about.... (after the sroll title?)
    Without going into iMovie and trying to replicate your issue, what about just working w/ the Scroll Title ONLY in a project. Get it the way you want it. Export it. Re import it into new Project and then add the Boogie Night Title and trim it to your liking. Would that work? What do you mean by POP? Just a static title?

  • Unexpected Behaviors of Mouse Event in Look And Feel

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Test{
         public static void main(String[] args){
              try {
                  // Set System L&F
                 UIManager.setLookAndFeel(
                     UIManager.getSystemLookAndFeelClassName());
             catch (UnsupportedLookAndFeelException e) {
                // handle exception
             catch (ClassNotFoundException e) {
                // handle exception
             catch (InstantiationException e) {
                // handle exception
             catch (IllegalAccessException e) {
                // handle exception
              JFrame frame = new JFrame();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.setSize(400,400);
              final JPopupMenu popup = new JPopupMenu();
              popup.add(new JMenuItem("Test"));
              JPanel panel = new JPanel();
              panel.addMouseListener(new MouseAdapter(){
                   public void mousePressed(MouseEvent e){
                        System.out.println("Mouse Pressed!");
                        if(e.isPopupTrigger())
                             popup.show(e.getComponent(), e.getX(), e.getY());
                   public void mouseReleased(MouseEvent e){
                        System.out.println("Mouse Released!");
                        if(e.isPopupTrigger())
                             popup.show(e.getComponent(), e.getX(), e.getY());
              frame.add(panel);
              frame.setVisible(true);
    }When I right click, the popup menu shows up and prints:
    Mouse Pressed!
    Mouse Released!
    Then I click on another position, it will print:
    Mouse Pressed!
    Mouse Released!
    The problem is when I set the LookAndFeel to SystemLookAndFeel (which is Windows XP), it only prints:
    Mouse Released!
    after the pop up menu shows up.
    I wonder what happened to the Mouse Pressed Event?

    Late to the party, but I'd like to add that I came across this same problem when we recently upgraded from 1.6_02 to 1.6_11. I have a JTable where a right-click produces a JPopupMenu, but a double right-click is a shortcut to one of the popup menu functions. Popup shows up fine on the single-click in both, but the double-click function didn't work in the later version.
    As hinted in this thread, it happens when you are reacting to the mousePressed event and you've install the System L&F (at least on Windows XP). I printed out PopupMenu.consumeEventOnClose after setting the L&F, and it reported true. So all I did was override that property to false after setting the L&F, and everything was back to normal.
    Not sure why that changed between those two updates. There were bug fixes 6539458 in u4 and 6217905 in u10 that are both related to JPopupMenu, so maybe one of those accounts for the difference. Hopefully I'm not breaking something by overriding the property.

  • VPN -- different behavior between Mac and Windows XP clients.

    Hi,
    Background:
    I have a Mini server serving L2TP IPSEC vpn with both Mac and Windows (all XP, so far) clients.
    The mini sits behind a Netopia router/firewall/NAT box that port forwards L2TP traffic to the mini.
    The mini has a public but unrouted address (unrouted in the public Internet, that is.) The same Netopia serves as the router for outgoing public connections. DNS is served by other servers.
    The VPN clients are distributed addresses from the unrouted public address space.
    Client <-> NAT <-> Public Cloud <-> NAT <-> Private (with public addresses) <-> Mini (VPN)
    Mac clients work happily, accessing internal and external hosts.
    The XP clients have a registry value set to allow NAT traversal:
    under HKEYLOCALMACHINE\SYSTEM\CurrentControlSet\Services\IPSec, AssumeUDPEncapsulationContextOnSendRule is set to 2 to allow dual Nat traversal.
    The XP clients happily access internal hosts, but hang accessing some, but not all external hosts.
    For example, most Google services are quickly displayed, whereas www.comcast.net or www.llbean.net hang. It appears to be more frequent accessing third-party hosts while processing the initial page. Some Google web services, e.g. some Google Map plugins do eventually hang.
    An XP host internal to the network configured with the above registry key set to 0 (No NAT traversal)
    exhibits the same behavior when using a VPN connection
    Public Cloud <-> NAT <-> Private (with public addresses) <-> Mini (VPN) <-> Pvt. <-> Client
    Same host without VPN works fine.
    Clearing the XP checkbox that routes all traffic to the remote (VPN) router makes external hosts work
    as you would expect.
    So my questions are:
    a) What's XP doing?
    b) Can it be fixed? (besides routing public traffic away from the VPN.)
    Thanks Jonathan
    p.s. MrHoffman, I almost asked this in the HP Forum as well, till I noticed you were here. (Assuming you are Hoff.)

    Hi soccerdude21490-
    +Is this possible?+
    Theoretically yes. However, it would be up to the school to allow you access through their network.
    The first step would be to contact the school's IT department and ask them if they will allow such a connection, and if so, could they please provide you with the settings (ip address etc.).
    Luck-
    -DP

Maybe you are looking for