Scroll Bar Position

I have an applet which will display 25 columns and n Number of rows. How can I change the cursor postion to a particular row while applet reloads?
setRowSelectionInterval(int, int) may move the cursor to the particular row. But The scrollbar is still in initial position. I need to change the scroll position.

Use getCellRect(...) to get the rectangles of any cells you want to display, then create a Rectangle which circumscribes all of these, then use scrollRectToVisible(...) to adjust the view.

Similar Messages

  • When and How to get the Text.ScrollPos value of a String control when scroll bar position changed

    Hi, 
    I'm working on a feature triggered by scroll bar position of a string control changed.
    But I could not find a good way to catch the scroll bar position changed event, 
    the scroll bar is controlled manually by mouse down → mouse move → mouse up, I want the get the Text.ScrollPos value when user mouse up, and compare with the maximum value.
    But the problem is,  mouse up on the scroll bar could not trigger String: Mouse up event!
    So I have to get the Text.ScrollPos continuously in the background in Timeout event, but I think it’s not efficient.
    Do you have any better idea on when to get the correct destination value of Text.ScrollPos?
    I plan to store the value of Text.ScrollPos in the bottom(maximum value) in a shift register, then compare the current Text.ScrollPos value with the max one.
    If it comes close to the bottom(90%~100% of the maximum value), then the close to bottom LED will turn on.
    Attachments:
    scroll bar pos changed.vi ‏15 KB

    Hello Cecilia,
    I don't think there is any build-in event for this.
    One solution would be to create your own user event at the initialisation of you main and launch a thread which is going to be pulling the value of your scrollbar position:
    Then you can build your main as if they were a scrollbar move event.
    And dont forget to close the thread and destroy the event at the end.
    Hope it helps.
    Attachments:
    Scrollbar event.PNG ‏10 KB

  • Custom Horizontal Scroll Bar position on File Open

    Fellow Forum Members,
    I have a lot of PDF files that I want to open in a special way. I want them to open at 150% ZOOM and this was easy enough to setup in the PREFERENCES window.
    However, what is proving to be a big problem is changing how the horizontal scroll bar has a default position all the way to the left. My objective is to have the horizontal scroll bar positioned all the way to the right and at a 150% everytime I open a PDF file.
    The Preferences window doesn't seem to have a horizontal scroll bar position on open setting. Can anyone help me out and tell me how such a custom setting is possible with Acrobat 9 Extended? Any help will be greatly appreciated. Thanks.

    Does anyone have any ideas?

  • Get image Scroll bar position value

    How to get an image component scrollbar position value in flex.
    I have an image component in my application, when i scroll the horizontal scrollbar
    i need the current scrolled position. How to get the scrolled position in an image component.
    Kindly help in this issue.
    Rajkumar.

    Are you sure you want to use setOnScroll to listen to scroll events rather than set the value of the scroll bar position via the tableView.scrollTo api (which I would recommend) or the scrollBar.setValue() api?
    for (Node n: table.lookupAll(".scroll-bar")) {
      if (n instanceof ScrollBar) {
        ScrollBar bar = (ScrollBar) n;
        System.out.println(bar.getOrientation() + ": range " + bar.getMin() + " => " + bar.getMax() + ", value " + bar.getValue());
          if (bar.getOrientation().equals(Orientation.VERTICAL)) {
          bar.setValue(0.5);
    }If you did really, really want to use setOnScroll, then you could do something like this:
    Node flow = table.lookup("VirtualFlow");
    if (flow != null) {
      final EventHandler<? super ScrollEvent> originalScrollHandler = flow.getOnScroll();
      flow.setOnScroll(new EventHandler<ScrollEvent>() {
        @Override public void handle(ScrollEvent event) {
          System.out.println(event);
          originalScrollHandler.handle(event);
    }  Though you would be better off just using an eventfilter rather than using the strange lookup and setOnScroll chaining method in the above code.
    table.addEventFilter(ScrollEvent.ANY, new EventHandler<ScrollEvent>() {
      @Override public void handle(ScrollEvent event) {
        System.out.println(event);
        // uncomment if you don't want the default table scroll events processing to take effect.
        //event.consume();
    });

  • Easy question - scroll bar position in listbox problem

    hello again
    this time my question is simple...
    is there a way to set the initial position of a vertical scroll bar of a listbox?
    sometimes - if i make more runnings - remain in memory the last position...and if the new listbox is smaller then the last one i see a white listbox and i think that something went wrong in my program
    Using LabVIEW 7.1
    Solved!
    Go to Solution.

    Hi gigi85,
    Okay in that case,Please create property node with Multiple lines property, and click on the blue square shown in the diagram and expand it downwards, Labview should automatically add these parameters. added screenshot for your reference.
    Let me know if u've any queries.
    Thanks
    uday,
    Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
    Certified LabVIEW Associate Developer (CLAD) Using LV13
    Attachments:
    Screenshot_TopRow_PropertyNode.png ‏8 KB

  • Is there a way to programmatically change the scroll bar position?

    I am wanting to programmatically shift my front panel horizontally at a certain point during execution. I need a way of moving the scroll bar automatically. Does anyone have any suggestions?
    Thanks!

    Use the VI property FP.Origin to scroll the panel in the window.
    LabVIEW, C'est LabVIEW

  • ScrollPane vertical scroll bar positioning

    I have a ScrollPane that holds a number of number of sprites. The sprites are like rows and I would like them to fill the width of the ScrollPane.
    My problem is that if there are not enough sprites to fill the vertical space of the ScrollPane, then no Scrollbar appears and there is a narrow gap left on the right side of the ScrollPane. If I make the sprites wider, when the vertical scroll bar does appear some of the sprite is cut off and the horizontal scroll bar appears (I never want the horizontal one to appear).
    Is there a way to move the scrollBars? or perhaps another way to solve my issue?

    assign your sp's horizontalScrollPolicy (and/or verticalScrollPolicy) to "off".

  • DataTable Scroll bar Position Changing

    Hi,
    I have a datatable with scroll bar on 'A' screen and when I go to 'B' screen and come back to 'A' screen again the data table reloads and showing the table from the first record onwards instead of showing the selected n th record by holding the scroll bar state.
    Is there any way to scroll the scroll bar of a data table to the particular record either by backend logic or by java script.
    I used h:PanelGroup to the data table for scroll bar.

    That's getting harder. Put the tables in a block element, e.g. div, and onload set div.scrollTop to the amount of pixels it have to be scrolled. I am not going to give raw code here as you're here in a Java/JSF forum, not a Javascript/DHTML forum. If you still stucks, even after googling on the given keywords, consult DHTML forums like dhtmlcentral.com and dynamicdrive.com.

  • Scroll bar position in Content veiwer

    When I look at folios (even the preloaded one from adobe) in content viewer on ipad air 2 (landscape only) the black scroll bar is in the center of the screen. Can anyone fix this?

    Known issue. Being worked on.

  • List vertical scroll bar position change issue

    Hi all,
    List selection makes the list jump (scroll) up moving the selected entry to top any idea on this issue.
    regards,
    karthik

    Try it in a simple test case.  I don't think that is default behavior.

  • The horizontal scroll bar appears in the middle on Safari.

    Hello.
    I have a problem of Ipad mini
    A few user has the same prolem like me T.T when I checked other users is using Ipad mini or related Ipad series on web.
    and I could not find solution for it,
    The probelm is : the horizontal scroll bar position is changed as below image, the scroll bar appears in the middle on web page of Safari
    after zoom the page out and moving.
    How to fix this problem ?
    I already did it with a few way to fix and it never fix in my side.
    - Resotre factory mode : still happened.
    - Turn off and on Ipad mini : still happened.
    - Clear Cooke and data in safari setup.
       If Clear cooke and data, it just disappeared on web surfing but this is only temporary way, I could meet the problem soon on web surfing.
    Please help me to fix and share some information for it.
    Thanks.

    I am having the same issue. Went to the Apple Store in Boston and the Genius Bar escalated the problem to the Engineers and they could not even solve it. They needed me to send them an image of the issue. I went to another Apple store and the Genius there had much better problem solving skills. He used his own critical thinking and discovered that the horizontal scroll bar sits at the same height. The height is exactly where the split keyboard ends. If you take screen shots and compare...you will find they are all at the same height. He thinks since the keyboard is a new feature they havent worked out the problems yet...and we will have to wait for the update.
    Ever since Steve Jobs has been gone the call to response for issues is getting increasing slower and slower. New products continue to roll out but they all have problems and bugs. Take Maps for instance...they still have not fixed all the issues (even with this 6.0.1 update). The Ipad mini I spend 700$ for and it is such a faulty product. For what I spent I would have thought I would have gotten a great product. I have all Apple products...phone, desktop, laptop, Ipad original, and Mini...but they have done me wrong over and over. It may take months for them to roll out the fix the way the compnay has been operating under Cook.
    When will the fix come....I do not know... best of luck!

  • Mobile table scroll bar issue

    Hello All,
    I have used sap.m.Table on my mobile app page and I have set growingScrollToLoad to true.
    Everytime I scroll the page down, table loads more and more data, but the scroll bar position moves to the top automatically.
    This is very annoying because after getting bigger set of data, my scroller moves back on top and I have to move it all the way down to where I was.
    Any ideas as to why the scroll bar moves up automatically and how to prevent it?
    Using UI5 1.18
    -Rutika

    Hi Frank,
    I have found the answer. Here it is for anyone who would ever have or meet the same issue.
    In Jsf table property inspector
    I binded my table to my java bean (I called it myRichTable).
    I added the First and Last buttons as partial triggers of my table
    In java bean
    In my last() method I encluded the following line of code:  myRichTable.setDisplayRow(myRichTable.DISPLAY_ROW_LAST).
    And in the first():  myRichTable.setDisplayRow(myRichTable.DISPLAY_ROW_FIRST);
    Thanks!

  • Put a scroll bar at left side

    Hi all,
    I'm trying to change the side of a vertical scroll bar is set
    on a datagrid,
    e.g.: the defaut side is right and I want to set this
    vertical scroll bar on left.
    Thank you everybody,
    Artur

    The vertical scroll bar position in a datagrid is set in the
    updateDisplayList function.
    what you can do is extending from datagrid and add the
    following code:
    override protected function
    updateDisplayList(unscaledWidth:Number,
    unscaledHeight:Number):void
    super.updateDisplayList(unscaledWidth, unscaledHeight);
    verticalScrollbar.x = 0;
    this code example will only move the scrollbar to the left,
    but i guess you will also have to adjust the content position.
    if you can't access the attribute verticalScrollBar from you
    new class, add the following code above the class definition:
    import mx.core.mx_internal;
    use namespace mx_internal;

  • How do i add a Scroll Bar to a  JList Component using absolute positioning?

    I've got a applet whose content pane is set to null. I've create a jlist component on this applet and using absolute positioning set the bounds at
    ListBox1.setBounds(380,10, 500, 500);.
    My problem is creating add a scroll bar to the list box.
    JScrollPane scrollPane = new JScrollPane(ListBox1);
    C.add(scrollPane);
    The above code is what i use and when i run this applet i don't see the list box at all. How do i add a scrollbar to this list box or JList component. Please help.

    You need to setBounds() on the JScrollPane, not the JList.
    The JScrollPane is the component that is being added to the panel.

  • Return to initial position when dragging scroll bar

    There is a function in Windows that when using mouse cursor to drag the scroll bar, moving the cursor away from the scroll bar makes the bar go back to its initial position. Does OS X have a similar function? It is useful when looking figures during reading a large document.

    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Feedback

Maybe you are looking for

  • Problem integrating slideshowpro flash photo gallery into existing page

    Hi, I have a photo gallery made with slideshow pro which you can see on the page http://theoldfort.com/slideshow/slideshow.html. All the files are located in a directory on the server root called slideshow. However I would like to put this flash anim

  • JAXRPCSERVLET28 Error...

    I created a web service on Tomcat using JWSDP. I made the example wstest, but when I tried to run a WS client code, I got the next error: java.rmi.ServerException: JAXRPCSERVLET28: Missing port information at com.sun.xml.rpc.client.StreamingSender._r

  • ERROR 1058 WHEN starting INFRASTRUCTURE

    I am using Portal and Infrastructure 10g metadatabase ASDB is 9.0.x In order to use Oraacle Warehouse Builder(OWB) i had to have a 10.1 level runtime DB. So I installed 10g oracle database and kept one listener at that level (10.1). Infrastructure li

  • Music Unlimited not working in WALKMAN App 8.3.A.0.2

    I noticed that you've updated the WALKMAN App to a very clean and styled look, but there is a major error: Whenever I try to log in to Music Unlimited, WALKMAN force closes immediately as well as when the widget is trying to refresh on the home scree

  • Problem joining network

    The network I set up runs an airport express, a macbook, a dell xps and a (very old) toshiba laptop. The problem occurs when my macbook and dell try to connect to the network at the same time. When the dell wi-fi is enabled, my mac cannot access the