What isSelectionEmpty()'s function in Sun's Tutorial?

I was searching for the function of isSelectionEmpty and the api said
it is true when no indices are selected. But then what is the reason for this
method to be executed at the Sun Tutorial's code below:
Can anyone kindly elaborate on this method's use here I mean what's the condition when no indices will be selected?
webAddress:
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
rowSM.addListSelectionListener(new ListSelectionListener() {
    public void valueChanged(ListSelectionEvent e) {
        //Ignore extra messages.
        if (e.getValueIsAdjusting()) return;
        ListSelectionModel lsm =
            (ListSelectionModel)e.getSource();
        if (lsm.isSelectionEmpty()) {
            ...//no rows are selected
        } else {
            int selectedRow = lsm.getMinSelectionIndex();
            ...//selectedRow is selected
});I searched the web and the forum couldn't find the answer for my question. So any help will be appreciated.

Let's say you have a row selected. On a JTable (as on a JList), you can deselect that particular row without having to select another one. You do that by control+click (for the Windows platform) on that particular row. The result is a change in the list selection model with a resulting empty selection, hence the corresponding ListSelectionEvent being fired.
Does that answer your question?

Similar Messages

  • What is formatnum function?

    What is formatnum function?

    Hi,
    check out the link
    http://java.sun.com/j2se/1.3/docs/api/java/text/DecimalFormat.html
    the formatNum is the replica of DecimalFormat the functionality if same
    Regards,
    Prakash

  • How to find what planning sequences/functions update data in a cube?

    Hi, Experts:
    We have a real time cube being updated by planning sequences/functions. How can I find what planning sequences/functions are updating this cube?
    Thanks,
    Jenny

    Hi,
      You can go the transaction code: rsa1 and then select "Meta data Repository" option on the left side.
    You can use Meta data repository to view the dependent objects for a infocube or any other BW object.
    In your case, you can select "Infocube" option on the left side and then go on selecting your infocube.
    Now you will get all dependent objects created on this infocube, which will include your plannign functions also.
    Refer top the following link for more details on "Meta data Repository",
    http://help.sap.com/saphelp_nw04/helpdata/en/4e/ea683c25e9096de10000000a114084/frameset.htm
    Regards,
    Balajee

  • What are the functions of tables in ods

    Hi,
    what are the functions of tables in ods.
    new data table
    change log table
    active data table.
    How 0recordmode work with these 3 tables.
    and how sid will work with ods?
    can anyone give detailed explanation.
    please do not give sap help links.
    Thanks,
    madhu
    Thanks

    Hi,
    new table holds the "new" loaded data in ODS. If you start a new request to load data in your ODS, it firstgoes to table new data. Then you normally activate data either manually or by process chain. Then the daa will be copied over from new to active table. The change log table holds the delta information, what will change during activation or which records will be overwritten with new data or which data is new at all.
    With recordmode you can specify which update mode will be used or more excalty which delta mode will be used. SID is necessary for master data, because ODS will only hold the SID values of the used characteristivcs and not the characteristic values itselfs. It's part of normalization used in BI.
    For more details I recommend to look here in SDN, go to a class or read help.sap.com pages.
    Regards,
    Juergen

  • What are the functions of all the keys on my (not wireless) keyboard?

    what are the functions of all the keys on the (non wireless) keyboard?

    System Preferences > Language and Text > Input Sources tab. Top of the left column, tick (check) "Keyboard and Character Viewer", Bottom of window next to search field, tick "Show input menu in menu bar"
    System Preferences > Keyboard > Keyboard tab; tick "show keyboard and character viewers in menu bar"
    If you open Keyboard Viewer and press the alt (option) key, the location of the diacritical marks and common symbols will be revealed. Note that five of them are highlighted in orange; these are the ones which can be used with multiple  letters (acute, umlaut, gràve, circumflex and tilde)
    Shift+Alt will show more.

  • What is the function of FS chart of account (T. Code: OC03)

    Hi all,
    What is the function of FS chart of account (T. Code: OC03)
    How to post entries in this FS Chart of account (provide T. Code)
    Where we use this FS Chart of accounts
    Thanks and Regards,
    Kumar

    Thanks for you’re reply
    What is mean by EC CS and how to test whether FS Chart of account working or not?
    Provide path or Transaction Code
    Thanks and Regards,
    Kumar

  • What sort of functionality can I expect from Time Capsule in a Windows 7 environment?

    I'm looking to use time capsule as a backup for all of our families photos and such. What kind of functionality can I expect from Windows 7 and Time Capsule.

    You can use it as a network drive. You can also use it for automatic back-up purposes.

  • In Mail, how do I get rid of the blue&white button that appears extreme right of Mail addressing pane (To)? What's its function?

    In Mail, how do I get rid of the blue&white button that appears extreme right of the addressing pane (To)? What's its function?

    malmaloney wrote:
    Thanks Meg. Trouble is it disrupts emails addresses being keyed in - that is, not from the Contacts book...
    How so?  You trying to type over it? If you keep typing the addresses drop below to next line.  I have tried and tried to make it disrupt anything without success.

  • What kind of function(s) (in dlls) have to be call by a Labview application to be able to manage the PC's power supply

    Assume that a Labview application is running on a PC. The PC has a DC battery. When a "power off" is detected on the AC line, data should be saved, Labview application and Windows should be closed.
    What kind of function(s) (of which dll) should be called by a Labview application to realize this data and system management in a safe manner ?

    UPS (Uninterrupted Power Supply) systems can send messages to the PC through the serial port when the AC is lost and when battery is low. I'm not sure how this message is sent but I suspect they use Windows Messaging. If you could find this out, you could write your vi to constantly look for this message and shutdown when it sees the message.
    - tbob
    Inventor of the WORM Global

  • What are the functional differences between the iPhone and the iPod Touch, barring of course the differences in service requirements.

    What are the functional differences between the iPhone and the iPod Touch, barring of course the differences in service requirements.

    For one, their form factors are slightly different as the iPhone has a bit more squarish body whereas the iPod Touch has a tapered back to it. 
    The iPhone also has much better front and rear cameras. Exact details as to the difference in megapixels depends on whether or not you talking about the iPhone 4 or 4S.  If you would like to get more details, you can always view
    each models specs on Apple's online store.
    See here for a better explanation.
    http://en.wikipedia.org/wiki/IPod_Touch#Comparison_to_the_iPhone
    I'm sure others will chime in with other things as well.
    B-rock

  • What is the function of _xdb and _xpt services in oracle 10g database.

    what is the function of xdb and xpt services in oracle 10g database.?

    Hi,
    If you are troubleshooting check the below link too:
    Issues installing.  Listener not working
    Best regards,
    Rafi.
    http://rafioracledba.blogspot.com/

  • What is the Function module in 4.5B ?

    Hi,
    One Function Module F4_CUSTOMER_PROJECT is avilable in 4.6C but not avilable in 4.5B. What is the Function module in 4.5B ?
    Waiting for quick response.
    Best Regards,
    Bansidhar

    hi
    good
    try this function module
    POPUP_TO_FETCH_ONE_VALUE
    thanks
    mrutyun^

  • What is the function of "Name Server"?

    We have a two server Cluster.  Each server runs a SIA Node with a CMS and all of the typical Servers.
    On Server1, if I look at the Metrics for any of my Servers (except CMS) it looks like this:
       Machine Name:  Server1.domain.com
       Name Server:  Server2.domain.com:6400
    On Server2, it looks like this (all local):
       Machine Name:  Server2.domain.com
       Name Server:  Server2.domain.com:6400
    I'm trying to understand why the servers on Server1 have a Name Server on the other side of the Cluster.  What is this function?  Is this correct?  Does it have anything to do with where the IFR/OFR is running?  Or maybe the sequence on which server starts first?
    The CMS Server on both of my Servers uses the Cluster Name for Name Server.

    Richard,
    If the BO Application is installed on single machine, It could be called standard/standalone installation.
    If the BO Application services scattered across the different system then called "Extended/Distributed Environment". When BO applications are scattered different system is referred as a NODE.
    I guess your BO Application is deployed on 2 nodes, In order to bind two different BO application systems together SAP has given wonderful concept called clustering.
    Cluster will bind 2 or more applications with single (CMS)repository and single IFRS/OFRS destination.
    Whenever you install BO Application, it asks you want to standalone installation or you want to join existing cluster.
    In your environment. The second machine has got BO installed first and first machine has got installed second while installing second time on first machine it had asked to whether you want to join existing cluster then your BO admin has been given second machine.
    Thats why you would able to see second machine nameserver on both machines
    Usually the BO Application servers are distributed based on their category.
    The BO4 platform mainly  categorised as below
    1. Web Application tier (Tomcat): Web Application tier is the tier that hosts server side components to handle user requests from Client tier and pass to Intelligence tier of underlying system for processing.
    2. Intelligence tier (BO services) is heart of Business Objects Enterprise system. It handles user requests, navigates them to appropriate server, maintain security information, audit information and stores report instances. BOE intelligence layer is composed of Central Management Server (CMS), File Repository Servers and Event Server.
    3. Processing tier ( BO services) interacts directly with database and generates reports. Processing layer is composed of  Job Servers,  Web Intelligence processing servers, Crystal processing servers, Dashboard servers.
    As best practices for the better performance, we need to have Distributed deployment( each tier needs to be placed in each server) for better performance.

  • What is the function to change paragraph styles?

    I'm trying to make a simple script that changes a raw data file that has preset Paragraph style already in the exported data from a HTML calender, and once its copied over into Indesign it changes the already existing paragraph style into a diffrent paragrph style?
    is this a simple script, I got no idea what the script function is to make the change of paragraphs.

    Would this work? or do I got the wrong function commands?
    var myInDesign = app
    var myDocument = app.activeDocument
    var myDocName = myDocument.name
    app.findParagraphStyle.caseSensitive = false;
    app.findParagraphStyle.wholeWord = false;
    app.findCharacterStyle.wholeWord = false;
    app.findCharacterStyle.caseSensitive = false;
    app.findParagraphStyle.findWhat = "SN.outabout.DAY-Gray";
    app.changeParagraphStyle.changeTo = "SN.Holiday-Day_of_the_week";
    app.documents.item(0).changeParagraphStyle();
    app.findParagraphStyle.findWhat = "SN.outabout.DATE";
    app.changeParagraphStyle.changeTo = "SN.Holiday-Month_and_Day";
    app.documents.item(0).changeParagraphStyle();
    app.findParagraphStyle.findWhat = "SN.listingsLT";
    app.changeParagraphStyle.changeTo = "SN.Holiday-Paragraph";
    app.documents.item(0).changeParagraphStyle();
    app.findCharacterStyle.findWhat = "SN.listingsBOLD";
    app.changeCharacterStyle.changeTo = "SN.Holiday-Title_Paragraph";
    app.documents.item(0).changeCharacterStyle();
    //myInCopy = CreateObject("InCopy.Application.CS3")  //Not sure if this would work, just crafting idea's.
    //var myDocument = myInCopy.ActiveDocument
    //var mySelection = myInCopy.Selection.Item(1)
    //var myStory = MySelection.ParentStory
    //var myText = myStory.Paragraphs.Item(1)
    //myStory.CheckOut
    //myText.ApplyParagraphStyle myDocument.ParagraphStyles.Item("zAPPROVED"), True
    //myStory.CheckIn
    Can I just do this with like a Nested If, then Statement?

  • What is the function module which uploads excel file data into tcodes

    Hi,
    i want to upload data in cs01 tcode.
    but data is excel sheet while i am trying to use gui_upload it is not being possible for me to upload data.
    can any one tell me what is the function module?
    can any send me the steps how to uplaod data if it is in excelsheet?
    thanks & regards
    naveen
    Moderator message: FAQ, please search for available information before asking.
    locked by: Thomas Zloch on Aug 18, 2010 1:46 PM

    Hi,
       Try the below sample code u ll get an idea of uploading using 'TEXT_CONVERT_XLS_TO_SAP'.
    REPORT  zupload_excel_to_itab.
    TYPE-POOLS: truxs.
    PARAMETERS: p_file TYPE  rlgrap-filename.
    TYPES: BEGIN OF t_datatab,
          col1(30)    TYPE c,
          col2(30)    TYPE c,
          col3(30)    TYPE c,
          END OF t_datatab.
    DATA: it_datatab type standard table of t_datatab,
          wa_datatab type t_datatab.
    DATA: it_raw TYPE truxs_t_text_data.
    At selection screen
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          field_name = 'P_FILE'
        IMPORTING
          file_name  = p_file.
    *START-OF-SELECTION.
    START-OF-SELECTION.
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
        I_FIELD_SEPERATOR        =
          i_line_header            =  'X'
          i_tab_raw_data           =  it_raw       " WORK TABLE
          i_filename               =  p_file
        TABLES
          i_tab_converted_data     = it_datatab[]    "ACTUAL DATA
       EXCEPTIONS
          conversion_failed        = 1
          OTHERS                   = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    END-OF-SELECTION.
    END-OF-SELECTION.
      LOOP AT it_datatab INTO wa_datatab.
        WRITE:/ wa_datatab-col1,
                wa_datatab-col2,
                wa_datatab-col3.
      ENDLOOP.
    Thanks & Regrads,
    Neela.

Maybe you are looking for

  • Adobe Bridge CC im Hintergrund starten

    Guten Tag zusammen Ich habe vor kurzem ein Upgrade auf Photoshop CC und Bridge CC gemacht. Auch hier wollte ich, wie vorher bei CS5, wieder die Bridge im Hintergrund laufen lassen, damit ich in PS die MiniBridge verwenden kann. Also habe ich in den V

  • Database table/FM to find relation between plant and company code in SRM

    Hi, I have a requirement where I need to determine the relation between the plant and company code in SRM. The plant and company code both belong to R/3. We are replicating the plant by using the report BBP_LOCATIONS_GET_ALL. This plant is now availa

  • Credit managment against payment terms  and credit limit

    Dear All, I have two query against credit management 1   Can We maintain credit managment as per payment days. My client want system should give bolck as per payments days,say if payment terms is 30 days and within 30 days customer has not made payme

  • Intel & NetBoot won't play well together

    I've got an assortment of Intel iMacs, MacBooks, & MacBook Pros. I created an image of one of the iMacs with NetRestore 3.3.4 and threw it on the server (Xserve G5, 2.0, X.3.9). Thing is: None of the Intel Macs see it, but every PPC box I've tried se

  • Runtime Error: CONVT_NO_NUMBER with MM01 BDC

    Hi All, I am creating Material Master using Call transaction Method for MM01 Tcode. I am passing the value called Standard Price (MBEW-STPRS) in the BDC. Standard price will be like 100.00 (Hundred Rupees) While passing this value, I am getting Runti