Horizontal scrolling faster than Vertical scrolling

I have a jscrollpane, containing a jtable as its component view. When i drag the vertical scroll bar, the painting is slower than when i drag the horizontal scrollbar. I've tried using a profiler to understand, but i didn't.
Can anybody help me ?

Horizontal scrolling:
.java.awt.EventQueue.dispatchEvent(AWTEvent) 100%
...java.awt.Component.dispatchEvent(AWTEvent) 100%
...java.awt.event.InvocationEvent.dispatch() 0%
Vertical scrolling:
.java.awt.EventQueue.dispatchEvent(AWTEvent) 100
...java.awt.event.InvocationEvent.dispatch() 77%
...java.awt.Component.dispatchEvent(AWTEvent) 22%
the invocatonEvent.dispatch() method call (through several methods) javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(JComponent, Image, Graphics, int, int, int, int).
In horizontal scroll (fast), this method calls sun.java2d.SunGraphics2D.drawImage(Image, int, int, ImageObserver)
In vertical scroll (slow), this method calls javax.swing.JComponent.paintToOffscreen(Graphics, int, int, int, int, int, int)
So i would say that the horizontal scroll calls repaint AFTER some offscreen image buffer is calculated while, the vertical scroll fails to do that.

Similar Messages

  • Horizontal scrolling with a vertical scroll wheel

    Recently I sadly had to ditch my mighty mouse. Good by little friend.
    I couldn't justify spending 45 minutes of my day trying to clean the wheel.
    I miss horizontal scrolling now. I've been told that one can get horizontal scrolling by holding the shift key, but that doesn't work for me.
    Any ideas?

    My apple mouse that came with my iMac G5 started sticking which was causing problems when I tried to double-click. I bought a Logitech Optical Mouse which works fine on my iMac even if it was intended to be used with a PC. I can even right-click to bring up the options you would get by ccontrol-click an apple mouse. Also the Logitech mouse is cheap compared with an apple mouse.
    http://www.amazon.com/gp/product/B0001LTT64/ref=dpcp_ob_title0/104-2556526-6719156

  • The Horizontal & vertical scroll is not visible or not working when i run the form in Forms 6i.

    Hi all,
    The Horizontal & vertical scroll is not visible or not working when i run the form.
    In this form , there are 5 canvas namely
    CANVAS2 - Stacked Canvas
    PASS - Content Canvas
    MAT_RATES - Content Canvas
    DATE - Content Canvas
    PREVIOUS - Content Canvas
    I have set "Show Horizontal Scroll Bar" to "Yes" and  "Show Vertical Scroll Bar" to "Yes" in the WINDOW Property.
    I have  set "Show Horizontal Scroll Bar" to "Yes" and  "Show Vertical Scroll Bar" to "Yes" in the STACKED CANVAS Property .
    But still the Horizontal and Vertical Scroll Bar is not working when i run the Form.
    Help me with this please. How do i make it visible??
    Oracle Forms 6i..
    Thank You.

    Vijetha wrote:
    Hi all,
    The Horizontal & vertical scroll is not visible or not working when i run the form.
    I have set "Show Horizontal Scroll Bar" to "Yes" and  "Show Vertical Scroll Bar" to "Yes" in the WINDOW Property.
    I have  set "Show Horizontal Scroll Bar" to "Yes" and  "Show Vertical Scroll Bar" to "Yes" in the STACKED CANVAS Property .
    But still the Horizontal and Vertical Scroll Bar is not working when i run the Form.
    Help me with this please. How do i make it visible??
    Oracle Forms 6i..
    Thank You.
    hello vijetha,
    window and canvas show scroll bar when it need.
    You should show block property
    and set block scroll bar
    hope this helps..
    Hamid

  • How do I scroll more than one line at a time in Firefox 4? Scrolling with down-up keyboard arrows is much faster in IE/Chrome.

    I have tried using about:config options mousewheel.withnokey.sysnumlines > false and custom set mousewheel.withnokey.numlines, but it makes a difference only when I use a mouse, which I don't use most of the time on this laptop. I use down/up keyboard errors to scroll, and the page scrolls one-line-at-a-time, very slow and lagging. Is there a way around this?
    I have reinstalled Chrome as secondary browser only because of this, FF4 otherwise really kicksass. Thank you for an amazing browser and any feedback on my issue.

    Well I am using those, but it is not very practical. What puzzles me is that only Firefox has this behaviour, I have tried last versions of IE, Chrome, Opera - all three scroll much faster than Firefox 4 using down/up keyboard arrows.
    Thanks for the reply, I really hope to get a solution to this.

  • Need help with scroll effects for horizontally + vertically scrolling website

    Hi,
    I recently came across a website that uses both horizontal and vertical scrolling where 1 scroll = full browser length move to the next section (as opposed to several rotations in a continuous motion of the mouse ball like the majority of websites). Please see the example here because I'm probably not explaining this very well : A Chocolate Bar, Restaurant and Shop for Chocolates, Fondue, Gift Boxes, and More | Max Brenner (http://maxbrenner.com).
    I'm wondering if this effect is something that can be done in Muse and if so, how to do it. It's something I'm seeing more and more and almost behaves like a slideshow that can be controlled by scrolling.
    Thank you!
    Michele

    Hi Michele,
    I am afraid that this is not possible out of the box at this stage, I will recommend that you post this on the ideas section over here, Ideas for features in Adobe Muse
    You can, in the mean time, use some CSS to disable the scroll bar, preventing the partial scrolling of the page and disabling the mouse wheel scrolling as well, leaving behind only your navigation to scroll through the page.
    - Abhishek Maurya

  • TableView horizontal and vertical scrolling is horribly slow

    How can I adjust the horizontal and vertical scrolling amount?
    I used the Ensemble example prorgam and streched the column so that the horizontal scroll bar is displayed. I then used the right scroll button which then scrolls extremly slow. I've looked at the javadoc on the tableview and I cannot determine how to set the scrolling amount. I can check if the table is scrolling but I would like to set the amount to be a column width at a time when using the left or right arrow.

    It probably needs to be actually rendered to the Scene graph before the lookups can be made, so the lookups won't work in the initialize method.
    There are a number of reasons I don't like this solution
    - I don't like the string binding
    - the fact that there are scrollbars that are descendant nodes of the table view is not documented, so (at least in theory) a future release of JavaFX could choose not to use the ScrollBar class (for example by creating its own scrolling implementation). This would break the code you have.
    - if you decided to create (or use) an alternative skin for the table view which had other scrollbars in place (again, unlikely but theoretically possible), you'd end up setting the unit and block increments of those scrollbars too. In other words, there's no guarantee these are the actual scrollbars you want.
    So, not ideal but at least if it works you have something...

  • Horizontal/Vertical Scroll in Design Studio 1.1

    Hi,
    We are using Design Studio 1.1 SP1,
    I am using cross tab in the design studio to create a desktop application, I selected more number of columns in the cross tab, But in the cross tab i dont see horizontol/Vertical scroll bar in the layout.Please see the below attachments.
    The data source is connected to a BW query with characteristics in the rows and key figures in the columns. 

    Hi Srinivas,
    This is as per design.
    Horizontal and Vertical scroll bars are enabled only in reference to the measure/Keyfigure entries.
    In your query definition I could see a lot of Dimension/Characteristic values and there are only 2 measure values.
    The expected behavior here is a scroll bar should appear when the data set or result set is not fitting in the assigned crosstab space. And moreover Scroll bar will only appear if the atleast one of the measure values is made visible in the crosstab.
    To put it short, in your example horizontal scrollbar will appear when you choose (not more thn) 4 dimensions as only 5 columns are visible. This will enable one of the measure values to be displayed and hence the horizontal scrollbar.
    Reason for such a design:
    Crosstab display could be misleading if the entire dimension selection is not made visible and hence no scrolling is possible for dimensions.
    E.g If the sales is sliced based on Region, Country and City. And in the initial display if only City and sales information is visible, then this will not communicate the  entire information intended.
    Note:
    If you are not happy with this behavior or design, please raise a ticket explaining your scenario demanding the usage of more characteristics. We shall process this and respond to your request.
    Regards,
    Bharath

  • Why do I have 2 Vertical Scroll Bars and 1 Horizontal one

    Can anyone tell me from the code below where I am going
    wrong. I have an AP Div inside an AP Div that has text content and
    the overflow is at Auto which gives me a horizontal scroll bar but
    also 2 vertical scroll bars instead of one in Firefox. What is the
    reason for this? I hope someone can help me - here's the code:
    <div id="apDiv6"><img src="frame.jpg" alt="Frame"
    width="518" height="335" /></div>
    <div id="apDiv23">
    <p align="left">
    <strong>Hors d'Oeuvres<br/><br/>
    </strong><strong>Soupe...........</strong><br/><br/>Soupe
    a l'oignon
    gratinée............................................
    $6.75<br />
    </strong>Onion soup<br /><br/>
    <strong>Soupe du Jour ..........................
    $5.25<br/>
    </strong>Soup of the day<br/><br/>
    <strong>Les entrées
    froides...........<br/><br/>
    </strong><strong>Huîtres du
    Jour.....................La Pièce $1.85<br/><br/>
    </strong>
    Oysters (served with Champagne shallot
    vinegar)<br/><br/>
    Salade et fromage, vinaigrette à la moutarde de
    Dijon........ $6.00<br/>
    Mixed salad with feta cheese, Dijon mustard
    vinaigrette<br/><br/>
    Salad frisée aux lardons et oeuf poché..........
    $7.95<br/>
    Frisée salad with bacon and poached egg, sherry
    vinaigrette<br/><br/>
    Salade de crabes, concombre et betterave, sauce
    aïoli......$8.50<br/>
    Crab salad with golden beet and cumcumber, aioli
    sauce<br/><br/>
    Foie gras cuit au torchon et
    toast........$14.50<br/><br/>
    Les entrées chaudes......<br/><br/>
    Moules Marinières................$9.00<br/>
    Steamed Mussels Marinieres, White Wine and garlic (Side
    French fries $2.50)<br/><br/>
    Poêle de ris de veau et épinards, jus au
    romarin..........$9.50<br/>
    Sautéed sweetbread with spinach, rosemary
    jus<br/><br/>
    Escargots de Bourgogne au beurre d'ail et
    persil..............$7.50<br/>
    Escargots from Burgundy in garlic parsley butter (plate
    6)<br/><br/>
    Les Plats<br/><br/>
    Légumes........<br/><br/>
    L'assiette végétarienne du Chef...............
    $14.90<br/>
    Chef Vegetarian<br/>
    Red beet raviolis wih parmesan cheese and seasonal
    vegetables, mushroom jus<br/><br/>
    Poisson<br/><br/>
    Pave de saumon, purée de pommes de terre et
    épinards, sauce homard et vin blanc...... $16.50<br/>
    Steamed salmon with mashed potatoes, spinach and mussels,
    white wine with lobster sauce<br/><br/>
    Filet de bar meunière, poireaux caramélisés,
    sauce grenobloise.....$16.75<br/>
    Sauteed bass served with caramelized leeks, Grenobloise
    sauce<br/><br/>
    Tronçon d'espadon legumes de saison couscous, safran
    orange sauce.... $17.95<br/>
    Sauteed swordfish with couscous and spring vegetables, orange
    and saffron sauce<br/><br/>
    Viandes et volailles......<br/><br/>
    Boeuf Bourguignon et purée de pommes de
    terre..........$16.25<br/>
    Beef Bourguignon sered with mashed
    potatoes<br/><br/>
    Suprême de poulet, ragoût de macaronis poireaux et
    chanpignons, sauce orange... $15.50<br/>
    Roasted chicken breast, leek mushrooms macaroni ragout orange
    sauce<br/>
    Lapin façon Normande............$17.25<br/>
    Rabbit Normandy served with Peruvian mashed
    potatoes<br/><br/>
    Le Cassoulet toulousain Maison...........$21.00<br/>
    Home Made Cassoulet with beans (Duck leg Confit, port,
    Toulouse sausage)<br/><br/>
    Jarret d'agneau braise 6 heures, blettes jus d'agneau et
    romarin.....$23<br/>
    Lamb shank braised for six hours served with swiss chard,
    rosemary lamb jus<br/><br/>
    New York steak, french fries, shallot red wine
    butter<br/><br/>
    </p>
    </div>
    Thank you for helping!

    Hi,
    This is a problem with firefox. It will always show
    scrollbars if the div's css property of overflow is set to anything
    except none.
    Gaurav
    www.gauravchandra.com

  • Is there a way to hide the horizontal and vertical scroll bar?

    Hi,
    I have report with customized page height and width and I am displaying it in the windows forms.
    When I am resizing the form wherein the crviewer is dock in, the horizontal and vertical scroll bars appears.
    Is there a way for me to suppress the those scrollbars?
    Thanks in advance.

    Couple of ways I've been able to find info about. E.g.; there is not straight API off os the viewer (CRviewer.ScrollBar = False ).
    1)  Add Panel control onto the page and add report viewer control into a Panel. Set Scrollbar, width, height property of Panel control.
    2) See http://www.dotnetspider.com/forum/266932-Remove-Scrollbar-from-Crystal-report-Viewer.aspx for another idea.
    If either of the above works for you, please let us know as I have not tested this yet.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Add a horizontal and a vertical scroll bar to a screen

    Hi,
    How to add a hotizontal scroll bar and a vertical scroll bar to a screen?
    Thanks a lot.
    Best Regards,
    Stephanie

    Hi,
    I think it will be automatically added if your screen size is greater than the window size...
    Regards
    Karthik D

  • Whenever I play anything on Windows Media Player Classic, the middle mouse button does not work as a vertical scroll in firefox, but instead shows a horizontal scroll that does not scroll the web pages. How can I fix this problem?

    Hi
    I have a windows 7 and whenever I play anything on Windows Media Player Classic, the middle mouse button does not work as a vertical scroll in firefox, but instead shows a horizontal scroll that does not scroll the web pages. How can I fix this problem?
    I hope that was clear.
    Thnx

    Hello kmanthie,
    I just sent you a private message. If you are not sure how to check your forum messages, this post has instructions.
    I worked on behalf of HP.

  • Ibooks 3.1 how to change horizontal scroll into vertical scroll

    update to ibooks 3.1, the scroll mode is changed into horizontal scroll, now in my .epub books it cut so many picture in two parts and display in two pages...how to change , back to vertical mode...

    I find this maybe is the new feature only for books with Asia-Pacific words....english books is right with vertical scrolling mode...but chinese books whit horizontal scrolling mode
    why apple doesn't make a set up to change between this ..

  • Vertical Scrolling and Horizontal Wrapping in a JEditorPane

    Hey guys,
    Some of you may recall my [post |http://forums.sun.com/thread.jspa?threadID=5418688] from a couple weeks back. In it, I learned how to force (or appear to force) the text of a JEditorPane to grow from the bottom-up instead of top-down (picture the difference between how a chat window grows to how a word document grows). The solution (which solves my original problem perfectly) involves simply placing the JEditorPane into the South region of a JPanel.
    That was all fine and dandy, until I tried putting long lines of text into the JEditorPane. It scrolled vertically when it should have, but the text simply ran off the right side of the JEditorPane instead of wrapping (or showing a horizontal scrollbar).
    After a gross amount of googling, I finally came across this old [post |http://forums.sun.com/thread.jspa?threadID=5318664] that seems to be related to my problem here. It hinted that I should set the width of the JPanel to match the width of the JScrollPane's Viewport. While that does indeed fix the problem with horizontal wrapping, it now creates a problem with the vertical scrolling (which works fine without the fix for horizontal wrapping)!
    I've tried setting the preferred height of the JPanel to just about everything I can think of: the height of the viewport, extremely large numbers, negative numbers, zero, itself, the height of the JEditorPane. But they all do the same thing: no vertical scrollbar ever pops up, even when the text is obviously too long to fit in the window.
    Here's an SSCCE demonstrating what I'm talking about:
    import javax.swing.*;
    import java.awt.*;
    public class EditorPaneTest {
        public EditorPaneTest() {
             JFrame frame = new JFrame("EditorPane Test");
             frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             JEditorPane textComponent = new JEditorPane();
             textComponent.setContentType("text/html");
             String text =
                  "This sentence should wrap and not cause the horiztonal scroll bar to display.<br/>"
                  + "<br/>This<br/>sentence<br/>should<br/>cause<br/>"
                  + "the<br/>vertical<br/>scroll<br/>bar<br/>to<br/>display.<br/>";
             textComponent.setText(text);
             JPanel panel = new JPanel(new BorderLayout());
             //the purpose of putting the JEditorPane in a JPanel
             //is to force it to the bottom with BorderLayout
             panel.add(textComponent, BorderLayout.SOUTH);
             JScrollPane scrollPane = new JScrollPane(panel, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
             //this line enables wrapping
             //but disables vertical scrolling
             //(comment it out to switch)
             panel.setPreferredSize(new Dimension(scrollPane.getViewport().getWidth(), scrollPane.getViewport().getHeight()));
             frame.add(scrollPane);
             frame.setSize(100, 200);
             frame.setVisible(true);
        public static void main(String[] args) {
            new EditorPaneTest();
    }As always, any pointers / suggestions / criticisms you can give me are greatly appreciated.
    Thanks again,
    Kevin

    camickr wrote:
    You need create a custom panel that implements the Scrollable interface. The key method to override to give you the behaviour you desire is the getScrollTracksViewportWidth() to return "true". This effectively fixes the width of the JEditorPane to the width of the viewport to wrapping is done as expected.That does handle the wrapping and scrolling, but it breaks the original problem: keeping a JEditorPane at the bottom of a JPanel. Using the ScrollablePanel you posted, the JEditorPane now stays at the top of the Panel instead of growing from the bottom.
    To see what I'm talking about, check out this code (the only difference between this and the previous code is the addition of your suggestion):
    import javax.swing.*;
    import java.awt.*;
    public class EditorPaneTest {
        public EditorPaneTest() {
             JFrame frame = new JFrame("EditorPane Test");
             frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             JEditorPane textComponent = new JEditorPane();
             textComponent.setContentType("text/html");
             String text =
                  "This sentence should wrap and not cause the horiztonal scroll bar to display.<br/>"
                  + "<br/>This<br/>sentence<br/>should<br/>cause<br/>"
                  + "the<br/>vertical<br/>scroll<br/>bar<br/>to<br/>display.<br/>";
             textComponent.setText(text);
             ScrollablePanel panel = new ScrollablePanel();
             panel.setLayout(new BorderLayout());
             //the purpose of putting the JEditorPane in a JPanel
             //is to force it to the bottom with BorderLayout
             panel.add(textComponent, BorderLayout.SOUTH);
             JScrollPane scrollPane = new JScrollPane(panel, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
             //this line enables wrapping
             //but disables vertical scrolling
             //(comment it out to switch)
            //panel.setPreferredSize(new Dimension(scrollPane.getViewport().getWidth(), scrollPane.getViewport().getHeight()));
             frame.add(scrollPane);
             frame.setSize(100, 200);
             frame.setVisible(true);
        public static void main(String[] args) {
            new EditorPaneTest();
         public class ScrollablePanel extends JPanel
              implements Scrollable
              public Dimension getPreferredScrollableViewportSize()
                   return getPreferredSize();
              public int getScrollableUnitIncrement(
                   Rectangle visibleRect, int orientation, int direction)
                   return 20;
              public int getScrollableBlockIncrement(
                   Rectangle visibleRect, int orientation, int direction)
                   return 60;
              public boolean getScrollableTracksViewportWidth()
                   return true;
              public boolean getScrollableTracksViewportHeight()
                   return false;
    }Resize the window to make it taller. The text should stay at the bottom of the window, but now it stays at the top. I tried using a BoxLayout on the ScrollablePanel instead, and adding a Box.createGlue( ) before adding the JEditorPane. But that didn't change anything.

  • One page scrolling site, why do anchors move horizontally as well as vertically?

    I've created a one page scrolling site, my problem comes up when I added anchors. Seems that whenever the button brings me to the anchor it moves my page horizontally as well as vertically. I haven't had this happen before.
    The page is http://www.bhppromos.com/Lookandlive.html
    Thanks for any help.

    Hi Dan,
    In Muse, when you click on a link to an anchor, Muse tries to align the anchor point to the top left of the browser, that is why you see a vertical shift. To fix this, I will recommend that you align your anchors to the browser's left margin.
    - Abhishek Maurya

  • How to use vertical scroll browser in Flex web app?

    Hi,
    I´m developing a web app with flex3. Web app has linkbar connected to a viewstack,
    that contain inside a canvas that change the height property depending on the option
    selected on the linkbar. My problem is that, when the viewstack resizes his canvas
    and has the height property bigger than the resolution of the web browser, shows a
    vertical and horizontal scroll inside de canvas. I need not to show the scrollbars
    inside the canvas, I need to show the vertical scroll bar in the general container, I
    think in application. I try to set the property verticalScrollPolicy to "off" in the containers
    and "auto" or "on" in application. The containers don´t show now the scrolls bar and
    application shows an empty vertical scroll bar. I would need to have an vertical scroll
    bar working properly in application. Somebody could help me, please.
    Thanks,

    I could make it work by dragging them to the src folder.
    That's exactly what you need to do. After all, they're source files
    When you define "src" as the source directory, that's where the compiler will look for classes/packages.
    So the package net.xyz.widgets.* resolves to src/net/xyz/widgets/

Maybe you are looking for

  • JSF page rendering

    In my application, i am rendering the jsff pages by using ADF regions. I am on page A(a jsff page), from where i go to page B(another jsff page). when the page B is loaded first time all the getters and setters for components(buttons,input box, butto

  • Condtion record -Price element inactive -Inactive Via Formulas or Incorrect

    Hi experts, I am trying to use pricing condition in bespoke service order. When I add product to it, I don't get the net value. When I click on product then I get all condition records but condition record with bespoke condition type are marked red a

  • Dns server in solaris 10 issues

    Hello, I have configured /etc/resolv.conf with the following: nameserver 8.8.8.8 "nslookup www.yahoo.com" works fine to get the IP, but "ping www.yahoo.com" failed with with unknown host. Did I miss something to configure my dns server? Thanks for th

  • How do I create a "page peel" effect?

    is there an effect or 3rd party filter that allows me to lift just the corner of video to reveal something beneath, and then to bring the corner back down. I've seen this in Johnson Wax spots. Corner lifts to reveal their logo. Don't need a full tran

  • Why do I get FP Error 33437?

    I sometimes get Error 33437 "The specified module was sent a Power Up clear command: FP write.vi" This error occurs in the middle of a test when a LabVIEW vi attempts to take a 4-20 mA reading from a pressure sensor. We are using FP-1000 Network, FP-