How to add events in JTable fields

Hello friends i m working with file transfer client server project in my college.In my client part i have used JTable with AbstractTableModel.
In my JTable it list the current directory files and directories under current directory .
now how can i add events to the the directories that it shows on JTable so that when i click on directory it displays files under that selected directory.
can anyone help me in that.
I will send you my code for that project if anyone can help me.
please help me to do that

You can handle row selections with selection listener but if you want to handle double clicks you can use something similar to this:
table.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent e)
int column = table.columnAtPoint(e.getPoint());
int row = table.rowAtPoint(e.getPoint());
Object cellValue = table.getValueAt(row, column); 
// Insert files below clicked row
});Please, be more patient in the future -you would probably get an answer if you just posted to any of these two forums.

Similar Messages

  • How to add a User Defined Field in OUBI

    Dear Experts
    I would like to find out how to add a user defined field into OUBI from a Customer Care & Billing source system. If anyone could list the steps involved or point me toward a source of documentation that sets out the steps involved it would be much appreciated.
    Cheers
    Tim

    Is there anyone out there who has had experience using OUBI with CC&B?

  • How to Add a user defined field in transaction-PKMC?

    Could anyone tell me the step by step process of how to add a user defined field in transaction-PKMC?
    Moderator message: please do some research before posting.
    Edited by: Thomas Zloch on Jan 16, 2012

    Is there anyone out there who has had experience using OUBI with CC&B?

  • How to add event to calendar?

    how to add event to calendar?  No plus sign at top of window.

    See the user guide:  http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • How to add Material type(MTART) field on Selection screen of MB5B transaction code.

    Hi All,
        Please let me know how to add material type field on selection screen of MB5B transaction
    For that i made copy ZMB5B_COPY of original report RM07MLBD.
    Thanks in adv .
    Samadhan

    Hi,
    Once you copied the standard report to Z report, you can MTART in selection screen like below.
    and in order to inlcude the same in programming logic, we have three option.
    1) Check all related select queries, and include MTART in SELECT query using inner join with MARA.
    2) In START-OF-SELECTION event fill MATNR as shown below.
    3) If user entered any value in MTART, then before displaying the report just check material type of each material in the final internal table(which is used to display report) delete enteries from internal table accordingly.
    START-OF-SELECTION.
    IF MTART[] IS NOT INITIAL AND MATNR[] IS INITIAL.
        SELECT MATNR FROM MARA INTO MATNR-LOW WHERE MTART IN MTART.
          MATNR-OPTION = 'EQ'.
          MATNR-SIGN = 'I'.
          APPEND MATNR.
          CLEAR MATNR.
        ENDSELECT.
    ENDIF.
    The above option has one limitation: The selection screen variables has some restriction, please read the below thread.
    Facing problem in select statement dump DBIF_RSQL_INVALID_RSQL CX_SY_OPEN_S
    Getting Dump in the select query has more than 2000 entries
    Hope this will work for you .
    regards,
    Rajesh Sadula.

  • How to add additional tab or fields in ME21n

    Hi all.
    I included some fields in EKKO table.
    I want to add these fields in ME21n, ME22n, ME23n Header screens.
    How to add?
    I can't find screen exit and user exit.
    Plz, let me know how to do in detail.
    Regards,
    nam
    Message was edited by:
            Kil Nam Kim

    Hi
    It is very much possible. Please discuss with your development team with the exact requirements. They should be able to do it with screen exits.
    Reward if this helps.

  • How to add and hide more fields in PPM?

    Hello,
    Im new to this tool and I would like to know how to add and/or hide customized fields. I've only know that Its somewhere under SPRO > Global Enhancements to Project Elements but Im a little bit lost there. Can somebody explain to me with details how to do this and also, does this need a specific access of developer to do this customization?
    As this is a basic need for all, anybody that is new on the tool and search for this will have a good reference on this thread.
    Thanks in advance.
    Many regards!

    The path is SPRO > Global Enhancements to Project Elements > Setup field control.Herein,once you select the field control you may proceed towards defining the conditions that influence the same. A step by step approach is explained in the below article  that will aid you to change properties of custom fields.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/3053cee2-4bca-2d10-38ae-efff39ad248e
    Regards,
    Pradeepkumar Haragoldavar

  • How to add a new metadata field to iPhoto where new field is calculated as age in years and month based on a specific date and the date photo was taken ? I want to calculate and display the age of my two kids on every photo.

    Hi
    How can I add 2 new metadata-fields to every photo in iPhoto ?
    The new fields should state the age of my kids in years and months based on the date that they were born and the date that photo is taken.
    Exampel:
    My son is born 01.01.2010
    My daughter is born 01.01.2012
    Photo taken by data
    Aage of son
    Aage of daughter
    01.07.2011
    1 year 6 month
    not born yet
    01.01.2014
    4 year 0 month
    2 year 0 month
    I would like to be able to search by kids age and get the info displayed when doing slideshows.
    How to do this in iPhoto ?
    Any alternatives to accomplish the same ?
    Kind regards

    It can't be done with iPhoto.  There are some DAM (digital asset management) applications that can write to other IPTC fields that iPhoto can't read. One such app is Media Pro 1.
    However you would have to calculate the age for each date and add it to one of the fields. There are online age calculators that can do that for you: Age Calculators
    If you go thru that much trouble then use iPhoto, make the calculations and add the age to the Description field.  Then you can use Smart Albums to search for 1year 6 month text.
    OT

  • How to add search help for field in ALV object

    Hello,
    In a program, we use ALV object ( container) to create a liste like : field1, field2 .. but when display we do not have search help for this . Could you please help me how to add match code in this case for field 1 and field2, We use set_table_for_first_display
    Thanks,

    Hi,
    when you define your field catalogue you can create data elements with search help in se11 and use them for field 1 and field 2.
    But maybe it is enough to use data elements belonging to a domain with a value help and to set field F$AVAILABL in the field catalogue or to fill the name of the field CHECKTABLE.
    Regards,
    Klaus

  • How to add a custom Project field in the "OData Projects Data.odc" connection file? Project server 2013

    Hi,
    I created a project Enterprise field named "Countries and Cities" which contains a lookup table with information such as "USA.Seattle". How can I add this field in the oData connection file?
    Thanks 

    Paul,
    How do you write the custom field name
    "Countries and Cities" which contains 2 spaces?
    I always get the error:
    "We couldn't get data from the Data Model, Here'is the error message we got:
    The content of the data feed is not valid for an Atom feed."
    Thanks

  • How to add order reason code field to selection screen of VL10

    Hi,
       How to add Order reason code(vbak-augru) to the selection screen of VL10.
      1. How to find enhancement for it?
       2.I want to display Order reason code field on output list also?
      3.Pls give steps i am new to enhancements
    thanking u advance...
    surya

    Hi,
    there is no user exit available for this report program, one alternative is copy the program associated with this standard program i.e. RVV50R10C to a Z program and modify it as per your requirement or if you want to modify the standard program you need access key.
    Regards,
    Raghavendra

  • How to add a serail no field in components screen in Subcontracting PO

    I need to Create Subcontract PO With BAPI_PO_CREATE1.Its working fine (With Batch).
    My requirement is I need to map one more extra field as Serial No in the Component SCreen.
    How can i add the Serail no field in the Subcontractiong with Components Screen and How to Update that with BAPI.
    Anybody knows the solution,let me know.
    Edited by: ksampath on Feb 8, 2011 3:12 PM

    Thanks for early response Dan.
    As per the document (It is available at  http://www.****************/Tutorials/ABAP/XD01/XD01.htm),
    1) I created the screen group, I created the Badi implementations
    2) Created the Implementation by giving a name and added code the method CHECK_ADD_ON_ACTIVE. and activated it
    3) agian using  Business Add-in: Customer Subscreens  , i created one more implementation and in that added code to GET_TAXI_SCREEN  method. before this i created a screen with a field.and i created a function pool and activated everything.
    4) after everthing i added the field in the kna1 table. when i execute the xd03 transaction code,  i can able to see my own tab ( which i was created) on the screen, and i am able to see the field with blank.
    Now my questions are:
    1) How to write the logic to get the field information from the kna1 when i enter the transaction xd03/.
    2) how to save the field values to kna1 database table when i open it in change mode(xd02) and changed the value.
    and where to write the logic?.
    Please provide me the code snippet if you have any.
    appriciate for your early response.
    thanks again.
    kp

  • Report Painter: How to add new(customer specific) field to CCSS table

    Dear Experts,
    We have requirement to display the orders based on Profit center or Profit center groups in report painter. So in report library(6O1), we want to add fieild PRCTR or any customer specific field(ZPRCTR) to CCSS table. Could you please let us know how to add field ?
    or is possible to add customer specific field(ZPRCTR) in CCSS and link that field to Profit Cetner(PRCTR) and profit center group.
    Please help us..
    Thanks in advance

    You can check the below OSS notes:-
    <https://service.sap.com/sap/support/notes/929889>
    <https://service.sap.com/sap/support/notes/522581>
    <https://service.sap.com/sap/support/notes/43493>
    Regards,
    Gaurav

  • How to add data into JTable

    How can I add data into JTable, for instance ("Mike", "Gooler", 21).

    How can I add data into JTable, for instance ("Mike",
    "Gooler", 21).You will have very good results if you segregate out the table model as a seperate user class and provide a method to add a row there. In fact, if you use the table to reflect a database table you can add the row inplace using the existing cursor. I believe it's TableExample2 in the jdk\demo\jfc\TableExamples that has a very good example of this.
    Walt

  • How to add event listener?

    i want to add event listener when i click on a button in mxml, the event listener should be added in the action script file, how to do this?
    can anyone help? urgent!!!

    Hi Lakshmi,
    You can do this just put all the script in the mxml block in seperate AS file as shown below... Observe that I have included an AS file named Script.as and removed the script block form mxml and moved to this Script.as file. Place the Script.as file in your src folder ....
    // Main mxml file....
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="onCreationComplete()">
        <mx:Script source="Script.as"/>
    <mx:TextArea id="textArea" width="300" height="100" />
    <mx:Button id="myButton" label="Click ME"/>
    </mx:Application>
    //Script.as file
    import mx.controls.Alert;
                private function onCreationComplete():void
                 myButton.addEventListener(MouseEvent.CLICK, onButtonClick);
                private function onButtonClick(event:MouseEvent):void
                 Alert.show("Button is Clicked");
    Thanks,
    Bhasker

