Use a button to select contents in Jtable

I have a jTable which holding a data list, I need two buttons, one is 'up' and one is 'down', to move selections in the jTable. The idea is if a client don't have a mouse, they can use these two buttons to navigate through the jTable.
Problem One: if the jTable is not selected, how can press a button make the first record been selected?
Problem Two: if the jTable is selected, how can press a button move the selection
I tried to mod ListSelectionModel, but I cannot find a method that does this. I thought if I can get this jTable selected (any record), I probably can move the selection by setting the selectionIndex or some...
Thank you

Darryl.Burke wrote:
I'd still like to know how OP expects the clients to click a button without a mouse. Yes, I know about mnemonics, but if the clients did too, they should surely be able to work out the keyboard navigation as mentioned by WalterLaan.
db<sarcasm>
I know what he can do if their is no mouse.
OP can use the Robot class and keylisteners then move the mouse cursor according to which listener method is called and which key is responsible for the call.
I mean this is so brilliant, can you imagine how much money people will save on buying a mouse if this catches on.
I am telling you this is the future, say good by mouse your history now. Hahahaha
</sarcasm>

Similar Messages

  • Help! Can't use scroll button (to select) when online

    Hi!  If anyone could help me, I would be eternally grateful.
    Just recently, when I go online on my BlackBerry Curve (not sure of the #, but I have a scroll button and not a trackball), I can't push the scroll button to select things.  For example, I couldn't get help for the problem on my phone, because when I typed in my question, I couldn't hit the serach button to ask it! 
    Most links I am able to select by clicking the menu button and selecting "open link", but that doesn't work on submitting information like username/password on blogger or my bank or anything.
    Please help!
    Thank you!
    Larissa

    Hello lchardesty and welcome to the BlackBerry Support Community Forums.
    I would suggest you do what is called a clean software reload. 
    Back up your BlackBerry before you start as all the data will be deleted.
     KB11320 will show you how to do the software reload.
    After the load completes, test the track pad.
    It is suggested to do a selective restore of your data so the issue doesn't re-occur
    KB10339 will show you how to do a selective restore of your data using Desktop Manager 5.0.1 and earlier and KB23680 using version 6.0
    Let me know how you make out.
    -HMthePirate
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Using command button to select query - WAD 7.0

    Hello all
    Can anyone please tell me how to configure a command button (button group) to display a particular query in WAD 7.0?
    Here's what I mean -
    I have a web template with three queries. I have inserted 3 command buttons on the template. I want to assign one button to one query, so that the users can select which of the three they want to view. Which Command do I select in the command wizard to do this? Also, is it possible to hide the other two queries, when one is selected?
    Thanks
    Karen

    Hi,
    Here is one approach - Keep three analysis items in the WT. Assign three different data providers to all three analysis items. If you do not want to show any query when the WT first loads, don't assign any query to the data providers. When a button is pushed, you can use the command SET_DATA_PROVIDER_PARAMATERS to assign a query to a DP so that that query will show up.
    Other commands that will help you would be SET_ITEM_PARAMETERS using which you can hide analysis items and also, you can use the command BACK_TO_INITIAL_DP_STATE on data providers so that they do not show up if they were blank at the start.
    Another way to hide a query is to assign the analysis item to a data provider which is blank.
    For your requirements, you will have to put multiple commands behind each button - you can decide which of the above commands suit you best.

  • Execute program using a button on Selection screen

    Hi Experts,
    I had placed a push button on my selection screen and now i want this button to carry all the behaviour of the std F8 function in terms of validations and execution.
    How can i do this?
    Thanks
    Dany

    Adding to the good answer provided above, you need to put your validation logic in the event At USER-COMMAND. There is where you will process the command (function key) raised by clicking on the toolbar. (assuming you did the step described by Reddy).
    Leonardo De Araujo

  • How to use Radio buttons in WAD to select different condition in a query

    Hi Guru,
    I am new to WAD, I want to use radio buttons in selection screen of query for different selections based on selection criteria. I am aware of executing different queries using different radio buttons. but i want to use single queries for different radio button selections.
    I have found some relevant topic to it but not got exact solution. Please guide me.

    Hi Avinash,
    Drag a DropDown webitem into your template. Under DropDown webitem properties, Data Binding -> Fixed List of Options.
    Fixed Option -> Action -> Command via Command Wizard, Command -> Commands for Data Providers -> Data Provider Commands for Filter Values -> SET_SELECTION_STATE_SIMPLE. Data Provider Affected -> choose the main DP Query here. Characteristic -> choose Employee Group characteristic here as present in your DP Query. Sign -> INCLUDING, Operator -> EQUAL_SELECTION, Equals -> MEMBER_NAME, Member Name -> specify the value here i.e. Employee1 etc.
    Repeat above Fixed Option step for Employee2, Employee3 etc. selections. For 'All' option choose Command CLEAR_SELECTION_STATE with Data Provider Affected as the main DP Query & Characteristic as Employee Group.
    --Priya

  • How to use Radio Buttons in SAP BI 7 for a set of three fields?

    Dear SAP Gurus,
    We are using SAP BI 7. We need to use Radio button to select one field name (out of a set of three fields) which
    appeared on selection screen.
    The scenario is; we have three fields
    1) Field Name A
    2) Field Name B
    3) Field Name C
    Now, we need to select one field(using Radio button) from the above and later the report related to the above
    selected field should be displayed.
    The three reports will be as follows:
    1) Report A
    2) Report B
    3) Report C
    if Field Name A  is selected then Report A  will be displayed,
    if Field Name B  is selected then Report B  will be displayed and
    if Field Name C  is selected then Report C  will be displayed.
    To display the report we have two cases;
    1) There will be a common selection screen and all the three reports will come in single workbook but in seperate worksheet.
    2) There will be a common selection screen and all the three reports will come in same worksheet, one after the other.
    Is it possible to create the report in this manner, if yes, please suggest the steps.
    Regards,
    DV.

    I think you would just use commands to do the following:
    1. Hide report Analysis Item 2 and Analysis Item 3 if the 1st button was pushed.
    2. Hide report Analysis Item 1 and Analysis Item 3 if the 2nd button was pushed.
    3. Hide report Analysis Item 1 and Analysis Item 2 if the 3rd button was pushed.
    Hope that helps...

  • Is it possible to Select/Deselect All checkboxes using single button

    Hi all,
      I want to Select/Deselect all check boxes in my table using single button. I tried using single button ,but it is not working correctly for all the cases.
    Thanks&regards,
    karthik.

    Hi karthik..
    You can do this ..
    1.Create boolean variable..
    2.Create Select all button..
    write this code in Select all action ..
    IPrivate<View>.I<Table>Node tNode=wdContext.node<Table>().;
    for(int i=0;i<tNodesize();i++)
    tNode.get><Table>ElementAt(i).setCheck(true);
    Like Deselect all..
    IPrivate<View>.I<Table>Node tNode=wdContext.node<Table>().;
    for(int i=0;i<tNodesize();i++)
    tNode.get><Table>ElementAt(i).setCheck(false);
    Urs GS

  • How to code for select all& deselect all?using menu buttons

    hai,
    i have generated a report with a single field from a database table and
    i have a checkbox for each record/item in the report.
    i need help in the following ..
    now that i have menu buttons say "select all" and "deselect all"..
    if select all is clicked then all checkboxes should be selected.
    if deselect all is clicked, then all checkboxes should be deselected
    i know that we have to use functional code and use case sy-ucomm etc.
    when "selectall"  etc..
    can someone help me how to code for this to work exactly?

    it did not work for the code u had suggested...
    plz check it out and send me the exact working code..
    REPORT  ZINTRACTIVE_PROJ                        .
    TABLES : SFLIGHT.
    DATA : BEGIN OF IT OCCURS 0,
           CARRID LIKE SFLIGHT-CARRID, FLDATE LIKE SFLIGHT-FLDATE,
           END OF IT.
    DATA : BOX TYPE C,
           LINE TYPE I.
    SELECT CARRID FLDATE FROM SFLIGHT INTO TABLE IT.
    LOOP AT IT.
    WRITE : / BOX AS CHECKBOX, IT-CARRID.
    ENDLOOP.
    LINE = SY-LINNO .
    SET PF-STATUS 'SELECT'.
    AT USER-COMMAND.
    CASE SY-UCOMM.
      WHEN 'SELECT'.
          DO LINE TIMES.
            READ LINE SY-INDEX FIELD VALUE BOX.
            IF BOX = 'X'.
               NEW-PAGE.
               WRITE : / IT-FLDATE.
            ENDIF.
          ENDDO.
      <b>WHEN 'SELECTALL'.
          LOOP AT IT.
            IT-CARRID = 'X'.
            MODIFY IT TRANSPORTING CARRID WHERE CARRID = IT-CARRID.
            EXIT.
          ENDLOOP.
      WHEN 'DESELECTALL'.
          LOOP AT IT.
            IT-CARRID = ''.
            MODIFY IT TRANSPORTING CARRID WHERE CARRID = 'X'.
            EXIT.
          ENDLOOP.</b>ENDCASE.

  • Related selects using radio button

    Hi All,
    I wanna use radio button with three options and one dropdown
    box .
    my problem is i wanna choose option from radio button and run
    the related query to get the values into dropdown box and then
    choose the value from drop down and submit it to another page.
    Any ideas ? please help me.
    Thanks in advance

    Google coldfusion related selects and adjust the javascript
    so that you are using radio buttons instead of a select.
    I recently posted my own code. Look for the keyword
    etiologydetail.

  • I have a slide with 4 smart shapes that I am using as buttons. If I select include in quiz, the On Success branch does not execute. If I deselect include in quiz, the On Success branch executes. What am I missing?

    I have a slide with 6 smart shapes that I am using as buttons. If I select include in quiz, the On Success branch does not execute. If I deselect include in quiz, the On Success branch executes. What am I missing?

    What setting do you have in Quiz > Settings > Required?  If it's not set to Optional, do that.

  • Muse page content "jumps" when using menu button

    I Created a simple portfolio website in Adobe Muse. Two pages (projects and contact) and for both using the same underlaying stramien page (don't know the English word for that). I added a menu widget to navigate between the two pages. Works fine, but whenever I use the menu button the page content (text and/or pictures) make a little vertical jump before they are in their right position. Obviously this little "jump" is not like it is supposed to be. The website is not yet published or online, cause it's not finished yet, but the problem occurs when I preview what I've made so far.
    What could be the cause of this problem and how can I repair it ??
    Alexander

    are you using Chrome?
    try loading my page, www.stacystechpubs.com using Chrome.
    Then you see a bar of menu items across the page (home, who am I, terms,...) try clicking on one, then the next one, then the next one. You'll see the box 'Stacy's Tech Publications' jumps when you click on a link.
    If you still aren't sure what I mean I need to take a screen capture video and upload it.

  • How to Add Push Button On Selection Screen

    Hi Experts,
    How to add Push button on Selection Screen.
    Points will b rewarded for useful help.
    Bohra.

    Hi,
    To create a pushbutton on the selection screen, you use:
    SELECTION SCREEN PUSHBUTTON [/]<pos(len)> <push>
    USER-COMMAND <ucom> [MODIF ID <key>].
    The [/]<pos(len)> parameters and the MODIF IF addition have the same function as for the formatting options for underlines and comments.
    <push> determines the pushbutton text. For <push>, you can specify a text symbol or a field name with a maximum length of eight characters. This character field must not be declared with the DATA statement, but is generated automatically with length <len>. The field must be filled before the selection screen is called.
    For <ucom>, you must specify a code of up to four characters. When the user clicks the pushbutton on the selection screen, <ucom> is entered in the UCOMM of the SSCRFIELDS interface work area. You must use the TABLES statement to declare the SSCRFIELDS structure. The contents of the SSCRFIELDS-UCOMM field can be processed during the AT SELECTION-SCREENevent.
    Ex.
    REPORT DEMO.
    TABLES SSCRFIELDS.
    DATA FLAG.
    SELECTION-SCREEN:
    BEGIN OF SCREEN 500 AS WINDOW TITLE TIT,
    BEGIN OF LINE,
    PUSHBUTTON 2(10) BUT1 USER-COMMAND CLI1,
    PUSHBUTTON 12(10) TEXT-020 USER-COMMAND CLI2,
    END OF LINE,
    BEGIN OF LINE,
    PUSHBUTTON 2(10) BUT3 USER-COMMAND CLI3,
    PUSHBUTTON 12(10) TEXT-040 USER-COMMAND CLI4,
    END OF LINE,
    END OF SCREEN 500.
    AT SELECTION-SCREEN.
    CASE SSCRFIELDS.
    WHEN 'CLI1'.
    FLAG = '1'.
    WHEN 'CLI2'.
    FLAG = '2'.
    WHEN 'CLI3'.
    FLAG = '3'.
    WHEN 'CLI4'.
    FLAG = '4'.
    ENDCASE.
    START-OF-SELECTION.
    TIT = 'Four Buttons'.
    BUT1 = 'Button 1'.
    BUT3 = 'Button 3'.
    CALL SELECTION-SCREEN 500 STARTING AT 10 10.
    CASE FLAG.
    WHEN '1'.
    WRITE / 'Button 1 was clicked'.
    WHEN '2'.
    WRITE / 'Button 2 was clicked'.
    WHEN '3'.
    WRITE / 'Button 3 was clicked'.
    WHEN '4'.
    WRITE / 'Button 4 was clicked'.
    WHEN OTHERS.
    WRITE / 'No Button was clicked'.
    ENDCASE.
    This example defines four pushbuttons on a selection screen that is displayed as a
    dialog box. The selection screen is defined in a statement chain for keyword
    SELECTION-SCREEN.
    If the text symbols TEXT-020 and TEXT-040 are defined as 'Button 2' and 'Button 4',
    the four pushbuttons appear as follows on the selection screen displayed as a dialog box.
    Regards,
    Bhaskar

  • Cannot use back button in IE

    Dear Sir,
    We upgrade from EP6 SP2 to EP6 SP14 , we have the problem that we cannot use backup button in Internet Explorer menu , when clicked , it showed " The paged has been expired" .
    Do you have any suggestioned?
    THanks and best regards,
    Vimol

    Hi Vimol,
    There are two ways to solve this:
    1. SP14 provides a feature called <b>LightWeight Framework Page</b> which supports the Back functionality (from Browser).
    2. You may use Breadcrumbs. To set/enable this
    i> Navigate to <b>Portal Content</b> -> <b>Content Provided by SAP</b> -> <b>End User Content</b> -> <b>Open the Default Framework Page</b>
    ii> Select <b>Page Title Bar</b> and click <b>Properties</b>.
    Choose "<b>Show all</b>" in its Property Editor and enable "<b>Show Breadcrumb</b>"
    iii> Lastly Save all changes.
    Warm Regards,
    Ritu
    <i>PS: If this answers ur query, kindly provide points.</i>

  • How to check selected content on page

    Hi all,
    I would like to create plugin that works with selected content on document. Plugin should do following: user selects some frame, graphic content that is placed on document. Than he opens my plugin and click on button. After button click I must check if something is selected (it would be only graphic items, not table and text), then I would like to get information (on which page is placed, is in the frame picture, dimension of frame...) from selected item. So I would like to ask you what is the best approach for that.
    Right now I have selection manager and from that I get ILayoutSelectionSuite and dont know what to do next, I have been looking thru adobe documents, but didnt find any article about it...
    thx

    Hi all,
    I have a little problem with calling my selection suite. I have following hierarchy:
    In STButtonAction I handle button clicks, when user select button I would like to chech is is something selected and if yes, than I would like to get from that selection some information about it. I placed in ASB virtual method called MyTestMethod(ISelectionManager *myManager), in Layout CSB I wrote its implementation:
    void STSuiteLayoutCSB::MyTestMethod(ISelectionManager *myManager)
      InterfacePtr<IGeometrySuite> itemGeometry(myManager, UseDefaultIID());
              PMRect bounds = itemGeometry->GetSelectionBounds() ;//what to use here??
      cout << "Something just happend...";
    Now I have 2 problems, first: when I get Interface pointer to IGeometry suite, it dont know its method GetSelectionBounds (I have noticed, that this method is virtual, so It does nothnig and somewhere must be its body writen...) any tips, how to get this working??
    And my second problem is, How to call my suite?? When I try something like this:
    Utils<ISelectionUtils> iSelectionUtils;
              if (iSelectionUtils != nil) {
                             ISelectionManager* iSelectionManager = iSelectionUtils->GetActiveSelection();
                             if (iSelectionManager != nil)
                                                 InterfacePtr<ISTSuite> iLayoutSuite(iSelectionManager, UseDefaultIID());
                                                 if (iLayoutSuite !=nil)
                                                                     iLayoutSuite->myMethod(iSelectionManager);
    It tells me that, ISTSuite was not declared in this scope... I think, that I am doing something wrong...
    thx for any tips

  • How do you grey out/disable fields under a radio button if another radio button is selected in Adobe Acrobat XI Pro?

    How do you grey out/disable fields under a radio button if another radio button is selected in Adobe Acrobat XI Pro?
    I’m creating a form where the user has three options to make a payment.
    1. charge to my credit card
    2. charge associated costs to bank account
    3. By cheque or money order
    My Problem is, under each option, there are required fields that has to be filled out. So if the user picks the first option, charge to my credit card, they would fill out the required fields (credit card number, expiration date etc.). But when they click submit button to submit the form, it won’t let them, because there are required fields under the second option. Also, I have the radio buttons for the three options setup so that if the user holds the shift key and clicks a radio button, it unchecks it. So what I'm trying to do is this: If the user selects the radio button for option 1, the other two options are greyed out/disabled. And if the user holds down the shift key and clicks radio button for option one again, it unchecks the radio button and the other two options are available again. Is there a way to grey out or disable the two other payment options when the other one is picked. I’m assuming I will have to use javascript, but what would the coding be and which field do I write it under?
    Thanks in advance guys

    You will have to use custom JavaScript to access the various properties of the field object.
    The radio button group has a value. When no button is selected that value is "Off". When an individual button has been selected the value for the group will be the option or export value for that individual button.
    Once you have determined the button selected, then you will know the form fields that need to be made required. You use JavaScript to access those fields and change the "read only" property to false, and set the "required" property to true. For the fields associated with the other options, those fields should be reset, made read only, and have the "required" property set to false.
    Disabling (graying-out) Form Fields
    >> Also, I have the radio buttons for the three options setup so that if the user holds the shift key and clicks a radio button, it unchecks it.
    Radio button in a PDF do not work that way. Only check boxes can be unchecked by clicking on one that has been checked.
    If you plan the coding for the Mouse UP action to test for all possible options and code for each of those options you should have what you want.
    If you want actual code you need to provide a lot more details.
    It is even possible to perform some credit card and bank routing number validations with JavaScript and some check digit formulas.

Maybe you are looking for