JTree behavior: very slow (horizontal) scrolling left/right

Hello folks,
I have an app that was very sluggish: primary a
JTree in a JScrollPane in a JFrame (with a toolbar
menu bar etc).
Each node of the JTree has a user object "behind" it
and I was able to implement HUGE performance increases
by changing the toString() method to cache their
representation when possible (99% of the time).
Now 10,000 nodes scroll "snappily" up and down. Cool!
Even with different icons drawn by the TreeCellRenderer.
(also cached in a hash table).
But now left/right (horizontal) scrolling is sluggish as
heck.
Ideas, kind friends?
Be well !
Eric

Replying to my own post ...
Discovered this behavior was introduced in
JDK 1.3.1_01 ... the previous releases, 1.3.1 beta1,
1.3.1 beta2, as well as the earlier 1.3.0.x, work fine.
Eric

Similar Messages

  • Scroll left, right, up and down?

    I like to have a single page site were you can scroll left, right, up and down. So the first thing you see when you open the site has to be the middle of the page. Is this possible?

    You may try the suggestion mentioned here :
    https://forums.adobe.com/message/5762693#5762693
    Thanks,
    Sanjit

  • Dynamic DataGrid + slow horizontal scrolling

    Can anyone explain why my datagrid horizontal scrolling is so
    slow:
    Demo
    www.smithkjaer.dk/flex/TestComp.htm
    Source
    www.smithkjaer.dk/flex/srcview/index.html
    Depending on your connection it can take a few seconds to
    start due to a large number of columns being generated dynamically
    out from the xml source.
    Note: If I disable the datagrids scrolling and scroll it in a
    canvas there is no performance problem when scrolling, except i
    miss my column header labels when vertical scrolling is used.
    If I disable my dataProvider and build the dataGrid without
    adding data it also scrolls fast

    I have now filed this as a bug which has been confirmed,
    which you can read about here :
    http://bugs.adobe.com/jira/browse/SDK-14361
    Please vote for this bug to be fixed

  • ITunes 9 - No scrolling Left & Right

    The new iTunes store for version 9 does not have any scroll bars! I can scroll up and down only because of the scroll wheel on my mouse. However, I cannot scroll left and right in the iTunes store window.

    Your screen resolution needs to be at least 1024x768.

  • Firefox is very slow, doesn't look right and all history and bookmarks gone

    This happened just after I installed a proprietary software that I needed for work.
    When I launched Firefox afterwards, I realized that all of my bookmarks and history was gone. The websites were loading very slow. My Firefox sync configuration settings were gone.
    Also, when I search Google and put the cursor over the links that appear, the cursor usually turns to a hand symbol. Now it turns to a text cursor (like an I). The links are usually colored blue, but now they are colored black.
    I'm using Chromium instead of Firefox now, and it appears to be working OK.
    Tried disabling all the addons. Didn't work. Then uninstalled and re-installed Firefox. No luck. Uninstalled Firefox, deleted all folders containing "firefox" as part of the name in "/usr/lib", and re-installed Firefox. Didn't work.
    Maybe the proprietary software that I installed altered the user permissions to some folder so Firefox is not able so access them? I don't know. If you have any ideas let me know.
    I would really like to get Firefox working properly again, because I'm so used to it, and use addons like Zotero. Also, I have Windows in dual boot, and I have Firefox running there, and everything I do there was synced to Firefox in Ubuntu. But not anymore :(.
    Thanks.

    This happened just after I installed a proprietary software that I needed for work.
    When I launched Firefox afterwards, I realized that all of my bookmarks and history was gone. The websites were loading very slow. My Firefox sync configuration settings were gone.
    Also, when I search Google and put the cursor over the links that appear, the cursor usually turns to a hand symbol. Now it turns to a text cursor (like an I). The links are usually colored blue, but now they are colored black.
    I'm using Chromium instead of Firefox now, and it appears to be working OK.
    Tried disabling all the addons. Didn't work. Then uninstalled and re-installed Firefox. No luck. Uninstalled Firefox, deleted all folders containing "firefox" as part of the name in "/usr/lib", and re-installed Firefox. Didn't work.
    Maybe the proprietary software that I installed altered the user permissions to some folder so Firefox is not able so access them? I don't know. If you have any ideas let me know.
    I would really like to get Firefox working properly again, because I'm so used to it, and use addons like Zotero. Also, I have Windows in dual boot, and I have Firefox running there, and everything I do there was synced to Firefox in Ubuntu. But not anymore :(.
    Thanks.

  • My kids seem to have changed my screen settings on my MacBook Pro so that I have to scroll left right and up and down to see the full screen... How do I reset to only show full screen?

    Please help me restore the 'full screen' setting!!!

    Thanks but I want to go back to the Wayne was before.  I use to be able to see the full web page on the screen rather than have to scroll around in all directions.  It is as if the screen is smaller than the information is it trying to display

  • Left headphone audio output is slow as compared to right ear phone

    I have Macbook Pro and since last few days left headphone audio output has became very slow as compared to right headphone audio output. I have tried multiple headphones but no luck so its problem with audio jack I think.
    Did anyone experience same problem? Kindly please guide.
    Thanks in advacne.

    This a new one for me, the is slower?
    Trya pram reset:
    Power off, power back on holding the following keys before the start up chime.
    option, command, P,R (no commas) continue to hold these keys till you hear the start chime 2 times and release.
    Reboot, see if this helps.

  • How to make Horizontal scroll in MI 7.1 handheld?

    Hi:
    I´m using rowrepeater in MI 7.1 and I have more columns than the screen´s width but there is not horizontal scroll so....I can´t see the other columns.....
    The user don´t like the table because the radiobutton for leadSelection is too big.
    Any idea? solution?
    Thanks a lot for your time on this post.
    Rocío.

    This depends on what you have in your RowRepeater, just TextViews? fixed width?
    I can only think of a complicated solution since there is no integrated solution in MI 7.1 that i know of for horizontal scroll
    Possible Solution...
    1) The context that the RowRepeater is bound to are generic column1, column2, column3... or less, whatever number that is suitable for screen width
    2) then use buttons or FN keys  to navigate\scroll left-right which triggers an event to refresh the datasource of column1, column2, columnN
    3) triggered event will re-query and bind to populate your RowRepeater's datasource (context \ "columns")  with the new columns so to the user it looks like as they press right, there was a shift in the columns to the right
    so data in column1, column2, column3
    become
    data for column2, column3, column4
    I think this can keep decent performance since you don't have to re-render the View but it's quite bothersome to write all the code to manage this
    just an idea....
    i also had this scenario requested before and tried to use Tabstrips, and have the columns on multiple tabs and use left-right to navigate the tabs... but business said feature not important so i got to drop it

  • Horizontal scrolling with page control

    Hello,
    in my application I use Page Control for switching from page to page (at the moment it is only possible when you touch on the dots). But I want that when the user scrolls left/right the next/previous page is displayed. I know that the class UIScrollView is to use, but I have no idea how!!
    Can somebody post an example code?
    Message was edited by: mpxl

    I am trying to implement a similar scrollview/pagecontrol, but I want to retain vertical scrolling capabilities on each pane (non-paginated). Would this be easy to implement?

  • FF 19 + Newest Adobe Reader = Failure. The newest update to FF with the newest Adobe reader is absolutely horrible. It is slow to load, slow to scroll pages,

    Using FF19 and apparently Adobe reader 11.0.2.0. This new version is HORRIBLE, very slow to scroll pages, and flat out does not work with some work web pages I need. How do I revert to a previous version of Adobe to get back to the old format and layout that works well? I tried disabling the plug-in in FF and it did not change.

    hello, firefox 19 has introduced its own integrated pdf viewer - if you want to switch back to the plugin you've used before to view pdfs just go to firefox options > applications & scroll down and define the default action for the '''portable document format (pdf)'''.
    [[How to disable the built-in PDF viewer and use another viewer]]

  • Slow PDF Scrolling

    On my 15" rMBP, my PDFs are very slow to scroll.  It will be the only PDF open and I have open each file in it's own window checked.
    Any help will be appreciated!
    Thanks!

    Back up all data. Quit Preview if it's running.
    Hold down the option key and select Go ▹ Library from the Finder menu bar. From the Library folder, delete the following items, if they exist:
    Caches/com.apple.Preview
    Containers/com.apple.Preview
    Preferences/com.apple.Preview.LSSharedFileList.plist
    Preferences/com.apple.Preview.SandboxedPersistentURLs.LSSharedFileList.plist
    Saved Application State/com.apple.Preview.savedState
    Launch the application and test.

  • Is it possible to switch the left-right scrolling behavior in Prelude?

    On my Apple magic mouse I can scroll left and right with the flick of a finger for items that are too wide to fit on the screen, such as the list of columns in the Project pane. The behavior in Prelude is to move opposite to the finger flick - in other words if I flick my finger to the right, it will move the columns to the right as the scroll bar at the bottom moves to the left. This is the opposite behavior of Premiere in the same Project panel. In Premiere, if you flick to the right, it's as if you are flicking the scroll bar. When working with both programs at the same time, it's hard to get used to the inconsistent behavior. I can change my mouse settings to switch the direction, but I cannot make Prelude and Premiere match directions.

    Hi Wes, did it really change with the update?
    My Premiere and Prelude panel scrolling behavior still differ.
    In Premiere, when I scroll to the right on my trackpad, I move forward in time.
    In Prelude it's reversed.
    How to set it? Can't find an option in the Preferences.

  • Mighty Mouse - slow left/right scrolling

    Does anybody else find the left/right scrolling to be slow compared to the up/down scrolling? It would be nice to be able to adjust the speed on both axis.

    Seems to work fine now. Must have been a software update somewhere along the way.

  • How to make the knob of a horizontal Scroll Bar stay at right

    Hi I need some advise to achieve this:
    I have a chart continuously deploying towards the right side (think on an electro cardiogram that is continuously feeding data). All the chart information is kept available inside a JScrollPane. What I want to achieve is:
    1. if the horizontal scroll bar knob is at the right end of the scroll bar make the end part of the chart be displayed continuously (view is scrolling to the right, the knob stays at the right end)
    2. if the user moves the knob left from the right end freeze the motion and just show the selected portion (meanwhile data keeps being fed and stored but not displayed)
    3. when the user decides to drag the knob again to the right end the behavior of point # 1 resumes.
    The basic swing structure I'm using for this is the following:
    public class Electro extends JPanel {
    public Electro() {
    JFrame f = new JFrame();
    JScrollPane sp = new JScrollPane(this);
    f.getContentPane().add(sp);
         f.pack();
         f.setVisible(true);
    I would highly appreciate any feedback from fellow members. Thank you.

    hi friend
    try this in ur code
    public class Electro extends JPanel {
    public Electro() {
    JFrame f = new JFrame();
    JScrollPane sp = new JScrollPane(this);
    sp.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
    sp.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
    f.getContentPane().add(sp);
    f.pack();
    f.setVisible(true);
    i think it will be help full to you
    thanks
    waiting for reply

  • Horizontal scroll for Tree component scrolls too far right

    I've enabled the horizontal scroll bar for the Tree component.
    But the scroll bar allows the user to scroll very far to the right into blank space.
    The maximum width of my components measures 124px, as calculated by measureWidthOfItems(0,0), and I've verified this by measuring pixels of a screen shot.
    I have tried adding an event to set the Tree.maxHorizontalScrollPosition, and I traced the value that I'm setting it to, and I also traced the value that it actually assumed after I set it. Both are 124px.
    So I can't understand the behavior. I can scroll something more like ~400px to the right with lots of blank space.
    Any ideas why?
    Thanks,
    David

    Hmm, I'm not sure why this works, but it works, so for completeness here's what I did (in case anyone else runs across this same thread):
    var measWidth:Number = myTree.measureWidthOfItems(0,0);
    filesTree.maxHorizontalScrollPosition = measWidth - myTree.width;
    I call the above code whenever the window is resized (in my app there are 2 places that can cause a resize of the window, I manually added calls to a function with the above code). There is also an example out there that resizes any time the window is resized, but if you do this then you really can't have liveDragging=true in a DividedBox (which I have) because the cost of resizing is very high and overtaxes the cpu when called many times consecutively. I just call it when the dragging is finished (that way I have live dragging enabled, but it only updates the scroll bars when the user stops dragging, which is visually acceptable).

Maybe you are looking for