Maybe you are looking for

  • Java runtime 6 (crazy) install problem - OS X 10.7.5

    Hello everyone, I have been reading the various threads on this issue, but found no answer to my problem: I am under Lion version 10.7.5 - MacBookPro I need Java 6 for a program I use for my work. When I want to install from Java Preferences, i get t

  • I can't print a web page via Preview or directly from page. Have to use Safari which works.

    I can no longer use Firefox (last 5 months or so) and be able to print anything especially using Preview (which is automatic) on my MAC. Safari works great.

  • Fatal error XML-0121 in a valid XML file in v2 of SAX parser

    Attachments: "1|type=text/plain|desc=Logging of Fatal error using v2 of SAX parser |file=v2_loggin .txt|";"2|type=text/plain|desc=Logging of Fatal error using v2 of java SAX parser |17078|file=v2_l gging.txt|" Dear XML team, I am using the SAX parser

  • Adobe CS3  multiple problems

    Product Name: Bridge CS3 Operating system: Intel Dual Core Kind: PC 4ghz Ram Problem 1: When I open bridge CS3 I get this message: This application requires an Intel Pentium 4 Intel Celeron, Intel Core duo or intel core 2 compatible processor. ( 0/6/

  • Cd burner not burning

    hi, my emac is not reading blank cd-r's...it is reading previously burned cd's but when I insert a new blank cd to burn I get a 'medium write error' message...I have tried various brands [maxell, sony, imation, tdk]...does anyone know what could be t