How to bind scroll positions

Hi all.
Do you know how to synchronize scrolling between to JScrollPane containers (for example, in a JSplitPane) using beans binding (in a NetBeans IDE)?
Thank you in advance.

Thank you very much, that code works just fine:
BoundedRangeModel brmMaster = topScrollPane.getHorizontalScrollBar.getModel();
bottomScrollRange.getHorizontalScrollBar.setModel(brmMaster);Thank you!

Similar Messages

  • How to react to scroll position on TableView

    Hello:
    I'd like to know if it's possible to bind the scroll position on a TableView to the scroll position in other TableView, so both component scroll at the same time. There isn't a scrollProperty in TableView and the onScroll event doesn't seem to work.
    Any idea on how to handle this? Any alternative point of view?
    Thanks in advance.

    I'm not sure there's a way to do what you want, but if you select command click on a link "open in new window" in Camino prefs, you should have the original window and scroll position in place behind the new window.
    Hope this helps,
    Miriam

  • How to play a symbol ONCE at a specific scroll position?

    Hello there,
    I was wondering if it's possible to trigger a symbol to play when a user scrolls past a specific scroll point just once?
    I've managed to create a trigger for a symbol which will fire at a specific scroll position but it fires multiple times (when the user continues to scroll)
    I tried using:
    '==' eqivalent to, so that it would only trigger at a certain scroll point, but this only triggers the symbol to play if the user uses their mouse scroll wheel and doesn't play if the user uses the window scrollbar.
    Here's my code (apologies if it's messy I only started learning JQuery a week ago):
    $(window).scroll(function() {
         var mySymbolObject = sym.getSymbol("rollHead");
          var y_scroll_pos = window.pageYOffset;
         var scroll_pos_test = 500;           
        if(y_scroll_pos > scroll_pos_test) {
              sym.$("rollHead").show();
              mySymbolObject.play(1000);
          if(y_scroll_pos < scroll_pos_test) {
       sym.$("rollHead").hide();
              mySymbolObject.stop();
    I know that the '.one' handler (if that's the correct term) can cause an event to trigger just once, but I can't seem to get it to work.
    Any help or advice would be much appreciated.
    Thank you very much.
    Jon
    P.S. I just want to say a MASSIVE thank you to Adobe for making Edge. It is an incredible tool and the fact that it is free makes it a million times better.

    Hello Mr Blix,
    I pretty much just copied and pasted what Elaine wrote.
    So, I went to my stage actions - clicked 'composition ready'
    And put in this:
    sym.setVariable("symbolPlayed", false);
    var mySymbolObject = sym.getSymbol("rollHead");
    $(window).scroll(function() {
        var y_scroll_pos = window.pageYOffset;
        var scroll_pos_test = 500;           
           if(y_scroll_pos > scroll_pos_test) {
    var symbolPlayed = sym.getVariable("symbolPlayed");
    if (!symbolPlayed) {
        sym.$("rollHead").show();
        mySymbolObject.play(1000);
        sym.setVariable("symbolPlayed", true);
    All you'd need to change for you own composition (if that's the right word) is to replace:
    var mySymbolObject = sym.getSymbol("rollHead"); - with your own symbol name.
    var scroll_pos_test = 500;  - with the position you want the event to trigger.
    sym.$("rollHead").show(); - with your own symbol name again.
    mySymbolObject.play(1000) - with the time on your symbol's timeline that you want it to play.
    I'm still learning JQuery and don't really understand how the 'SymbolPlayed' works, but I assure you it does.
    Here's a screengrab of my 'stage actions' code.
    Hope that helps!
    Jon

  • How to get/set scrolling position in Frame?

    Hello!
    Help me please!
    I need to remember scrolling position of frame before it's reloading. And restore this position after reloading. How can I do it?
    I Use JDk 1.4.1
    Thanks beforehand!
    Denis.

    Have you tried the following:
    yourScrollPane.getVerticalScrollBar().getValue()
    yourScrollPane.getVerticalScrollBar().setValue(int)Sai Pullabhotla

  • How can I prevent scroll position changes

    I have a master detail page.
    during insert data in detail form user must scroll down.
    after opening an lov page scroll will change automatically(go to top of the page) and user have to scroll down again for fill next fileds in form.
    how can i lock automatically scroll ? or how can i prevent these scroll position changes.
    tnx
    Edited by: user12052968 on Oct 18, 2009 12:36 AM
    Edited by: user12052968 on Oct 18, 2009 12:41 AM

    Hi,
    Do you have anything in KEY-LISTVAL trigger? If not, create a KEY-LISTVAL trigger (for the item), and do something like this.
    declare
    cur_rec number;
    begin
    cur_rec := TO_NUMBER(:SYSTEM.CURSOR_RECORD);
    SHOW_LOV('<YOUR_LOV>');
    go_record(cur_rec);
    end;The idea is, preserve the current record position before showing the lov and then go to that position after showing the lov.
    -Arun

  • How to avoid blinking / moving of rows in a data grid when you restore the scroll positions

    By Default when an update is made on a data grid, it scrolls to top row. To avoid this when we save the vertical and horizontal scroll
    positions and restore the scroll positions after the update, it causes a blink in the grid (or moving / jumping) of rows. Is there a way to
    avoid this jumping of rows?
    In JavaScript this can be achieved by overriding the scrollToTop / OnLoad methods of datagrid to directly scroll to current scroll
    positions instead of top row. Is there a way to achieve similar feature in flex / actionscript?

    I am calling validateNow().. Also, using verticalScrollPosition to restore the scroller as in the link that you posted.. Reposition is working fine, But the bug filed is regarding BLINKING / JUMPING when this happens (i.e. this blinking is caused because after datagrid edit, during reload the scroller tries to move to  the top by default, then it repositions itself to current edited row as the verticalScrollPosition property is overridden ).. I have to get rid of this blinking.
    In Javascript it is dealt by overriding OnLoad method of datagrid to directly scroll to current scroll position instead of top row during reload so that there is no blinking.
    http://www.sencha.com/forum/showthread.php?13898-Is-there-any-way-to-keep-scroll-position- of-Grid-on-load
    Is there a way to achieve similar feature in flex?
    I am not sure what flex datagrid method to override.. Theres no method like load? What is the datagrid method that is called by default during reload (after datagrid edit) that causes the scroller to go to top?

  • Camino : How to remember last scroll position on previous viewed page?

    I am switching from Safari to Camino. Sa far it was a good experience except one issue:
    When i scroll to half way of a page and click a link, i will be directed to the link within the same tab. After finished viewing the new link, i press the DELETE button to return to the previous page. Camino returns to previous page but not remembering the location, in this case which is the half way of the page. It just loads back the previous page and scrolls to the top again
    Is there any way to configure Camino to remember the last scroll location of the previous page?

    I'm not sure there's a way to do what you want, but if you select command click on a link "open in new window" in Camino prefs, you should have the original window and scroll position in place behind the new window.
    Hope this helps,
    Miriam

  • How to make bookmark sidebar restore its scrolling position on Firefox start?

    Why does Firefox not restore the bookmark sidebar scrolling position and open bookmark folders to the exact state it had when I closed the browser?
    I admit to having way too many bookmarks, but especially then restoring the scrolling position and open bookmark folders is essential to me.
    Is there any "about:config" setting to adjust this?

    Hello,
    Firefox automatically creates backups of your bookmarks, which can be helpful if your bookmarks are lost or missing. To recover them, follow the instructions below.
    #Use <u>one</u> of these methods to open the Bookmarks Library window:
    #*Click the ''[[Display the Firefox button menu instead of the menu toolbar|Firefox button]]'' to open the menu and click on ''Bookmarks''.
    #*Click the ''Bookmarks'' menu and click on ''Show All Bookmarks''.
    # At the top of the Library window, click the "Import and Backup" menu and select Restore.
    # Click the date of the bookmark backup you want to recover.
    # In the new window that appears, click OK.
    # Your bookmarks from the selected date should now be restored.
    For more information, see the [[Restore bookmarks from backup or move them to another computer]] article. For other solutions, see the [[Recover lost or missing Bookmarks]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • How to save your position in a JSP page on submit

    I am building a web application based on JSP pages and servlets. One of the JSP pages is larger than the screen, so i have to scroll down. On the lower part of the page, i have a control that submits a form to a servlet that performs some logic and then returns to the same JSP page. When the JSP page is redisplayed, it is positioned at its top position again. I would like to save my positioning on the page and return to the exact same scroll position. How is this easiest done?

    Just use an onclick or onsubmit event to get the current scroll position using JS and send it along the request to the server side and let it set the value in an onload event of the page which comes with the response.
    I am not going to give you JS+DOM codes here. Just learn it and if necessary ask help at the appropriate forum. There are JS and DOM tutorials at w3schools.com and there are clientside development forums at webdeveloper.com and dynamicdrive.com.

  • Bind by position? I got totally confused

    is it default that the parameters in the .net codes are binded to that in the pl/sql codes by position? i get totally confused.
    very simple codes in the pl/sql are like this:
    ===========================
    FUNCTION create_saint(saint_name IN VARCHAR2,saint_ct IN VARCHAR2)
    RETURN VARCHAR2
    ===========================
    and "oracom" is a OracleCommand calling the function, when i add the parameters like this:
    ===================================
    oracom.Parameters.Add("saint_name",OracleDbType.Varchar2,"aaa");
    oracom.Parameters.Add("saint_ct",OracleDbType.Varchar2,"bbb");
    ===================================
    i woule like the parameter "saint_name" is "aaa" and "saint_ct" is "bbb" if they are binded by position. but error occurs and when i traced the execution of the pl/sql code, i found that the parameter "saint_name" was "bbb" and "saint_ct" was null.
    shouldn't they be binded by position? and when i used the
    "oracom.BindByName = true;"
    the two parameters were just binded correctly.
    so i just wonder when and how the parameters are binded by position.

    Hello,
    Yes, parameters are bound by position by default when using ODP.NET - this is controlled by the BindByName property which defaults to false. If you want to use bind by name, just set this property to true as you've shown.
    Since you are using a FUNCTION I would guess that you did not bind the function return value first, which is required. ODP.NET will generate code similar to this:
    begin
      :1 := function_name(:2, :3, :4);
    end;Hope that helps,
    Mark

  • ADF Treetable scrolling position resets to top on refresh

    I have a master details page with the following components.
    TreeTable with a Check Box on LHS  and TabbedPannel on RHS.
    So, users can select any row on the LHS and the corresponding details will be displayed on RHS in a new Tab. When user closes the Tab it will clear the Check Box on TreeTable.
    Issue is, when user is at last row of TreeTable when there are more rows (Scroll bar will be at last), and user closes the Tab on RHS side, I will be clearing the checkbox binding and refresh the treetable using PPR to reflect the same.
    This is causing the treetable  scroll bar to be reset to the top. And User lost the old position on needs to scroll down again.
    Can we control the Scroll bar position after PPR refresh (or)
    Can we just clear off the CheckBox selection (only one row) with out refeshing the whole treetable
    Environment:
    JDev Version : 11.1.1.6.2
    Component : ADF TreeTable with TreeModel binding (Not using BC)

    In my case, I am fine with disclosureState items. They do not collapse even after I remove the checkbox selection and refreshing the TreeTable component.
    Only issue is scrollbar is resetting to top.
    I can't use the disclosure event as they can do expandAll , select first compoenent scroll down and close the selection on RHS tab.
    Which will reset the LHS scrolling position to top.

  • Getting scroll position

    I can read and write the zoom level of a document (doc.zoom).  I can scroll to a specific point in the document (doc.scroll).  Bu I can't read the current scroll position.  Is there a way around this.
    The scenario:
         I have 24 pdf documents each with a single page containing a picture.
         Each picture was taken with a fixed camera - one picture for each hour of the day.  So the pictures are of the same thing - just separated taken at different times.
         On the 1:00 am picture I see something I want to examine more closely so I zoom and scroll to a particular portion of the picture.
         Now I want to see the same area on the 2:00 am picture.  I can read open the 2:00 am picture and zoom to the same zoom level (by reading the zoom property of the 1:00 am document).
         But how do I get the the 2:00 am document to scroll to the same position as the 1:00 am document if I can't read the scroll position of the 1:00 am document?
    My actual issue is more complex than this scenario but this illustrates the question.

    In any case viewState only works with embedded PDF - which is not the scenario I have.
    In some respects I want something like synchronized scroll but I am dealing with multiple documents.  I open one document and zoom/pan to a particular spot.  Then I want to open another document with the same zoom and pan.  I will select the other document from a list which could have many dozens of documents.  It is impractical to open all the documents at the same time.
    One possibility I have not considered yet would be use Bookmarks.  Bookmarks store the zoom level but I don't know if they store the pan.
    What I want is something like the center point of the current view.  This value could be passed to doc.scroll.  Is there a parameter that gives the coordinates of the document view (not the screen coordinates - but the document coordinates?  I could calculate the point necessary for doc.scroll from thse coordinates.

  • Table Scroll Position

    Hi.
    How can I get and set the scroll position of an table?
    VG

    Hi Marcus,
    Can you please provide some more details with the proper code if posiible.
    Thanks & Regards,
    Seema Chand.

  • WebView scroll position

    How can I get and set the vertical scroll position for a WebView?

    You mean something like:
    webView.getEngine().executeScript("window.scrollTo(100,100);")That didn't have any effect as far as I could tell.
    Any good reason why there isn't a Java API?

  • Scroll position does not reset on datasets

    Forgive me if this is somewhere else, but I cannot find it.  In using spry datasets in CS4, when the data in a container is long enough to need a scroll bar, the scroll position does not reset to the top when you chose the next item in the dataset.  By example, if I choose Grapefruit, and the description container has several paragraphs that i have scrolled down to read, then I choose Pear, and the description content displays in the same scroll-down position (perhaps in the middle or the end) instead of resetting at the beginning of the paragraph.  Is this a bug or is there something I am doing wrong?
    Thanks!!!

    Argh!  I have this exact same problem when working with Master/Detail.
    When I scroll down to the bottom of a detail area, and then click another item in the master column, it displays the bottom of the new detail area.  This is not what I want.  Whenever I click on a new item in the master column, I need to be positioned at the top of the new detail area.  How can I make that happen?
    Please help!  Thanks!
    SC

Maybe you are looking for

  • Possible solution for white C2D iMacs with screen artifacts or lines

    I have a white 20" Core 2 Duo iMac with the famous screen artifacts issues. Screen tearing, horizontal lines, goofy pixels, you name it. From my research it seems there are countless others with these problems. I tried running the SMC fan control app

  • Statistical Internal Orders - How can i charge to multiple cost centers

    In the master data for the statistical internal orders, I am only able to enter one cost center in the 'Actual Posted Cctr' field.  Is there a way to have multiple cost centers and the allocation % for each cost center (similar to the settlement rule

  • JSF webapp works with Java 1.4, but not Java EE 5

    Hello I am having a really weird problem with internationalizing my JavaServer Faces web application. I am using Netbeans 6.0, Tomcat 6.0.10, JSF 1.2, and JTSL 1.1.... If I use Java 1.4 to run the webapp, everything works fine! If I use Java EE 5 the

  • Desktop Manager Problem

    Hello everyone, im using a JDesktopPane to manage around 18 InternalFrames. Because of that amount i need a way to acces everyone of them in a click. I created a menu to acces everyone of them. I started everyone as iconified. BUT When i restore with

  • Javascript function is not working for jsp:include.. form elements

    HI, I have two jsp's and i will include one jsp in the another jsp, when i do this i am not able to access child form elements value using javascript. the javascript function is defined in the main jsp. but i could able to get the main form elements