Question about  selection Jtable?

Hi,
as might select data from a JTable pressing the enter key or double click, get the selected data and send it to a JTextField?
thanks!

and as I send this information to be selected by pressing the enter key or by double-clicking on a JTextField that is in another JFrame!
thanks!

Similar Messages

  • Question about selecting vector paths in Photoshop

    Hi, I have a question about selecting path points in photoshop.
    This is the setup. I have a vector shape layer (the redi circle). but that's placed inside a group with a vector mask (the black pentagon). What I want to do is select parts of the red circle using click and drag) so I can modify portions of the circle).
    This is Photoshop's behavior as I've noticed it. Photoshop likes to select the shapes for you, and will target layers on its own when you use the Path Selection Tool. It tends to want to select the top most shape. If I target the shape layer first, I can use the Direct Selection tool to select individual points. I can add selected points bu shift+clicking.This is all well and good.
    If I try to select multiple points using click+drag though, it gets a bit weird.
    If I try to click+drag to select multiple points from within the vector mask (from the black), it will fail and select the vector mask. If i try to click+drag to select multiple points from outside the vector mask (from the white), then it will allow me to select points from my vector shape like i intended.
    I could also shift click to hide the vector mask, and it will work the way i want.
    Is there an easy way to tell photoshop not to auto target vector shapes? or a better way to select paths inside vector masks?
    Thanx for any input

    canvai wrote:
    Is there an easy way to tell photoshop not to auto target vector shapes? or a better way to select paths inside vector masks?
    Sure.
    Simply click once on the vector mask for the shape layer (red circle) to highlight that vector mask in the Layers Panel. Then when you click-drag the anchors of that path will be selected, not the group's path.
    If you have no mask highlighted, Photoshop assumes it should select the first path it comes in contact with.

  • One question about Selection screen

    Hi experts,
    I am writing a report, on the selection screen, I need to input the file path and then do the file upload.
    My question is about how to check the file path I put is correct or not? If it is incorrect, I want to get a message and the cursor still in the field and don't jump to the next page.
    How can I do like that?
    Any one has any suggestion, please help me.
    Thanks in advance.
    Regards,
    Chris Gu

    Hi Chris,
        do it this way: check my code after calling gui_upload what condition i am using.
    parameters:
      p_file type rlgrap-filename.          " File name
    *           AT SELECTION-SCREEN ON VALUE-REQUEST EVENT               
    at selection-screen on value-request for p_file.
      perform get_file_name.
    *                       AT SELECTION-SCREEN EVENT                    
    at selection-screen on p_file.
      perform validate_upload_file.
    *  Form  GET_FILE_NAME                                               
    form get_file_name.
      call function 'F4_FILENAME'
       exporting
         program_name        = syst-cprog
         dynpro_number       = syst-dynnr
         field_name          = ' '
       importing
         file_name           = p_file.
    endform.                               " GET_FILE_NAME
    *  Form  VALIDATE_UPLOAD_FILE                                        
    form validate_upload_file.
      data:
        lw_file  type string.              " File Path
      lw_file = p_file.
      call function 'GUI_UPLOAD'
        exporting
          filename                    = lw_file
          filetype                    = 'ASC'
          has_field_separator         = 'X'
          dat_mode                    = 'X'
        tables
          data_tab                    = t_final_data.
      IF sy-subrc ne 0 and t_final_data is initial. " here message if file path is wrong
        Message 'File not found' type 'E'.
      ELSEIF sy-subrc eq 0 and t_final_data is initial.
        Message 'File empty' type 'E'.
      ENDIF.                              
    endform.                               " VALIDATE_UPLOAD_FILE
    With luck,
    Pritam.
    Edited by: Pritam Ghosh on May 8, 2009 8:57 AM

  • Question about selection table analysis

    Dear All,
    My last post was closed by the moderator so I would like to ask a different question. Please apologize if my question is trivial.
    1. There is a selection table seltab with one fields of type I, with the following contents:
    I     GT     3     0
    I     NE     8     0
    The literature eg. ABAP Objects says that the control statement like IF or CASE can be used with logical expression IN.
    Now I am checking if the variable test fulfills the conditions defined by the selection table.
    DO 10 TIMES.
      IF test IN seltab.
        write test.
      ENDIF
      test = test + 1.
    ENDDO.
    As a result I get a full list of values.
    1 2 3 4 5 6 7 8 9 10
    2. Now, if the table contains
    I     GT     3     0
    I get
    4 5 6 7 8 10 as expected
    3. If the table seltab contains
    I     NE     3     0
    the result also seems to be ok
    1 2 4 5 6 7 8 9 10
    The final question is. Is it true that the logical expression IN cannot be used with IF for more complex data comparisions?
    Thanks,
    Grzegorz

    Well,  the contents
    I GT 3 0
    I NE 8 0
    I read as:
    the variable fulfills the condition if is greater than 3 and not equal 8
    test > 3 and
    test <> 8
    which should give the result from the example above a list
    4 5 6 7 9 10
    What is wrong with my analysis?
    Regards,
    Grzegorz

  • Question about creating Jtable from a "Self Made" object.

    Hi all,
    I am new to java and this is my first post here.
    First of all, i want to say nice to meet u all. This is a blessed forum, and it already helped me a lot.
    I hope that i will be clear with my question.
    Now to the question:
    I have created a class that reads parameter file and its meta file and combine them (each parameter in the file gets its properties such as "Mask", "Default" and else from the meta file) to one object (the class creates collection of instance of it self that has a get method.
    the class also has method that get "Column Names" from the instance.
    I want to create a Jtable that will present these parameter(each row will present 1 parameter).
    Only the second column should be editble and it should choose the editor by the type of data (example: if it is boolean should get a check box, i has more than one "ValidValue" should get a combo box and so on).
    What would be the best way to do that?
    I am not looking for a source code, I am looking for concept suggestion.
    This project is for "Self Learning" porpuse, and any help will be gratitude.
    Thanks a lot you all,
    On Katalan.

    Use the Adapter pattern (http://en.wikipedia.org/wiki/Adapter_pattern) to wrap your object as a TableModel.
    eg, if your data class is "ParameterSet" you might do this...
    public class ParameterSetTableModel implements TableModel
        private final ParameterSet set;
        public ParameterSetTableModel(ParameterSet set)
            this.set = set;
        public String[] getColumnNames()
            return this.set.getColumnNames();
        // you'll need to implement all TableModel methods, either
        // directly calling the wrapped object or calling it and
        // converting the data, or whatever's appropriate
    }

  • Help, question about "select ... for update nowait"

    There is a proc code. In the beginning of the code, I used a SQL "select ... for update nowait" in order to prevent from another proc executing at the same time. When the case happens, "-54, ORA-00054: resource busy and acquire with NOWAIT specified" will be printed in the screen.
    But there is a question: I need to print sth to indicate "another proc is running". I used "if (sqlca.sqlcode == -54)" as precondition, such as:
    if (sqlca.sqlcode == -54) {
    printf("There is another proc running.\n");
    However, this line will not be printed. I doubt that the code quits directly when using "select ... for update nowait" so as not to set value (-54) to sqlca.sqlcode.
    So, could you suggest whether there is another way that I can use to print "There is another proc running" when another proc is running?
    Thx a lot for your kindly reply.

    Yes, that link. Scroll down a bit and you will see:
    The calling application gets a PL/SQL exception, which it can process using the error-reporting functions SQLCODE and SQLERRM in an OTHERS handler. Also, it can use the pragma EXCEPTION_INIT to map specific error numbers returned by raise_application_error to exceptions of its own, as the following Pro*C example shows:
    EXEC SQL EXECUTE
    /* Execute embedded PL/SQL block using host
    variables v_emp_id and v_amount, which were
    assigned values in the host environment. */
    DECLARE
    null_salary EXCEPTION;
    /* Map error number returned by raise_application_error
    to user-defined exception. */
    PRAGMA EXCEPTION_INIT(null_salary, -20101);
    BEGIN
    raise_salary(:v_emp_id, :v_amount);
    EXCEPTION
    WHEN null_salary THEN
    INSERT INTO emp_audit VALUES (:v_emp_id, ...);
    END;
    END-EXEC;
    This technique allows the calling application to handle error conditions in specific exception handlers.

  • Question about selecting only one tree at a time...Please help

    Hi , guys
    does anybody know how to make only one tree selected in an application which shows three trees simultaniously.
    Untill now I can select both trees at a time (the third one is not implemented yet ) This is probably so because the trees are showed in different panels I have no idea....Please give me some hints or ideas.
    I thank you in advance.

    write a TreeSelectionListener which knows all Trees in your application. add the listener to all three Trees. within the valueChanged method, check the events source to evaluate the tree, which fired the event. close all selections of all trees ( method clearSelection() ) except the one, which fired the event.
    regards,
    stefan

  • Question about select query.

    Hi,
    i want to insert the result of query to a table,
    all the fields are corresponding except one field.
    is there a way to this or i need to do
    insert ( f1 , f2 ....)
    i did this way
    INTO CORRESPONDING FIELDS OF TABLE It_Return_Date
    but i have another field which i want to insert to table.
    is it possible??
    10X

    lets say you are getting values from a table
    select & into X_TAB1 from TAB1.
    data : x_tab2 type table2.
    x_tab2-newfield = 'new value'. "Populate that new field value
    move corresponding X_TAB1 TO X_TAB2. "all other will copy here
    then use X_TAB2 to insert to your TABLE2.
    INSERT TABLE2 FROM X_TAB2.
    it would be a good practice to use same structure of the table while you use Insert/modify etc.. commands.
    else you can declare TABLES ZTABLE2.
    MOVE CORRESPONDING ZTABLE1 TO ZTABLE2.
    ZTABLE2-NEW_FIELD = <NEW VALUE>.
    then use INSERT.
    INSERT ZTABLE2.
    Regards
    srikanth
    Message was edited by: Srikanth Kidambi

  • Question about using Jtable

    hello eb
    i have this code
    Table_Ecg = new JTable();
    String[] columnNames = {" Num�ro ", " Nom ECG ", " Date de Transfert "};
    aModel = (DefaultTableModel) Table_Ecg.getModel();
    aModel.setColumnIdentifiers(columnNames);          
    Table_Ecg.setModel(aModel);
    String[] number = {" 1 ", " 2", " 3 "};
    String[] name = {" katie", " stefi ", " bom"};
    String[] surname = {" don", " kam ", " youri"};i want to insert number in the first column of the tabel
    i want to insert name in the seconf column of the tabel
    i want to insert surname in the third column of the tabel
    if so know howi can do it please help me
    thanks for eb

    The Swing tutorial on "How to Use Tables" has examples of how to hardcode a 2-dimensional array to build a TableModel.
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.htmlYou can also use the addRow(...) method of the DefaultTableModel to dynamically add rows to a table.

  • Question about selection text.

    when program is created and need to be transported to production does selection texts always go with it?

    Hi Kishore...
    The selection texts will not automatically go with the program...Suppose u have a TR for a program ..
    Now wen u create selection texts using goto-> textelements-> selection texts then activate  you will be asked for A new TR. Then u can transport the same..
    Reward points if the abv is useful....

  • A question about select where date =

    I want to select data from a table which has a date column and has the time format like "2009-11-30 00:00:00.0".
    I try using the sql-script as follow but failed.
    select * from mytable
    where begin_date = to_date ('2009-11-30', 'yyyy.mm.dd ');
    Someone knows the format?

    Hi,
    user10501597 wrote:
    I want to select data from a table which has a date column and has the time format like "2009-11-30 00:00:00.0". All DATE columns have the same format; only strings have a format like that. A lot of people say they have a DATE column when they actually have a VARCHAR2 that is supposed to store a date. Post a CREATE TABLE statement to remove any doubt.
    I try using the sql-script as follow but failed.
    select * from mytable
    where begin_date = to_date ('2009-11-30', 'yyyy.mm.dd ');That looks okay. The extra space after dd shouldn't matter.
    What you wrote is equivalent to:
    select  *
    from    mytable
    where   begin_date = to_date ('2009-11-30 00:00:00', 'yyyy.mm.dd hh24:mi:ss');Are you sure you have rows with that value?
    Whenever you have a problem, post some sample data (CREATE TABLE and INSERT statements) so people can re-create the problem.

  • Question about selecting parts of Automation...lowering volume as whole

    Here is what I'm trying to do. i have a piano part that i automated pretty good. Now, I realize in relation to the mix the automation is a bit too loud. How do i highlight the part of the automation, select it as a whole, and then drag the entire automation down 2-3db? I tried clicking on the marquee tool, and that highlights the part, now I can't figure out how to apply the volume reduction to it all, keeping the relative relationship in tact, simply lowering the volume altogther!! Thanks guys.
    -Mike

    try holding cmd and click on the area you want to adjust the automation setting,it will select it all and you will be able to move it as a whole
    hope this is the right key as i'm not in front of logic and a mac at the mo....

  • Question about JTable...

    Hi people,
    I have a question about class JTable of Java and how can i add dynamic content to it. More specific i would like
    to create a table which has a dynamic content at its rows and columns (etc i will use a method which will generate
    dates of 1/02/05 to 1/03/05 format and i will add them as titles in the row section of my table and in the column
    section i will add times of the day divided in quarters like 00.00 00.15 00.30 00.45..... just like a calendar) Any ideas????

    Use the DefaultTableModel. It has addRow and addColumn methods.

  • Question about changing values of a total by selecting a check box.

    OK, so what I did was create a form for my workplace that totals the value an employee's quality of work. what i want this form to do is: In one cell the total is a 100 point value. In one column i have a markable checkbox and in the column next to that there is a point value for that particular category. what i want is to be able to check a box next to category and have the corresponding point value deducted from the "100" total. for example if I check the box next a value of 40, then the 100 becomes a 60 automatically. I am new to numbers, and any spreadsheet app for that matter so any help would be greatly appreciated.

    Tommyboy29 wrote:
    Another question about my last post: numbers will only let me add 2 to 3 cells in the formula to change the "total" number of 100. is there a way to add more then 3 cells? i have 9 cells total that i want to have the ability to subtract from that same total?
    There is no such limit in Numbers. I'm guessing that you ran out of room in the formula edit line in the Formula Bar.
    Grab the double line and pull it down to expand the edit area.
    Jerry

  • Questions about your new HP Products? HP Expert Day: January 14th, 2015

    Thank you for coming to Expert Day! The event has now concluded.
    To find out about future events, please visit this page.
    On behalf of the Experts, I would like to thank you for coming to the Forum to connect with us.  We hope you will return to the boards to share your experiences, both good and bad.
     We will be holding more of these Expert Days on different topics in the months to come.  We hope to see you then!
     If you still have questions to ask, feel free to post them on the Forum – we always have experts online to help you out.
    So, what is HP Expert Day?
    Expert Day is an online event when HP employees join our Support Forums to answer questions about your HP products. And it’s FREE.
    Ok, how do I get started?
    It’s easy. Come out to the HP Support Forums, post your question, and wait for a response! We’ll have experts online covering our Notebook boards, Desktop boards, Tablet boards, and Printer and all-in-one boards.
    We’ll also be covering the commercial products on the HP Enterprise Business Community. We’ll have experts online covering select boards on the Printing and Digital Imaging and Desktops and Workstations categories.
    What if I need more information?
    For more information and a complete schedule of previous events, check out this post on the forums.
    Is Expert Day an English-only event?
    No. This time we’ll have experts and volunteers online across the globe, answering questions on the English, Simplified Chinese, and Korean forums. Here’s the information:
    Enterprise Business Forum: January 14th 7:00am to 12:00pm and 6:00pm to 11:00pm Pacific Time
    Korean Forum: January 15th 10am to 6pm Korea Time
    Simplified Chinese Forum: January 15th 10am to 6pm China Time
    Looking forward to seeing you on January 14th!
    I am an HP employee.

    My HP, purchased in June 2012, died on Saturday.  I was working in recently installed Photoshop, walked away from my computer to answer the phone and when I came back the screen was blank.  When I turned it on, I got a Windows Error Recovery message.  The computer was locked and wouldn't let me move the arrow keys up or down and hitting f8 didn't do anything. 
    I'm not happy with HP.  Any suggestions?

Maybe you are looking for

  • Sometimes Firefox opens with a Google page; how do I get it to stop?

    My Firefox preferences are set for it to open to a blank page. But sometimes (not all the time) it opens to a Google search page. What's worse: I may be in the middle of typing something into the Google search window in the toolbar, but half of what

  • Input taxes for zambia, southafrica

    Hi Consultants, Does anybody know how to configure the input taxes flike customs,excise & vat or zambia country, south africa. If any has some document kindly requesting you to forward me. with regards GNK

  • Listening in main application for event coming from custom component

    I have a custom component that im using for a login.  i watch videos and tutorials on how to pass variables between custom components and application. the problem im having is that must tutorials or explanation have you put the event on the custom co

  • How to get rid of "Previous" en "Next" header in UIX Table?

    I have the simplest of UIX tables in my page, showing a single column of dates: <table model="${bindings.Startmoment}"> <contents> <column> <contents> <styledText model="${uix.current.myDate}"/> </contents> </column> </contents> </table> This renders

  • Error with T4CConnection

    I am calling an application, which is returning the T4CConnection. I need to use the connection to execute a stored procedure and i am creating the statement like below: OracleCallableStatement cs = (OracleCallableStatement)conn.prepareCall( sql ); b