How can I add action listener to a cell or row in a table?

hi there
I need to be able to click on one cell or one row in a table, and perform some action, like openning a dialog or something. how can i add listener?

// See How to Use Tables in tutorial. You will get one idea about Table Renderer and Editors.
// If u understand the concept, ur problem is very easy to solve by adding Editor to your column.
"You can think of the renderer as a configurable ink stamp that the table uses to stamp appropriately formatted data onto each cell. When the user starts to edit a cell's data, a cell editor takes over the cell, controlling the cell's editing behavior.
Here, While tabing thru the table row, default all cell editors are JLabels. (Not editables)
So u can make it those cells are editable JTextFields or JComboBoxes based on the column while tabbing. And you can add Listeners to that fields too. So those editable fields are called Editor Components.
// see javax.swing.DefaultCellEditor class for more description
Here i am adding my own JTextField editor to 3rd column of a table by using
mytable.getColumnModel().getColumn(2).setCellEditor(editor );
Here editor is a obj of below class. (Not complete..class)
public class JbuiEditor extends DefaultCellEditor implements // any listener {
public JbuiEditor(JTextField tField) {
super(tField);
setClickCountToStart(1);
tField.addFocusListener(this);
this.editorComponent = tField;
public Component getComponent(){
     return editorComponent;
public Component getTreeCellEditorComponent(JTree tree, Object value,
                              boolean isSelected,
                              boolean expanded,
                              boolean leaf, int row) {
     String StringValue = tree.convertValueToText(value, isSelected,
                         expanded, leaf, row, false);
     delegate.setValue(stringValue);
     return editorComponent;
public Object getCellEditorValue() {
return super.getCellEditorValue();
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected,int row, int column) {
super.getTableCellEditorComponent(table,value,isSelected,row,column);
((JTextField)editorComponent).setText(value.toString());
//Here u can add any type of listener to this Editor component.like..
((JTextField)editorComponent).addActionListener(..);
((JTextField)editorComponent).addFocusListener(..);
return editorComponent;
Hope gives some idea.

Similar Messages

  • How can i add a MouseMotionlistener  to the cells in the JTable?

    hi !
    how can i add a MouseMotionlistener to the cells in the JTable?

    yes i have.but that is different from adding MouseMotionlistener to the cells for me .
    i just want get the values where the mouse moves to .

  • How can I add the listener to the CellRenderer

    My class named NoteColumnRenderer extends DefaultTableCellRenderer
    and thhe getTableCellRendererComponent() returns JButton .
    My question is how can I add MouseMotionListener to the JButton
    or how can I add MouseMotionListener to the NoteColumnRenderer ?
    The code below,and there is no effect
    public class NoteColumnRenderer extends DefaultTableCellRenderer {
    public NoteColumnRenderer(boolean multiSelection) {
    super();
    System.out.println("b="+this.getListeners(MouseMotionListener.class).length);
    this.addMouseMotionListener(new MouseMotionListener(){
    public void mouseDragged(MouseEvent e) {
    System.out.println("mouse+++++++");
    public void mouseMoved(MouseEvent e) {
    System.out.println("mouse-------");
    m_button.addMouseMotionListener(new MouseMotionListener(){
    public void mouseDragged(MouseEvent e) {
    // TODO Auto-generated method stub
    System.out.println("mouse=====");
    public void mouseMoved(MouseEvent e) {
    // TODO Auto-generated method stub
    System.out.println("mouse=======");
    System.out.println("a="+this.getListeners(MouseMotionListener.class).length);
    m_multiSelection = multiSelection;
    if (m_multiSelection) {
         m_check = new JCheckBox();
    m_check.setMargin(new Insets(0, 0, 0, 0));
    m_check.setHorizontalAlignment(JLabel.CENTER);
              } else
    m_button.setMargin(new Insets(0, 0, 0, 0));
    m_button.setSize(new Dimension(5, 5));
    m_combobox = new JComboBox();
         } // IDColumnRenderer
         /** Mult-Selection flag */
         private boolean m_multiSelection;
         /** The Single-Selection renderer */
         private JButton m_button=new JButton();
         /* The Multi-Selection renderer */
         private JCheckBox m_check;
         private JComboBox m_combobox;
         protected void setValue(Object value) {
              if (m_multiSelection) {
                   boolean sel = false;
                   if (value == null)
         else if (value instanceof Boolean)
              sel = ((Boolean) value).booleanValue();
                   else
              sel = value.toString().equals("Y");
                   m_check.setSelected(sel);
              else
                   if (value == null)
                   else
         if(value.toString().length()>10)
    m_button.setText(value.toString().substring(0,10)+"...");
                        else
                             m_button.setText(value.toString());
                        m_button.setBackground(Color.WHITE);
         public Component getTableCellRendererComponent(JTable table, Object value,
    boolean isSelected, boolean hasFocus, int row, int column) {
              setValue(value);
              if (m_multiSelection)
                   return m_check;
              else
                   return m_button;
    }

    Listener can be added to a cell editor, not cell renderer.
    Set relevent cess(s) to setEditable == true when you use your custom cell editor.

  • How can i add or get a value in different rows like a condition

    Hi all,
    this is the example of some records in my flat file of a survey,
    Cliente- question - Answer
    1 - 1 -5
    1 - 2 -5
    1 - 3- 5
    2 - 1- 5
    2 - 2- 4
    2 - 3 -5
    i need count the clients who has answered in the three questions the answer 5, for example the client number 1 , the number 2 not because in the question number 2 he answered 4, how can i do this to count them in the query or in the load?, help

    If you wanted this to be done at the back end.. You can definitely do it with Routine Logics in place. (Let me know if you are planning for this?)
    In Case you want to handle it at query level,
    I hope the Answer and question are just numbers (Key Figures). The Client field needs to have restrictions based on Question and Answer as well as we need a Input Screen Variable that controls the value in Answer.
    The Question restriction should contain all the 3 values (1, 2 and 3). While executing the query the restriction on Answer should be there on the Input Screen where you can enter '5'. At the execution of this query definitely you will find only the clients that had the answer as 5 for all the three questions..
    Hope this helps!!

  • How can I add a link in a cell in pages to another document

    Hello I am new to this so be gentle with me
    Can anyone tell me if it is possible to add a link in a (table) cell in pages to another document on my Mac, so when I click on it, it will take me to the document
    Many Thanks
    Charles

    As far as I remember you couldn't do it in PAges 09 and Pages 5 has lost over 90 features that Pages 09 has so I would say no you can't. I can't test it right now. I had a quick look in the help (http://help.apple.com/pages/mac/5.0/?lang=en) and could find that you could link to another document from anywhere let alone a table cell.

  • How can I calculate the sum of the first two rows in a table?

    I have a table with a repeating row that, when data is merged, always has three rows:
    Support type 1
    1,234,456
    Support type 2
    221,556
    Interest
    11.222
    I have a field where I want to show the sum of Support types 1 and 2.
    I do not want to add the interest to this.
    I'm using FormCalc with the following script on the calculate event of the Total field, which is in the same subform but not in the table:
    data.JP_Page1.subform_Hidden.sub_SupportTotals.NumericField1::calculate - (FormCalc, client)
    $.rawValue = Sum(subform_Hidden.sub_SupportTotals.tbl_SupportSubtotals.DataRow[0].SUBTOTAL,  subform_Hidden.sub_SupportTotals.tbl_SupportSubtotals.DataRow[1].SUBTOTAL)
    I've tried this using both decimal and numeric field types, neither work.
    I feel like I must be hitting a syntax issue, but the code checker isn't exposing it.
    Can anyone help me figure out what is wrong with my script?
    Thanks!
    Janet

    You don't need to do Sum for this, you should use Sum for all rows purpose only..
    $.rawValue = subform_Hidden.sub_SupportTotals.tbl_SupportSubtotals.DataRow[0]. SUBTOTAL +  subform_Hidden.sub_SupportTotals.tbl_SupportSubtotals.DataRow[1].SUBT OTAL

  • Add action listener to table cell

    The topic of my previous thread was:
    How can I get characters, which user inputs into table cell?
    I've added lisateners to table:
    table.addKeyListener(new java.awt.event.KeyAdapter() {
                public void keyPressed(java.awt.event.KeyEvent evt){
                    System.out.println("keyPressed");
                public void keyReleased(java.awt.event.KeyEvent evt){
                    System.out.println("keyReleased");
                public void keyTyped(java.awt.event.KeyEvent evt) {
                    System.out.println("keyTyped");
            });But it's not exactly what I need.
    I need to do the same, but with table cell.
    I want to see user input char by char and set color font for user input string.
    How can I add action listener to tble cell?

    This is my newly created JTextField which I will use as CellEditor for My JTable
    JTextField textField = new JTextField(); //creating Component
            textField.addKeyListener(new java.awt.event.KeyAdapter(){ //adding KeyListener
                public void keyReleased(java.awt.event.KeyEvent evt){
                    System.out.println("keyReleased" + ((JTextField)evt.getSource()).getText() + "column = " +table.getSelectedColumn());//test functionality
                    if ( isColumnHasSameValue(table.getSelectedRow(),table.getSelectedColumn(), ((JTextField)evt.getSource()).getText() ) ){//test column for equal values
                        ((JTextField)evt.getSource()).setForeground(Color.RED); //if there is equal value set Color.RED for JTextField text
                    else{ //else set Color.BLACK
                        ((JTextField)evt.getSource()).setForeground(Color.BLACK);
            table.getColumnModel().getColumn(1).setCellEditor(new DefaultCellEditor(textField)); //set custom CellEditor
    private boolean isColumnHasSameValue(int row, int column, String testVal){
            testVal = testVal.trim().toLowerCase(); //put away UpperCase and empty spaces
            for(int i=0;i<model.getRowCount();i++){
               if(i == row){
                   continue;//skip selected row where user inputs text
               if(model.getValueAt(i,column).toString().trim().toLowerCase().startsWith(testVal)){
                    return true; //if test passed
            return false; //if there are no mathes
        }I have a question:
    It seems to me, I did not use optimal solution for JTable values testing.
    What can ty else?
    Maybe, It is better to use
    tableModel.getDataVector();And then use Pattern and Matcher ?
    Am I right?

  • How can i add STORAGE LOCATION field which is not...............

    hi,
    sap gurus,
    good morning to all,
    how can i add STORAGE LOCATION field which is not in the standard tables namely
    KOMP, KOMK, and KOMG.
    how to include it in our FIELDS FROM FIELD CATALOGUE.
    if we include this field is there any impact on the standard tables.
    plz let me know this.
    bcz
    we are selling our products in two ways
    (1). one is straight from factory ie direct sales from factory
    if customer asks for excise invoice then we will sell thru factory and keeping freight in mind we will
    deliver him which ever is economical either rail or road.
    before coming to second case of selling the goods
    we will do STOCK TRANSPORT ORDER from plant to different storage locations.
    if we did STO thru road we have to sell the goods thru road only.
    if we did STO thru rail we have to sell the goods thru rail route only.
    (2). if the customer is not asking any excise invoice then we will send the goods thru depo/storage
    location which is not registered under excise.
    if the goods came by road then it will be delivered by road only.
    if the goods came by rail then it will be delivered by rail only.
    my logic here is
    basing on the
    storage location, transportation types, and distance i want to create condition record
    that captures exact frieght at the sales order level.
    confirm whether i am right or wrong.
    regards,
    balaji.t
    09990019711.

    Hi,
    It is not recommended to add new fields to any SAP standard tables. It disturbs the whole SAP functionality.
    But if you have no choice expcept to change the standard tables to meet your requirement -  then you need an access key to modify the object, which is available from the market place.
    Nevertheless, the better option is to create a 'Z' table with the required fields and use that accordingly.
    Changing standard tables will have serious impact when you apply patches or do an upgrade on the existing functionality.
    REWARD POINTS IF HELPFUL
    Regards
    Sai

  • How do I add vertical text in a cell

    How can I add vertical text within a cell. In Ecel it is easy as pie but I can't seem to find a quick fix in "numbers"?

    Rotation of text in a table cell is not supported in Numbers.
    The most often recommended workarouns is to use a floating text box. Rotate the box 90° (or other desired value), make sure that Wrap is set to 'none', then place the text box in front of the cell.
    For other suggestions, see some of the posts in the "more like this" list to the right.
    Step 2 is to make a request to Apple that this feature be added. Go to the Numbers menu in Numbers, choose Provide Numbers Feedback (or use the link), make your request that this feature be added to future versions of Numbers.
    Regards,
    Barry

  • How can I add the key listener to JFrame

    Hi,
    How can I add the Key Listener to the JFrame? I want to show the Windows default popup which comes after right clicking on the frame's header. I want to add the key board support for the same

    1. Make sure that key events are enabled on your component. (AWTMulticaster.enableEvents(...)
    2. add the keylistener

  • Very Urgent (How can i add fade in and fade out Action)

    Hi, How can i add fade in and fade out action on the JButton when the mouse is over the button.its mean that when the mouse is over the button then the button's Label is fade in and out.
    plz give code example
    thanks

    If you want to fade in and out anything, you should look at the Composite interface. A Composite is part of a Graphics2D object. You should be able to gradually change this on the button, but maybe within a different thread?

  • How to add action listener to internal frame?

    I have frame Main where I am trying to add action listener.
    Action listener should be listening button in frame Menu.
    I think it should be:
    Menu frame = new Menu();
    frame.btn_start.addActionListener(this);but it seems to be doing absolutely nothing.
    If I try to add in menu:
    btn_start.addActionListener(new Main());it generates: java.lang.StackOverflowError
    What should I do? Please help noob :)

    To get better help sooner, post a [_Short, Self Contained, Compilable and Executable, Example Program (SSCCE)_|http://mindprod.com/jgloss/sscce.html] that clearly demonstrates your problem.
    You're quite possible adding the ActionListener to the wrong component. And constructing a new instance of a class within the constructor is likely the cause of your StackOverflowError.
    db

  • Pls help - How can I add a typekit font to muse?

    As Muse doesn't come with all typekit fonts already included in the dropdown list of webfonts, I'd like to know how I can add a typekit font to the dropdown menu so I can use it for my website. I have Adobe creative cloud membership.
    I've searched the whole of the web and can't find anything about this at all - only about adding one of the existing muse typekit fonts which I already know how to do.
    Why doesn't Adobe include all typekit fonts with Muse when you're already a full creative cloud subscriber?

    Done!
    Date: Thu, 20 Dec 2012 03:13:17 -0700
    From: [email protected]
    To: [email protected]
    Subject: Pls help - How can I add a typekit font to muse?
        Re: Pls help - How can I add a typekit font to muse?
        created by morgan_in_london in Help with using Adobe Muse - View the full discussion
    You're very welcome - can I be cheeky and ask for a "correct answer" to be noted? :^D
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4935814#4935814
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4935814#4935814
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4935814#4935814. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Help with using Adobe Muse by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How can i set action on UITaBar and get event from that

    Hi All,
    I m doing one apps in which i have to add three UITabBarItem and this is UITabBarSystemItem.
    Now i cannot understand that how can i set action and get event from the?
    And how can i set various views on three tab bar item.
    I have to use UITabBar means i have to use UINavigationController+UITabBar
    My code id
    tabBar =[[UITabBar alloc] initWithFrame:CGRectMake(0,370,320,50)];
    tabBar.backgroundColor =[UIColor blackColor];
    UITabBarItem *search =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemSearch tag:0];
    UITabBarItem *recents =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemRecents tag:1];
    UITabBarItem *favorites =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemFavorit es tag:2];
    tabBar.items =[[NSArray arrayWithObjects:search,recents,favorites, nil] retain];
    tabBar.selectedItem = search;
    [myView addSubview:tabBar];
    [tabBar release];
    I add a action:
    UITabBarItem *search =[[UITabBarItem alloc] InitWithTabBarSystemItem:UITabBarSystemItemSearch tag:0 action:@selector(select:)];
    So it error: Warning -no'InitWithTabBarSystemItem:tag:action:' method fount
    So any can help me regarding it?

    Thanks RickMaddy very much.
    I read and do with sample at the View Controller Programming Guide . But when run it only view TabBar with title but haven't got any TabBarItem on it. I searched a few example about TabBar and i did, but i want do a form with a button then press on button it view a form with 2 TabBarItem on TabBar and press each TabBarItem will show correlative form page 1, page 2.
    UITabBarController *tabBarControl = [[[UITabBarController alloc] initWithNibName:nil bundle:nil] autorelease];
    tabBarControl.title = @"Tab bar";
    ViewControl1 *view1 = [[[ViewControl1 alloc] initWithNibName:@"ViewControl1" bundle:nil] autorelease];
    ViewControl1 *view2 = [[[ViewControl1 alloc] initWithNibName:@"ViewControl2" bundle:nil] autorelease];
    tabBarControl.viewControllers = [NSArray arrayWithObjects:view1,view2,nil];
    [self.navigationController pushViewController:tabBarControl animated:YES];

  • How can I add file attachment to my form and get the attachment by email?

    I'm using this code and it works fine, but I don't get the attachment file in the email. How can I add this to my code?
    HTML
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
    <script src="http://dev.jquery.com/view/trunk/plugins/validate/jquery.validate.js" type="text/javascript"></script>
    <script type="text/javascript">// <![CDATA[
                  $(document).ready(function() {
                    $("#form1").validate({
                      rules: {
                        first: "required",// simple rule, converted to {required:true}
                        email: {// compound rule
                        required: true,
                        email: true
                      last: {
                        last: true
                      comment: {
                        required: true
                      messages: {
                        comment: "Please enter a comment."
    // ]]></script>
    <script type="text/javascript">// <![CDATA[
    function validate ()
              if (document.form1.first.value == "")
              alert("Please enter your First Name");
              document.form1.first.focus();
              document.form1.first.style.border="1px solid red";
              return false;
              else if (document.form1.last.value == "")
              alert("Please enter your Last Name");
              document.form1.last.focus();
              document.form1.last.style.border="1px solid red";
              return false;
              else if (document.form1.emailaddress.value == "")
              alert("Please enter your Email Address");
              document.form1.emailaddress.focus();
              document.form1.emailaddress.style.border="1px solid red";
              return false;
    function has_focus() {
        if(document.form1.first.value == "")
                                  document.form1.first.focus();
                                  document.form1.style.first.border="1px solid green";
    function set_focus(x)
              document.getElementById(x).style.border="1px solid #80CA75";
    function clear_focus(x)
              document.getElementById(x).style.border="1px solid #DBDFE6";
    // ]]></script>
    </head>
    <body>
    <p><span style="color: #666666; text-align: center; font-size: 13px;">Please complete this form if you have any technical issue.</span></p>
    <form id="form1" action="http://www.southsun.com/php/tech_issue.php" enctype="multipart/form-data" method="post">
    <table style="width: 850px; font-size: 15px; padding-left: 20px; text-align: center;" border="0">
    <tbody>
    <tr>
    <td style="text-align: left; padding-bottom: 20px;" colspan="2">
    <h2><span style="color: #666666;">Please complete this form if you have any technical issue.</span></h2>
    </td>
    </tr>
    <tr style="padding-top: 40px;">
    <td style="text-align: left;"><span style="color: #abaf6f;"><strong>First Name</strong>:*</span><input id="first1" name="first" type="text" />  <br /><br /> <span style="color: #abaf6f;"><strong>Last Name</strong>:*</span><input id="last1" name="last" type="text" /><br /><br /> <span style="color: #abaf6f; padding-right: 33px;"><strong>Email</strong>:</span><span style="color: #abaf6f;">*</span><input id="email1" name="email" type="text" /><br /><br /> <span style="color: #abaf6f;"><strong>Shipping Method:</strong><br /></span> <input name="shippingmethod" type="radio" value="prioritymail" /> Priority Mail                                                                 <input name="shippingmethod" type="radio" value="store" /> In Store Pick up <br /> <input name="shippingmethod" type="radio" value="ground" />  Ground                                                                       <input name="shippingmethod" type="radio" value="3day" /> 3 Day Select<br /><br /> <span style="color: #abaf6f;"><strong>Payment Method:</strong><br /></span> <input name="paymentmethod" type="radio" value="paypal" /> Paypal Method                                                       <input name="paymentmethod" type="radio" value="creditcard" /> Credit Card<br /> <strong><br /> <span style="color: #abaf6f;">If getting an error message, please explain the error:</span></strong><span style="color: #abaf6f;"> <br /></span> <textarea id="errormessage" cols="20" rows="2" name="errormessage"></textarea><br /><br /></td>
    <td style="border-left: 1px solid grey; padding-left: 40px; text-align: left;"><span style="color: #abaf6f;"><strong>If using Paypal, Were you redirected successfully?</strong><br /></span> <input name="paypalredirect" type="radio" value="yes" /> Yes                                                                 <input name="paypalredirect" type="radio" value="no" /> No<br /><br /> <span style="color: #abaf6f;"><strong>If using Credit Card, Did you get an error?</strong><br /></span> <input name="carderror" type="radio" value="yes" /> Yes                                                                  <input name="carderror" type="radio" value="no" /> No<br /><br /> <span style="color: #abaf6f;"><strong>What happened after clicking place order? </strong><br /></span> <textarea id="placeorder1" cols="20" rows="2" name="placeorder"></textarea><br /><br /> <span style="color: #abaf6f;"><strong>Comments</strong>: <br /></span> <textarea id="comments1" cols="20" rows="2" name="strcomments"></textarea><br /><br /> <span style="color: #abaf6f;"><strong>Attach PrintScreen</strong>: <br /></span> <input name="strresume" type="file" />
    <div style="height: 50px;"> </div>
    </td>
    </tr>
    <tr>
    <td style="padding-top: 20px;" colspan="2">( * ) indicates required fields</td>
    </tr>
    <tr>
    <td style="text-align: center; padding-top: 20px;" colspan="2"><input class="button" name="submit" type="submit" value="Submit" />                        <input class="button" name="reset" type="reset" value="Reset" /></td>
    </tr>
    </tbody>
    </table>
    </form>
    </body></html>
    PHP
    <?php
    echo $savestring;
    //--------------------------paramaters--------------------------
    // Subject of email sent to you.
    $subject = 'prueba con uploads';
    // Your email address. This is where the form information will be sent.
    $emailadd = '[email protected]';
    // Where to redirect after form is processed.
    $url = 'http://www.pch-graphicdesign.com';
    // Makes all fields required. If set to '1' no field can not be empty. If set to '0' any or all fields can be empty.
    $req = '0';
    $target_path = "http://www.pch-graphicdesign.com/php/uploads/";
    $target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
    $text = "Results from form:\n\n";
    $space = ' ';
    $line = '
    foreach ($_POST as $key => $value)
    if ($req == '1')
    if ($value == '')
    {echo "$key is empty";die;}
    $j = strlen($key);
    if ($j >= 20)
    {echo "Name of form element $key cannot be longer than 20 characters";die;}
    $j = 20 - $j;
    for ($i = 1; $i <= $j; $i++)
    {$space .= ' ';}
    $value = str_replace('\n', "$line", $value);
    $conc = "{$key}:$space{$value}$line";
    $text .= $conc;
    $space = ' ';
    mail($emailadd, $subject, $text, 'From: '.$emailadd.'');
    echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">';
    ?>

    Sending a file as an attachment to an email involves setting the correct MIME type and headers. There's a brief tutorial here: http://webcheatsheet.com/php/send_email_text_html_attachment.php.
    Also, you need to use the same name as in your form. In the script you have shown here, the name of the file field is strresume, but your processing script uses this: $_FILES['uploadedfile']['name']. It should be this: $_FILES['strresume']['name']

Maybe you are looking for