RowHeader scrolling with mouse drag

I have created a JTable in a scrollpane that has
both column headers and row headers.
If I drag the mouse in the table vertically, when
I get to the edge the table and row headers will
scroll automatically.
However, if I drag the mouse vertically in the row
headers, the headers start to scroll, but the table
does not.
My row headers are implemented as a JList and are
added to the rowHeaderView of the JScrollPane.
Do I need to add a drag listener to my JList
and do something special to sync these up?
Thanks for any help.
-Mark

Call setAutoscrolls(false) in the constructor of your header renderer.

Similar Messages

  • Scrolling with mouse on pages create black and white lines,

    When scrolling with mouse, periodically the whole screen turns into black and white lines. Sometimes whole page, sometimes just pictures/side ads. If you continue to scroll it does go away but then you need to scroll back to where the lines started, its hard to explain, i have taken 1 photo of the problem but will take more photos as i can, i really enjoy how Firefox runs on my computer, it has always been the best browser for my needs. I did recently buy a new desktop, but it did it then also, so i removed it and tried running explorer and Google and i just don't like them, so i am hoping we can get this fixed.

    Try to disable hardware acceleration in Firefox.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    *https://hacks.mozilla.org/2010/09/hardware-acceleration/
    If there is a problem with scrolling on web pages then try to disable smooth scrolling.
    *Tools > Options > Advanced > General: Browsing: "Use smooth scrolling"

  • Have transferred from old computer to macbook air and have lost ability to scroll with mouse has gone to scroll bar. Can I fix this

    Have transferred data from my old computer to new MacBook Air. New computer now uses scroll bar like older version. Can I return the MacBook Air to scrolling with mouse pad.

    Open Mouse or Trackpad preferences in System Preferences and be sure the scroll setting is correct.

  • Horizontal scrolling with mouse wheel?

    I have built a website for a client that scrolls only horizontally. Is it possible to scroll with the mouse wheel horizontally?
    Is there certain HTML I need to add?
    Thank you

    Hi,
    There is no out of the box solution to force horizontal scrolling with mouse wheel. However, you can add your own code to your Muse site after exporting it. These docs should be helpful :
    http://css-tricks.com/snippets/jquery/horz-scroll-with-mouse-wheel/
    http://stackoverflow.com/questions/2346958/how-to-do-a-horizontal-scroll-on-mouse-wheel-sc roll
    Regards,
    Aish

  • Bug: scrolling with mouse scroll wheel while dragging tracks no longer works

    After upgrading to Spotify for Mac 1.0.2.6, I can no longer use my mouse's scroll wheel while dragging tracks to a different position in a playlist. This is an important feature when working with long playlists. Steps to reproduce:Create a playlist that extends past the bottom of the windowClick and begin dragging the first song on the playlist downwardUse your mouse's scroll wheel to scroll the playlist down. It will not scroll.

    Hey ,
    Thanks for letting us know.
    We don't have any update on this yet and we'll pass the information on to the right team.
    We'll keep you posted.
    Thanks! 

  • Scroll JTable in Scrollpane with mouse drag

    Hello developers !
    I'm trying to make a scrollable Jtable. The table have to be scrollable with the mouse drag event. But I have a "flashing" Problem. I can catch the Mouse events from the table (I'm listener the mouse motion and mouse events).
    When I receive a new mouse drag event, I set the new position from the viewport. The problem is, that the Table flash:
    For example:
    I drag the mouse to the bottom of the table. The mouse "y" position have to increase, but it doesn't:
    first motion event position (10, 10)
    second motion event position (10, 15)
    third motion event position (10, 12)
    etc..
    The position of the mouse event are in relation of the component position. I think, the problem is that I change the position of the view port and than the new mouse event is "on a wrong reference".
    Could someone help me? How could I make a work around for this Problem?

    I have the solution... it is easy.
    I post the solution because i spent two days making working around (changing viewport position other scrollbar values, etc).
    You dont need to implement the Autoscroll interface. The Autoscroll interface is for Drag and Drop classes.
    The key was the function JTable#scrollRectToVisible....
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class ScrollableTableFrame extends JFrame{
      protected ScrollableTable table;
      public ScrollableTableFrame() {
        super("Scrollable Table");
        setSize(600, 300);
        String data[][] = new String[40][40];
        String header[] = new String[40];
        for(int i = 0; i < 40; i++){
          header[i] = "Header " + i;
          for(int j = 0; j < 40; j++){
            data[i][j] = "(" + i + ", " + j +")";
        ScrollableTable table = new ScrollableTable(data, header);
        table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        JScrollPane sp = new JScrollPane();
        sp.getViewport().setBackground(table.getBackground());
        sp.getViewport().add(table);
        getContentPane().add(sp, BorderLayout.CENTER);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setSize(400, 400);
        setVisible(true);
      public static void main(String args[]){
        new ScrollableTableFrame();
    class ScrollableTable extends JTable{
      private Point firstPressedPoint;
      public ScrollableTable(Object rowData[][], Object columnNames[]){
        super(rowData, columnNames);
      protected void processMouseEvent(MouseEvent e){
        int id = e.getID();
        switch(id) {
          case MouseEvent.MOUSE_PRESSED:
            firstPressedPoint = e.getPoint();
            break;
          case MouseEvent.MOUSE_RELEASED:
            firstPressedPoint = null;
            break;
          case MouseEvent.MOUSE_CLICKED:
          case MouseEvent.MOUSE_EXITED:
          case MouseEvent.MOUSE_ENTERED:
        super.processMouseEvent(e);
      protected void processMouseMotionEvent(MouseEvent e){
        if(e.getID() == MouseEvent.MOUSE_DRAGGED){
          Rectangle r = getVisibleRect();
          Point p = e.getPoint();
          int dx = (firstPressedPoint.x-p.x);
          int dy = (firstPressedPoint.y-p.y);
          Rectangle aRect = new Rectangle(r.x + dx, r.y + dy , r.width + dx, r.height + dy);
          scrollRectToVisible(aRect);
    }P.S.: jarshe, thank you for your help !!

  • Screen smooth scrolling with mouse wheel

    I have a screen with a number of vertical sections that are initially all collapsed. After expending these sections the screen becomes too tall and I get a scroll bar on the right. Scrolling it by dragging a scroll bar has expected smooth scrolling but using the mouse wheel scrolls  why too large portion of the screen.
    Any idea what to look for?
    Thanks

    No, I do not have other parts installed. I saw this behavior by others last week in the Safari forum here at Apple too. They wrote about this could be happend by using fast user switching and only Safari 4 was effected. But now, as I saw this after upgrading to Safari 4.0.2 in Aperture too, there should be a biger bug elsewere in the System or maybe Webkit?

  • Create an image scroller with swipe&drag in Edge Animate

    Hi folks!
    I'm trying to create a image scroller like this one http://www.awwwards.com/demo/touchSwipe-gallery-demo.html.
    For the Swipe, I use the wonderful JQuery Plugin TouchSwipe http://labs.rampinteractive.co.uk/touchSwipe/demos/, but for the image sliding I would use the Adobe Edge Animate Timeline.
    I know that I can use the Swipe events in Edge Animate to make start or reverse the timeline with pictures, but I would also make working an intermediate "dragging".
    My problem, in fact, is: how can I make that - if I've only begun to swipe  and I move the finger to left or right without releasing it - my timeline "drag" (or scrubs) frame by frame - like in the example above - until I release the finger?
    Many thanks in advance!
    Davide

    Hi Elaine!
    First, thanks for your prompt answer!
    I read the link you gave me: in fact, I was aware - also thanks to Old Tim's posts - about how to create a "scrubber" in Edge Animate, starting from formulas like:
    Translation = (positionOfScrubber/WidthOfScrubbing)*timeline;
    My problem now is - I fear - more subtle: I can swipe left-right a set of pictures, I can "scrub" a timeline (using for example JqueryUI for the dragging), but I don't know how to put together the swiping and the dragging.
    I would that - like in the example from my first post - if, e.g., I completed the swipe left, my timeline would play the animation that shows the pic moving to the left but, if I didn't complete the swiping and I begun dragging to the left, the animation would move with my dragging-finger (the "scrubbing")...
    I know is very subtle, but it's how the gallery scrollers works on web and app in mobile devices...
    Many thanks for your attention!
    Davide

  • Scroll with mouse wheel requires multiple "ticks" to start scrolling

    I recently got a new mouse, and now when using firefox the scroll wheel doesn't want to work correctly. Everywhere else I can do single scroll ticks to scroll content, but in firefox a single tick scroll is just ignored as are multiple ticks if done somewhat slow. In order to get firefox to actually scroll with the mouse wheel I have to quickly do a few ticks at once. Doing so makes for very inaccurate control.
    I've tried turning off smooth scroll, hardware acceleration, and pixel scroll, but none of those helped. Any help getting firefox to stop ignoring slow and single scroll ticks would be greatly appreciated.

    Did you check the settings in the mouse driver software in case something has changed?
    Boot the computer in Windows Safe Mode with network support (press F8 on the boot screen) as a test.
    *http://www.bleepingcomputer.com/tutorials/how-to-start-windows-in-safe-mode/

  • Scroll with mouse

    Hi all ..
    Just an other question ...
    i'd like to scroll with he mouse wheel a list box as in windows programms. How can i do that, in a easy way ?
    thanks for your answers

    Click here to see some mouse utilities, including for the wheel mouse.
    P.S. If you got to this forum through NI's site, it has a search utility. If you searched for "wheel mouse" you would find several references to these mouse utilities.

  • Scrolling with mouse causing iMac to crash?

    So I'm using a 2010 iMac at work, running on 10.8.4. It has Bootcamp and CS6, and it has been crashing pretty much every day since I started using it last week.
    At first I thought it was a problem with Safari, as even when no other programs were open, the Mac would lock up or outright crash, every time resulting in having to reset it regardless. The past two days, I have kept Safari closed, and while yesterday it managed to make it through the entire day, today it has already needed to be restarted once already.
    I think it may have something to do with scrolling with the mouse (I use a Magic Mouse), or perhaps just the screen moving in general. Whenever it is about to crash, the screen will sometimes flicker, or only the bottom of the screen will flicker; sometimes lines appear in the middle of the screen in either case. It's only locked up once to the point where it needed restarting. Usually though it will flicker once and then go to a blank white/grey screen.
    I know I could just tell my supervisor that this Mac has a problem, but I'd rather try to find a way to fix the issue beforehand, as the last time I needed something to be installed on it, I ended up having to wait three days (and I'd rather not repeat that!)

    Hi there,
    The flickering definitely sounds as though there could be an issue with the Graphics Card/Logicboard. I'd definitely have it looked at. Worth running Apple Hardware Test to see if that reports anything.
    Good luck.
    Ben

  • Major Preview App annoyance - no way to scroll with mouse

    Apple apparently thinks everyone uses their trackpad. Not.
    There's now no way to scroll down with a mouse as with ML.  I have to take my hand off it and use the trackpad to scroll down.  And since Logitech hasn't released new software, and the old doesn't play well with Mavericks (I had to uninstall it and use the default drivers in OS X), I'm stuck at least for now.
    Hopefully, I can revert to the old version from a backup.

    have you tried https://bugreport.apple.com
    This was posted on macrumours and is incredibly accurate to my case:
    Running Mavericks, if I open a single-page PDF document in Preview and size the window to 822+ pixels tall (800+ viewable document area) then the vertical scroll bar disappears (I have it set to “always” show) and the normal two-finger scrolling does not work in the up-and-down direction.
    I can still “flick” two fingers to scroll, and if I scroll at a diagonal angle it will work, but it won’t scroll normally up and down. Resizing the window to less than 822 pixels tall solves the problem, making the scroll bar reappear and the trackpad scroll gesture works properly.
    Multi-page PDFs, as well as non-PDF files, scroll just fine. It is only single-page PDFs, and only when the window shows at least 800 vertical pixels of the document, that Preview stops vertical scrolling.    

  • Scrolling with mouse wheel in column browser starts from the start of the list

    Hi, I'm wondering if anyone else has been encountering this problem with iTunes.
    Ever since updating to 10.5, whenever I use the mouse wheel to scroll in the column browser, it starts from the start of the list, regardless of which artist or album is highlighted.
    For instance, I press the M key to jump to artists starting with M, then use the mouse wheel to scroll down the list, in iTunes 10.5 it jumps me back to the As.
    The strange thing is that if I then use the mouse wheel to scroll down to the Cs, then jump down the list via a key press, mouse wheel scrolling will start me back to where I last scrolled (C).
    How can I fix this problem?
    I'm using iTunes 10.5.0.142 on Windows 7 Home Premium.

    I can confirm the behaviour. It would seem iTunes is keeping a separate record of the position in the list for use by the scroll wheel, and then snapping to that before scrolling up or down a screenful. The same random jumps happen if you use the keyboard Page Up/Page Down commands and then use the mouse wheel.
    I shall file a bug report.
    tt2

  • Scroll with mouse scroller - possible?

    hello!
    i'm in desperate need!! for this website i'm helping in, the
    client wanted me to scroll this section with words AND images. so ,
    i used the scroll pane component from Flash mx8. it works. but, now
    the client wants it to scroll faster when using their mouse
    scroller.
    currently it does scroll, but very slowly. is there another
    tutorial i could scroll both text and images with the mouse
    scroller? i'm still using action script 2.0

    Its Very simple select your ScrollPane and increase the
    vLineScrollSize / hLineScrollSize property

  • Blurry websites when scrolling with mouse

    I recently did a Firefox update and now when I scroll up and down with my mouse pad, the wording goes blurry until I stop scrolling.

    That can be caused by smooth scrolling that has been enabled by default in Firefox 13
    *Tools > Options > Advanced > General: Browsing: "Use smooth scrolling"

Maybe you are looking for

  • Assigning Dunning Letters

    Forum, I have designed a number of dunning letters dependant on ageing using SAP's PLD layout designer. I want to know how to assign these within the Dunning terms setup screen. despite having the dunning terms against a BP it continues to print the

  • Exclude DBMS_SCHEDULER jobs in DATA PUMP import

    Hello, I need to exclude all DBMS_SCHEDULER jobs during DATA PUMP import. I tried to do this with: EXCLUDE=JOB but this only works on DBMS_JOB. Is there a way to exclude all DBMS_SCHEDULER jobs during import? Kind Regards

  • Using Oracle Dataguard 10g With Oracle EBS

    Hello, I am working on Linux with Oracle Database 10g and Oracle EBS R12 and trying to configure Oracle Data Guard with Oracle EBS. I have been reading Oracle My Support Document (Business Continuity for Oracle E-Business Release 12 Using Oracle 11g

  • WS addressing inside OSB Message Flow

    Hi There, We are trying to work with the ws-addressing structure inside the Message Flow of a Proxy Service, but i don't know how to define in the wsdl to see the structure of the ws-addresing in the Header, i need to see it to obtain some values in

  • Mac OS 10.5 problem? Or ...?

    I recently switched my Dreamweaver MX 2004 over to my new MacBook (OS 10.5.4). I am able to connect to the server, but the files will not upload (put). The files appear to be uploading, (i.e. message box says that files are loading) but nothing comes