JSplitPane getting Divider Location after Move

How can I get the location of the divider after the user moves it. The code below is 1 move behind.
   final BasicSplitPaneUI paneUi = (BasicSplitPaneUI) questionsSplitPane.getUI();
    paneUi.getDivider().addMouseListener(new MouseAdapter()
      public void mouseReleased(MouseEvent e)
        questionsChartDividerLocation = paneUi.getDividerLocation(questionsSplitPane);
    });Use Case:
Starting location = 60;
User Moves to 90;
questionsChartDividerLocation = 60;
User Moves to 70;
questionsChartDividerLocation = 90;

How can I get the location of the divider after the user moves it.The divider location can also move when the user resizes the frame. If the size of the split pane is changed the the size of each component added to the split pane may change depending on how the "resize weight" property of the split pane is set, which in turn will cause the divider to change location.
So if you want to know about any change in location of the divider then you should probably be using a PropertyChangeListener (not a MouseListener) and handle the "dividerLocation" property change event. Using this approach you won't need to worry about using the invokeLater() method.
Also, why do you you use the UI to get the divider locaton? The split pane has a method for this.

Similar Messages

  • Material location after movement 303

    Hi everyone,
    I executed the movement 303, the material got out from the origin center and didn't get into the destiny center. However, I can't find it anywhere. It does not appear in transit trough MB5T, nor in the detail of the register in MMBE. Is there anywhere else I can look for it?
    I appreciate any help.
    Regards.
    Marcelo Buosi

    Hi,
    You can look into the transaction MB52.
    After the 303 movement, the material will be seen at plant level (receiving) in "Transit/Transf" column in MB52.
    Thanks & Best Regards,
    Devendra Gaware
    PS - Reward if useful

  • Non storaged material in Storage Location after mov 653

    I have a non storage material.
    when the return delivery picking was done SAP let to put a storage location. for this Delivery item category wit has not flagged "Do Not Check Storage Location". So it has to be checked. Its also true that we have Storage location is absolutely necessary, so without storage locatin we cant deliver, but we should have an error message and not let us deliver using a storage location when its a not storaged material.
    And the problem is that when you have the material in the storage location you cant do nothing because the material has no storage data.

    Hi
    For the Return delivery , delivery item category is not flagged with the feild "Do Not Check Storage Location " . It is not checked because a Returns order are mostly created wrf to sales order / billing document/delivery document. So once you copy the data to the returns order and when you do Post Goods Receipt then at that time there is no need to copy the sloc.
    But ,if the material doesn't have storage data then we cant retrieve how much stock is available in storage locations. So we have to run the report to know how much stock is available in the storage location
    Regards
    Srinath

  • How do I get the playhead to move to the beginning of the cycle area when selected instead of bar 1 after hitting enter?

    How do I get the playhead to move to the beginning of the cycle area when selected instead of bar 1 after hitting enter?

    Grateful pirate wrote:
    Thanks but I think it's more of a setting thing.
    Worked for years in 9 and know my the key commands. Just takes up  lot of extra time. I know there must be a solution just can't find it myself.
    Thanks again.
    Oh, I see…….when I want something like this to happen I would just engage the >Go To Start<  command (0 on the numeric keyboard in my case) and the play head will position at the beginning of a cycle area (if one is active of course)!
    Hope this helps a bit……..

  • Reason that people get logged off in one location after 5 minutes

    Hello
    I wander what could be the reason that people get logged off in one location after 5 minutes regardless having parameter "rdisp/gui_auto_logout"  set to "14400".
    Could this be something in SAP?

    Hi,
    I faced a problem like this in a client and the problem was at the firewall, probably is not the same in your situation but does not looks like an auto logout from SAP system. What kind of connection do you have with that location? is the same in all others? is the same connection hardware used? GUI version are the same?
    Have you tried using niping program?
    Good luck,

  • JSplitPane divider location

    When I change the bottom component (using setRightComponent() method) in the split pane, divider location moves up and the top component hides. How can I fix the divider location taking into account a size of the top panel?
    Thanks in advance.

    I did this and it seems to work. Keeps the panes percentages in tact within a few percentage points. And I believe I could tweak the following. I add a listener to the divider bar and upon a resize, I reset the resize weight:
    BasicSplitPaneDivider divider = ((BasicSplitPaneUI)splitPane.getUI()).getDivider();
    divider.addMouseListener(new MouseListener(){
         public void mouseClicked(MouseEvent e) {}
         public void mousePressed(MouseEvent e) {}
         public void mouseReleased(MouseEvent e) {
              double location = ((double)splitPane.getDividerLocation() / (double)splitPane.getWidth());
              splitPane.setResizeWeight(location);
         public void mouseEntered(MouseEvent e) {}
         public void mouseExited(MouseEvent e) {}
         });

  • When I try using Airplay to stream from Amazon Prime it tries to use Apple TV music.  How can I get it it stream movies from Amazon Prime?

    When I try using Airplay to stream from Amazon Prime it tries to use Apple TV music.  How can I get it it stream movies from Amazon Prime?

    Welcome to the Apple Community.
    Try the following steps, check whether things are working after each step where appropriate, before trying the next.
    Restart the Apple TV (Settings > General > Restart).
    Restart the Apple TV by removing ALL the cables for 30 seconds.
    Restart your router.
    Reset the Apple TV (Settings > General > Reset > Reset all settings)
    Restore the Apple TV (Settings > General > Reset > Restore)

  • HT1668 I get the "Unable to Move Message. The message could not be moved to the mailbox Trash". whenever i try deleting from my ipad 2. I am unable to delete from Trash...HELP

    I get the "Unable to Move Message. The message could not be moved to the mailbox Trash". whenever i try deleting from my ipad 2. I am unable to delete from Trash...HELP!
    Additional info...I am trying to delete these emails from a Webmail address. the Trash currently has 11 messages and they arent being deleted.

    Try turning the account off and on : Settings > Mail, Contacts, Calendars , then tap the account on the right, slide Mail to 'off', exit settings and go back into the Mail app, and then go back to Settings and slide Mail back to 'on'
    If that doesn't work then try closing the Mail app via the taskbar : from the home screen (i.e. not with the Mail app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    Another option is a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
    If you still can't delete them then go into Settings > Mail, Contacts, Calendars,  select the account on the right-hand side of that screen, select Account, then Advanced, Deleted Mailbox, and under On The Server tap the 'Trash' folder so that it gets a tick against it - then come out of that series of popups by tapping on the relevant buttons at the top of them and then see if you can delete emails.

  • I've lost my iPhone 4... How can I find it when the device is offline when using "find my iPhone app"????? Any way of getting a location from it????

    I've lost my iPhone 4... How can I find it when the device is off linesmen using "find my iPhone app"????? Any way of getting a location from it?????

    No. It must be online in order to locate it.
    What To Do If Your iDevice Is Lost Or Stolen
    iPhone, iPod Touch, and iPad
    If you activated Find My Phone before it was lost or stolen, you can track it only if it is connected to the Internet by Wi-Fi or cellular. What you cannot do is track your device using a serial number or other identifying number. You cannot expect Apple or anyone else to find your device for you. You cannot recover your loss unless you insure your device for such loss. It is not covered by your warranty.
    If your iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should have done in advance - before you lost it or it was stolen - and some things to do after the fact. Here are some suggestions:
    This link, Re: Help! I misplaced / lost my iPhone 5 today morning in delta Chelsea hotel downtown an I am not able to track it. Please help!, has some good advice regarding your options when your iDevice is lost or stolen.
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T. Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. iCloud- Use Lost Mode
      6. What to do if your iOS device is lost or stolen
      7. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      8. Find My iPhone
      9. Report Stolen iPad | Stolen Lost Found Online
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on iCloud
      3. OS X Lion/Mountain Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)

  • Stock is not showing in storage location after MIGo

    I am not able to see the stock in storage location after MIGO. Please help me where Iam wrong.

    Hi Deepak,
    while GR , which movement type it should ?
    check  document for that GR , is it created?
    check your stock may be at inspection storage location
    Thanks
    Bala

  • I'm getting this error after I edit photos 'nothing was imported. What is causing this?

    I'm getting this error after I edit photos 'nothing was imported. the files or folder selected to import did not contain any supported file types, or files are already in this catalog.I have elements 13 using hp windows 8 laptop and never had this happen before.

    Hello staceonbass,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Check for .dll files
    Go to C:\Program Files (x86)\iTunes and C:\Program Files\iTunes and look for .dll files.
    If you find QTMovie.DLL, or any other .dll files, move them to the desktop.
    Reboot your computer.
    Note: Depending on your operating system, you may only have one of the listed paths.
    Uninstall and reinstall iTunes
    Uninstall iTunes and all of its related components.
    Reboot your computer. If you can't uninstall a piece of Apple software, try using the Microsoft Program Install and Uninstall Utility.
    Re-download and reinstall iTunes 11.1.4.
    Best of luck,
    Mario

  • 60 Second Delays in Client Getting Entity Bean (after finder method)

    I am running WLS5.1 with SP10. I have a stateless EJB that gets a
    read-write BMP entity EJB. My test client that executes the stateless
    session bean periodically encounters long delays (60 seconds or more)
    when acquiring the entity bean using its finder method. Logging shows
    the finder method is executing properly, and typically takes 180 ms to
    locate the entity bean; however, from the stateless session beans side,
    it appears to take 60 seconds. The test client is only a single thread,
    so I know the pool is not depleted, or anything like that. Something
    appears to be going haywire with the container.
    Does anybody have an idea what might be going on?
    Thanks.
    Greg

    Hi Greg,
    On a whim, I tried the same test with the thin driver, and the same
    delay occurred. This time, instead of a rollback being at the top ofthe
    thread dump stack trace, it was in some other Oracle call, with the
    top of the stack trace being a socketreader.are you using MTS? Is the db-server a SMP-box? Which exact patch level
    does your Oracle instance have? If yes, can you try to force a dedicated
    server connection and see if the problem disappears? I guess for an OCI
    connection you will have to edit tnsnames.ora, for a
    thin-driver-connection you would have to modify the connect string to
    something like this:
    jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOS
    T=<dnsname>)(PORT=1521)))(CONNECT_DATA=(SID=<your
    sid>)(SERVER=DEDICATED))))
    There is a bug in 8.1.6.0 which is supposed to be fixed in 8.1.6.3, but
    I can still reproduce it in 9i :-(. It makes the MTS-dispatcher hang for
    60 seconds if you have an SMP box with low load, so maybe this could be
    your problem.
    Daniel
    -----Original Message-----
    From: Greg Crider [mailto:[email protected]]
    Posted At: Wednesday, November 28, 2001 8:17 AM
    Posted To: ejb
    Conversation: 60 Second Delays in Client Getting Entity Bean (after
    finder method)
    Subject: Re: 60 Second Delays in Client Getting Entity Bean (after
    finder method)
    My client has been using OCI in production and development
    with JTS for
    over a year now without a problem. We went to OCI because
    there was some
    other problem with the thin driver. I'm not sure what the
    problem was,
    but Oracle acknowledged it, but said it wouldn't be corrected until
    Oracle 9i came out. We're still using 8.1.6, so from what I'm
    told, we
    don't use the thin driver.
    On a whim, I tried the same test with the thin driver, and the same
    delay occurred. This time, instead of a rollback being at the
    top of the
    thread dump stack trace, it was in some other Oracle call, with the
    top of the stack trace being a socketreader.
    Somebody else suggested that there may be a problem with
    transactions.
    Does this ring a bell? Again, I have a stateless session bean
    invoking a
    read-write entity bean, invoking a read-only entity bean. From
    everything I read, including weblogic docs, I should just rely on my
    deployment descriptor to control transactions and stay away from JTA.
    Hi Greg,
    I remeber long ago there were an issue with jts/oci driver combination
    when the connections were opened but never used...
    Buy the way, are there any specific reasons to use OCI instead of
    thin driver?
    "Greg Crider" <[email protected]> wrote in message
    news:[email protected]...
    I know. That's what I don't get. BTW Slava, I am using the
    latest OCI
    driver; thanks for the suggestion. I tried tweaking some of the Solaris
    kernel settings as relates to TCP, but that didn't clear up the problem
    either; however, it did change the frequency. Modifying the retransmit
    settings (very small values, sub 1.5 seconds) seemed to make it occur
    less frequently.
    It seems like its time for me to contact BEA Support and see what they
    can turn up. Thanks for the suggestions. If anybody else has an idea,
    let me know. I'm betting this is a simple, stupid config problem. I'll
    post back here when I find out what's up.
    But for some reason WebLogic code called the rollback:
    ... rollback
    at
    weblogic.jdbc.common.internal.ConnectionEnv.cleanup(Connection
    Env.java:499)
    at
    weblogic.jdbc.common.internal.ConnectionEnv.destroy(Connection
    Env.java:417)
    at
    weblogic.jdbc.common.internal.ConnectionEnv.destroy(Connection
    Env.java:393)
    at weblogic.jdbcbase.jts.Connection.close(Connection.java:274)
    at weblogic.jdbcbase.jts.Connection.commit(Connection.java:530)
    at
    weblogic.jdbcbase.jts.TxConnection.commitOnePhase(TxConnection
    .java:55)
    at
    weblogic.jts.internal.CoordinatorImpl.commitSecondPhase(Coordi
    natorImpl.java
    :484)
    at
    weblogic.jts.internal.CoordinatorImpl.commit(CoordinatorImpl.java:383)
    at weblogic.jts.internal.TxContext.commit(TxContext.java:255)
    Slava Imeshev <[email protected]> wrote:
    Hi Greg,
    Which version of OCI driver do you use? OCI driver proved to be
    not that stable as the thin driver. Could you try to download
    and to install the latest version of the OCI driver and
    let us know
    if it helps?
    Regards,
    Slava Imeshev
    [email protected]
    "Greg Crider" <[email protected]> wrote in message
    news:[email protected]...
    Yup, get fresh connection from the db connection pool,
    and close it
    >when
    I'm done. The logs don't indicate that I've ever exhausted the
    connection pool.
    It's interesting to note these problems are occurring on
    Solaris with
    Oracle OCI connections. Running the same code under Linux with thin
    driver connections works just fine.
    Weird. Do you obtain database connection from a
    datasource and close
    >it
    every time
    you use it?
    Greg Crider <[email protected]> wrote:
    Okay, this appears to be the offending thread. As it
    turns out, the
    >same
    behavior as first described in my initial post, is
    occurring this
    >time
    in the
    business method of the entity bean, as opposed to the
    finder. The
    getNextURL() is the business method in this case. I am using BMP, and
    the
    ejbLoad() and ejbStore() methods are not throwing any
    SQLExceptions.
    Also, I
    don't see anything in the error logs that indicate a
    EJB transaction
    failure.
    This being the case, why would an Oracle rollback be
    attempted? Am I
    misinterpretting this stack trace?
    "ExecuteThread-67" daemon prio=5 tid=0x14e300 nid=0x51 runnable
    [0xe7880000..0xe7881a30]
    at oracle.jdbc.oci8.OCIDBAccess.do_rollback(Native Method)
    at oracle.jdbc.oci8.OCIDBAccess.rollback(OCIDBAccess.java:417)
    at
    oracle.jdbc.driver.OracleConnection.rollback(OracleConnection.java:510)
    at
    weblogic.jdbc.common.internal.ConnectionEnv.cleanup(ConnectionEnv.java:4
    >99
    at
    weblogic.jdbc.common.internal.ConnectionEnv.destroy(Conne
    ctionEnv.java:4
    >17
    at
    weblogic.jdbc.common.internal.ConnectionEnv.destroy(Conne
    ctionEnv.java:3
    >93
    at weblogic.jdbcbase.jts.Connection.close(Connection.java:274)
    at weblogic.jdbcbase.jts.Connection.commit(Connection.java:530)
    at
    weblogic.jdbcbase.jts.TxConnection.commitOnePhase(TxConnec
    tion.java:55)
    at
    weblogic.jts.internal.CoordinatorImpl.commitSecondPhase(CoordinatorImpl.
    >ja
    va:484)
    at
    weblogic.jts.internal.CoordinatorImpl.commit(CoordinatorIm
    pl.java:383)
    at weblogic.jts.internal.TxContext.commit(TxContext.java:255)
    at
    weblogic.ejb.internal.StatefulEJBObject.postInvokeOurTx(StatefulEJBObjec
    >t.
    java:320)
    at
    weblogic.ejb.internal.BaseEJBObject.postInvoke(BaseEJBObje
    ct.java:845)
    at
    com.pi.speechport.ETO.LoadShare.ETOLoadShareEJBEOImpl.getNextURL(ETOLoad
    >Sh
    areEJBEOImpl.java:114)
    at
    com.pi.speechport.ETO.Transcription.ETOTranscriptionBusin
    ess.getVendorUR
    >L(
    ETOTranscriptionBusiness.java:146)
    at
    com.pi.speechport.ETO.Transcription.ETOTranscriptionBusin
    ess.transcribe(
    >ET
    OTranscriptionBusiness.java:193)
    at
    com.pi.speechport.ETO.Transcription.ETOTranscriptionEJBEO
    Impl.transcribe
    >(E
    TOTranscriptionEJBEOImpl.java:188)
    at
    com.pi.speechport.ETO.Transcription.ETOTranscriptionEJBEO
    Impl_WLSkel.inv
    >ok
    e(ETOTranscriptionEJBEOImpl_WLSkel.java:223)
    at
    weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(B
    asicServerObjec
    >tA
    dapter.java:347)
    at
    weblogic.rmi.extensions.BasicRequestHandler.handleRequest
    (BasicRequestHa
    >nd
    ler.java:86)
    at
    weblogic.rmi.internal.BasicExecuteRequest.execute(BasicEx
    ecuteRequest.ja
    >va
    :15)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
    Dimitri Rakitine wrote:
    Make a thread dump during these 60 seconds to see
    what server is
    >doing.
    Greg Crider <[email protected]> wrote:
    I am running WLS5.1 with SP10. I have a stateless
    EJB that gets a
    read-write BMP entity EJB. My test client that executes the
    stateless
    session bean periodically encounters long delays (60
    seconds or
    >more)
    when acquiring the entity bean using its finder
    method. Logging
    >shows
    the finder method is executing properly, and
    typically takes 180 ms
    >to
    locate the entity bean; however, from the stateless
    session beans
    side,
    it appears to take 60 seconds. The test client is
    only a single
    thread,
    so I know the pool is not depleted, or anything like that.
    Something
    appears to be going haywire with the container.
    Does anybody have an idea what might be going on?
    Thanks.
    Greg
    Dimitri
    Greg
    >__
    GREGORY K. CRIDER, Emerging Digital Concepts
    Systems Integration/Enterprise Solutions/Web &
    Telephony Integration
    (e-mail) [email protected]
    (web) http://www.EmergingDigital.com
    (voicemail) 866-474-4147
    (phone) 703-335-0974
    (cell) 703-851-5073
    (fax) 703-365-0223

  • Automated Locate and Move .JPG Files HELP!

    I am trying to locate and move all .JPG files on my MacBook running OS X 10.6. I need a Script that will locate all .JPG files no matter where they are on the hard drive and move them [not copy] to a specified folder titled "JPG PHOTOS" that is on my desktop. I am then going to move that folder with all of the images to an external hard drive.
    I am very new to scripting.

    You do not say how many files or duplicates are involved but here is a simple bash script which you can paste into Terminal and then hit return.
    find "/Users/neville" -name "*.JPG" -exec mv -n {} "/Users/neville/All JPG Photos" \;
    Notes:
    Make a full backup before you do this - mv can be dangerous
    A simple mistake - such as not creating the destination folder can destroy files
    This is not a copy script it moves files - so original path information will be lost
    Change source and destination as required
    May have to do it again for jpg
    The -n  ensures nothing is overwritten
    Do it repeatedly with slightly different destinations to get duplicates
    The script could be modified to auto-renumber duplicates - GNU bash has a 'backup' option for this
    If there are a large number of JPG files a batch modification may be required

  • Anyone know how to get subtitles into Quicktime movies?

    With Quicktime now supporting subtitles. Does anyone know how import subtitles into Quicktime movies?
    After following the instructions from Apple's support pages for timed text, I tried pasting in timed text. This displays text below the video in an ugly black bar, but isn't recognised as subtitles by Quicktime. Ideally, I'd like to convert srt files into a compliant format, but without knowing the correct format, it's a little difficult.

    There haven't been any really clear instructions on how to get subtitles into QuickTime movies yet. Apple has posted a QuickTime component that will convert an SCC file into QuickTime and you'll find that here.
    http://developer.apple.com/samplecode/ClosedCaptionImporter/index.html
    Also, a discussions user has posted instructions on how to CC a QuickTime movie in this thread.
    http://discussions.apple.com/thread.jspa?messageID=5756610&#5756610
    And here's another thread you may find helpful links in.
    http://discussions.apple.com/thread.jspa?messageID=5720947&#5720947

  • Unable to delete the iPhone4 old backup data after move to iPhone5 ToT HELP!!

    Unable to delate the iPhone4 old backup data after move to iPhone5 ToT
    How can I delete the old phone backup file to release iCloud space?

    I have done some digging, but no dice. It seems to be a known bug in the system. Some suggested going to an Apple Retail Store about the problem, but no solutions as of yet. Sorry I couldn't be more help.
    One board post I saw said taking it to the retail store did get it fixed for him. Maybe you will have the same luck?

Maybe you are looking for