ListSelectionEvent and Up/Down arrow buttons

Hi,
I am using JDK 1.3.1 and having a wierd problem with changing list selection using the Up and Down arrow buttons.
Normally, when changing a list or table selection using the mouse, two events will be fired in sequence. The first one is the deselect event of the old selection and the second one will be the select event of the new selection. But when I change the selection using the Up and Down arrow buttons, only the second event is fired.
I installed an extend ListSelectionListener on my DefaultListSelectionModel as following:
public void valueChanged(ListSelectionEvent e){
if (e.getValueIsAdjusting()) {
// Do something to the old selection when leaving it
else {
//Do something to the new selection
As described earlier, when changing seleciton with the mouse, the valueChanged() method will be invoked twice with the e.getValueIsAdjusting() returning true then false. But when changing the selection with a Up or Down key, the method will only be invoked once with the e.getValueIsAdjusting() returning false.
Did anyone have this problem too? Is this a JDK specific problem? Your help will be really appreciated.
Thanks very much.

If this behavior is expected for the JList, I am wondering if there is anyway that I could disable the Up/Down arrow buttons in the list box.
Thanks.

Similar Messages

  • Down Arrow button is blurr in CRM 2013

    Hi ,
    I am using CRM 2013.
    See, the Down arrow buttons, in above screen shot, all are blurred.
    I dont know, whats wrong with it. Any suggestion to resolve this resolution issue ?
    Thanks!!!
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    Hi,
    Have you tested accessing your CRM from another browser in order to replicate this bug?
    Could it be your zoom settings are off the default for the current browser?
    Edit: Refreshing the page doesn't help? Perhaps clear the browser's cache?
    Hope that helps,

  • Down arrow button not working, warranty item?

    Hello,
    I just bought first Mac ever. Upon finishing loading my dual boot OS I have noticed that the down arrow button is stuck/lose/broken. Not sure what it is but it is almost pressed down before you touch it. Is this repairable under the warranty? I  literally have had it out of the box for a couple hours and this issue has arisen. Just want to know whether just to get repaired at Apple store or return it to BB for a new one. Thanks

    You may have switched on caret browsing.
    *http://kb.mozillazine.org/accessibility.browsewithcaret
    You can toggle caret browsing on/off by pressing F7 (Mac: fn + F7).
    *Tools > Options > Advanced > General > Accessibility: [ ] "Always use the cursor keys to navigate within pages"
    Note that this is an accessibility feature of Firefox.
    *http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    *http://kb.mozillazine.org/Accessibility_features_of_Firefox

  • Sort up and sort Down push buttons in module pool with table control wizard

    hi,
    i have created 2 buttons for Sort up and sort Down push buttons in module pool with table control wizard
    please any one can help me.
    regards

    Hi
    Following code is to enable and disable the tbl control using two buttons. Just alter the code and for each button write the sort code.
    REPORT  YJAN27_SCREEN                                               .
    TABLES: SFLIGHT, YFLIGHT_28.
    TYPES: BEGIN OF struct1,
          carrid like sflight-carrid,
          connid like sflight-connid,
          fldate like sflight-fldate,
           END OF struct1.
    CONTROLS TBL1 TYPE TABLEVIEW USING SCREEN 2700.
    DATA: OK_CODE LIKE SY-UCOMM,
          CARRID LIKE SFLIGHT-CARRID,                                    "cols in tbl ctrl
          CONNID LIKE SFLIGHT-CONNID,
          FLDATE LIKE SFLIGHT-FLDATE,
          itab TYPE TABLE OF STRUCT1 WITH HEADER LINE,
          cols like line of TBL1-COLS,
          FLAG TYPE I.
    FLAG = 1.
    CALL SCREEN 2700.
    *&      Module  STATUS_2700  OUTPUT
    *       text
    MODULE STATUS_2700 OUTPUT.
      SET PF-STATUS 'BACK'.
    *  SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_2700  OUTPUT
    *&      Module  USER_COMMAND_2700  INPUT
    *       text
    MODULE USER_COMMAND_2700 INPUT.
    OK_CODE = SY-UCOMM.
    CASE OK_CODE.
      WHEN 'BACK'.
        LEAVE PROGRAM.
      WHEN 'DIS'.                                                         "write code for sort up
        loop AT TBL1-COLS INTO COLS.
           COLS-SCREEN-INPUT = 0.
            MODIFY TBL1-COLS FROM COLS.
        ENDLOOP.
        FLAG = 2.
      WHEN 'ENA'.                                                       "write code for sort down
        loop AT TBL1-COLS INTO COLS.
            COLS-SCREEN-INPUT = 1.
            MODIFY TBL1-COLS FROM COLS.
        ENDLOOP.
        FLAG = 1.
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_2700  INPUT
    *&      Module  GET_DATA  OUTPUT
    *       text
    MODULE GET_DATA OUTPUT.
      select carrid connid fldate from SFLIGHT into table itab.
    ENDMODULE.                 " GET_DATA  OUTPUT
    *&      Module  POPULATE_TBL  OUTPUT
    *       text
    MODULE POPULATE_TBL OUTPUT.
        MOVE-CORRESPONDING ITAB TO SFLIGHT.
    ENDMODULE.                 " POPULATE_TBL  OUTPUT
    *&      Module  CHANGE_SCREEN  OUTPUT
    *       text
    MODULE CHANGE_SCREEN OUTPUT.    " use this module if you want to hide the other button
    CASE FLAG.
      WHEN 1.
        LOOP AT SCREEN.
          IF SCREEN-NAME = 'B_ENA'.
            SCREEN-INVISIBLE = 1.
             MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
        LOOP AT SCREEN.
          IF SCREEN-NAME = 'B_DIS'.
            SCREEN-INVISIBLE = 0.
             MODIFY SCREEN.
          ENDIF.
       ENDLOOP.
      WHEN 2.
        LOOP AT SCREEN.
          IF SCREEN-NAME = 'B_DIS'.
            SCREEN-INVISIBLE = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
        LOOP AT SCREEN.
          IF SCREEN-NAME = 'B_ENA'.
            SCREEN-INVISIBLE = 0.
             MODIFY SCREEN.
          ENDIF.
       ENDLOOP.
    ENDCASE.
    ENDMODULE.                 " CHANGE_SCREEN  OUTPUT
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_2700.
    MODULE CHANGE_SCREEN.     " use this if you want to display one button at a time
    MODULE GET_DATA.
    loop at itab WITH control TBL1.
        MODULE POPULATE_TBL.       " populate tbl ctrl
    endloop.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_2700.    " do the sort operations
    loop at itab.
      endloop.
    Hope this helps
    Regards,
    Jayanthi.K

  • I have an iPod Nano 6th Generation for just over three months and the down volume button is sticking.  Does anyone have a recommendation for resolving?

    I have an iPod Nano 6th Generation for just over three months and the down volume button is sticking.  Does anyone have a recommendation for resolving?

    Dont buy this model again, this is the most common problem and i have gone through 4 of these 6th gen nanos all with the same problem.  You can find youtube videos that show you how to fix it yourself but you run the risk of breaking your ipod, also opening the ipod voids any warrently.

  • How do I get data off  my phone? when I plug phone into the wall and hold down the button i can get into photos and messages etc but when I plug into laptop it goes to recovery mode........therefore the data is not yet wiped? HELP!

    how do I get data off  my phone? when I plug phone into the wall and hold down the button i can get into photos and messages etc but when I plug into laptop it goes to recovery mode........therefore the data is not yet wiped? HELP! I got married last week on holidays and have not had a chance to save photos yet.

    Hello there stidhambr15,
    I was researching the issue you are having and recommend a couple of things. First it might be a good idea to reset the device following iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting found here http://support.apple.com/kb/ht1430
    Resetting your device
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    If that doesn't quite get the device going again, I recommend restoring the device.
    iTunes: Restoring iOS software
    http://support.apple.com/kb/ht1414
    Might even be a good idea to turn off the phone, reseat the SIM card, and turn it back on.
    iPhone and iPad: How to remove the SIM card
    http://support.apple.com/kb/ht5163
    iPhone 4 (GSM model)
    iPhone 4S
    Cheers,
    Sterling

  • Why does pressing the down arrow button result in going to the bottom of the page and being nunable to go up or down one line at a time?

    i dont know what to say in way of clarification. when looking at a page i am forced to use the "slide" on the margin which is very sensitive on very long documents instead of the down arrow to move one line. pressing the arrow results in going to the bottom and you cant return using the arrow.

    The arrow to open the tab history of the Back and Forward buttons has been removed in Firefox 4 and later.
    Use one of these methods to open the tab history list:
    * Right click on the Back or Forward button
    * Hold down the left mouse button on the enabled Back or Forward button until the list opens
    You can look at this extension:
    * Backward Forward History Dropdown: https://addons.mozilla.org/firefox/addon/backforedrop/

  • My down arrow button fell off and wont' go back on

    My MBP is about a month old, and today the down arrow popped off, and won't seem to stay on.
    It made me realize that with the new design, the keyboard can't really be replaced, should I go to the Genius Bar, does anybody know what they might do to fix this?
    Message was edited by: jperkinski

    Hi jperkinski,
    Speaking from personal experience, many of the Genius Bars have "spare keys" laying around from old keyboard assemblies and top cases. I know I've had my MacBook keys replaced once or twice and in both cases the Mac Genius was able to get me a new keycap and the little plastic scissor that sits underneath it.
    Definitely head down to your nearest Genius Bar (make sure to make an appointment) and see if they can assist.

  • My down arrow button takes me to the bottom of the page in Firefox. How do I change that

    how to change down arrow key functions

    You may have switched on caret browsing.
    *http://kb.mozillazine.org/accessibility.browsewithcaret
    You can press press F7 (on Mac: fn + F7) to toggle caret browsing on/off.
    *Tools > Options > Advanced : General: Accessibility: [ ] "Always use the cursor keys to navigate within pages"
    *http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    *http://kb.mozillazine.org/Accessibility_features_of_Firefox

  • When using mail, my resize button and my down arrow on the side schroll bar appear in the same position making use of both impossible.

    A line is missing at the bottom of the screen just above the dock window on my macintosh. Using Mac OS X, version 10.6.7

    I indicated that I have this problem too, or at least a related one, but I wanted to add some details. In my case, using gmail, the resize button actually isn't even visible. But when I try to put the mouse on the line-scroll arrow at bottom right, the cursor changes to the resize cursor, and I can resize from there (with the mouse a good bit above where the resize button should be). So I think it's the same problem reported by this user. As indicated, it's impossible to use the line-scroll button in this mode. I don't seem to have the problem on other web pages, or at least not that I've noticed. I just obtained Firefox 4, so I think I've got an up-to-date copy, and I'm running on Windows XP, SP2. And other than this, I *really* like FF4--that tab organization feature is absolutely stunning in its usefulness. Oh, and, in case it matters, I'm also running the gmail under the "pinned tab" option.

  • Naming scrollbar up and down arrow buttons

    I have made my up and down scrollbar symbols to buttons and am following the online video to 'create the scrollbar'.
    Their up and down buttons have the same symbol name (different instance names) but it won't let me get past the symbol name because 'that has already been used'.
    I don't want to continue and name it something else incase it will screw up my actionscript - I know I can just modify my actionscript - but how do they get the same symbol name on a training video???
    And should I ahead and change the symbol name and then just change my script?
    Forrest

    That'll be a tough one to remember... the female part.  And I had my name before Eddie Murphy.
    I think you'll like web design if you have any kind of knack for programming.  I started this career late in life as well--started out  as an artist (doomed to starve), switched to engineering (EE), then pursued IT... but with my first course in web design I became addicted quickly and in the evolution have really enjoyed the puzzles that Flash offers to solve and the things it allows one to create.

  • Scroll Up list and Scroll Down list buttons

    I want to be able to scroll a list without using the scrollbars, but want to use buttons to do this, how can i do this. I don't want any scrollbars, but want to be able to scroll through my JList using the two buttons up and down.
    Thanks

    additional code needed for numpad arrows (if required)
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Testing extends JFrame
      public Testing()
        setLocation(400,300);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        JPanel scrollPanel = new JPanel(new GridLayout(50,1));
        for(int x = 0;x < 50; x++) scrollPanel.add(new JLabel(""+(x+1)));
        JScrollPane sp = new JScrollPane(scrollPanel,JScrollPane.VERTICAL_SCROLLBAR_NEVER,
                                                  JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
        sp.setPreferredSize(new Dimension(100,150));
        getContentPane().add(sp);
        pack();
        final JScrollBar sBar = sp.getVerticalScrollBar();
        KeyboardFocusManager.getCurrentKeyboardFocusManager()
         .addKeyEventDispatcher (new KeyEventDispatcher(){
            public boolean dispatchKeyEvent(KeyEvent ke){
              if(ke.getID() == KeyEvent.KEY_PRESSED)
                if(ke.getKeyCode() == KeyEvent.VK_UP) sBar.setValue(sBar.getValue()-5);
                if(ke.getKeyCode() == KeyEvent.VK_DOWN) sBar.setValue(sBar.getValue()+5);
              return false;}});
      public static void main(String args[]){new Testing().setVisible(true);}
    }

  • Why does the down arrow button scroll content up?

    The new logic/behavior with swiping up/down is now: "you are moving the content, not the scrollbar"
    I can accept this as a somewhat good logic. It makes sense..
    But should'nt the arrow keys behave the same way to make this behavior/logic consistent?
    The arrow key down still scrolls the content up (if you think like that)
    Or does the arrow keys scroll the scroller down.. Well which is it?

    That would change the trackpad behavior, which is not what I'm looking for, but thank you
    I'm just asking about the arrow keys and the logic behind the new natural navigation

  • How do I get Firefox 4 to show the last several pages visited instead of only going back one page at a time? It used to show last 10 or so pages with a down arrow. The down arrow is gone.

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [/questions/816789]</blockquote><br>
    In Firefox 3.6 the back arrow button to go back a page also had a down arrow button that would let you jump back multiple pages. How can I get that to show in Firefox 4?

    The arrow to open the tab history of the Back and Forward buttons has been removed in Firefox 4.
    Use one of these methods to open the tab history list:
    * Right click on the Back or Forward button
    * Hold down the left mouse button on the enabled Back or Forward button until the list opens
    You can look at this extension:
    * Backward Forward History Dropdown: https://addons.mozilla.org/firefox/addon/backforedrop/

  • Down Arrow Blurr in CRM 2013 Ribbon

    Hi,
    I am using CRM 2013 On-Premise.
    See, Down Arrow buttons in the above screen show, all are blurred.
    I dont whats wrongs with it. Any suggestion to resolve this resolution issue ?
    Thanks !!
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    Hi,
    Have you tested accessing your CRM from another browser in order to replicate this bug?
    Could it be your zoom settings are off the default for the current browser?
    Edit: Refreshing the page doesn't help? Perhaps clear the browser's cache?
    Hope that helps,

Maybe you are looking for

  • How to use iMac as a backup drive for TM

    Hello....I recently bought the new macbook...i still have an iMac at home that the rest of the family uses... is it possible to partition the iMac hard drive so that a chunk of it is used for time machine backups....i dont want to use the whole hard

  • Discussion forum layout could be improved

    In each discussion forum, topics are listed a fixed box nested inside several frames surrounded by white space. For example, although Numbers forum has 1,911 topics, with default settings only 15 topics are listed in a 9.2" diagonal box, in the cente

  • Mac stalled at apple logo after using F8 command

    My friend forgot login password on her mac. Me being a PC user, tried to enter BIOS login menu using F8 on system startup on her mac (Lion). Since then her mac is stuck at gray apple logo, won't boot in safe mode as well. Suggestions?

  • HT1351 Can I sync my iPod with my friends library legally?

    I want to listen to my friends music, but I am not interested in breaking the law or circumventing anything.  Can she share her music with me legally by allowing me to sync my iPod with her computer for a time?  I am ok with it erasing my content.  W

  • Passing variables to a report

    Post Author: Swimmy CA Forum: .NET I have a simple application that asks for some information, performs a calculation, and reports the result. I do not need to attach to any database. How do I pass the variables over to a one page report to give the