Assign a matrix to a JTable?  Possible?

OK. I will not know the incomming data matrix untill it is assigned. Is there anyway to put the following matrix into a JTable without a headache? All I see are examples of Object class variables assigned to JTables. If anyone knows how to make this work I will appreciate it very much. Here is what I have come up with as an idea:
        String[][] originalDMatrix;
        // Assigned String Matrix.
        if(Program.printDataMatrix.isSelected()) {
            originalDMatrix = new String[Program.matrix.length][];
            for(int i = 0; i < Program.matrix.length; i++) {
                originalDMatrix[i] = new String[Program.matrix.length];
for (int j = 0; j < Program.matrix[i].length; j++) {
originalDMatrix[i][j] = Program.matrix[i][j];
// Create the table and give it the matrix THIS IS WHERE IT WONT WORK.
final JTable originalDMatrixT = new JTable(originalDMatrix);
[/code[
ERROR OUTPUT:
cannot resolve symbol
symbol : constructor JTable (java.lang.String[][])
location: class javax.swing.JTable
final JTable originalDMatrixT = new JTable(originalDMatrix);
^
1 error
Errors compiling Results.

Changing to strings gave same result but with Object:
symbol  : constructor JTable (java.lang.Object[][])
location: class javax.swing.JTable
        final JTable originalDMatrixT = new JTable(originalDMatrix);
                                        ^
1 error

Similar Messages

  • Error *Chart of dep-dependent assignment to asset class 100306 not possible

    Dear All
    I got error Chart of dep - dependent assignment to asset class 100306 not possible
    Diagnosis
        You tried to assign chart-of-depreciation-dependent data to asset class
        100306.
    System Response
        The assignment is not allowed.
    Procedure
        In order to be able to assign chart-of-depreciation-dependent data to
        asset class 100306, the following conditions have to be met. You have to
        have already
        1.  Defined at least two active charts of depreciation
        2.  Assigned asset class 100306 to more than one chart of depreciation
        However, at the moment this asset class is only assigned to chart of
        depreciation 1.
    I already checked following this but I didn't found the mistake (already assign COD to company code).
    Please anyone help me to solved this.
    Thanks in advance.
    Best Regards,
    Utarat.P

    Hi Utarat,
    whenever you create an asset the system checks first the table ANKP.  If you have chart-of-depreciation-dependend account determination, than  an entry in the table ANKP is made. If you than make a copy from such  a asset class in the asset class there is another account  determination than in the table ANKP and the system takes the account determination from the table ANKP and not from the asset class.                                                                               
    Normally you can't define chart-of-depreciation-dependent assignments  (with transaction ANK1) if there is only one chart of depreciation. As a result you'll get error AC012. So, I think there was a  second chart which was deleted.                                                                               
    If you'd like to change (or delete) this assignments you can use            
    the following workaround:                                                   
        SM34 -> View ANKA_ALL -> Maintain                                       
           - select asset class ART (for example)                               
           - then click in the left column on "Chart of dep - dep data"      
    Regards Bernhard

  • Multiple transform/assigns for one variable - is this possible?

    Hi,
    What I am trying to do is read in a complex XML file. Transform some data, add some other data from another source and update a table in the database with all data.
    So currently I read in the XML file.
    Do one big transform to map the majority of data to the input variable of my database adapter.
    I then call a stored procedure to get some ID values.
    I have then been trying to add these ID's to the input variable of my database adapter. Tried both transform and assign, but these seem to overwrite the big transform which I previously did.
    Is it possible to update the same variable in more than one transform without overwriting the values set previously?
    Thanks in advance for any help

    Hi Marc,
    Thanks for your help.
    I've tried playing around with the <bpelx:insertAfter> command referring to your Blog.
    I have a couple of questions, perhaps you could help me with them.
    1. I noticed that once I have added this command into the .bpel file I get an error within the designer view. Is this to be expected or am I doing something wrong?
    2. Is it possible to specify the XML tag which is used and also use an XPath query?
    The code I have added is as follows:
    <assign name="Assign_GlobalsToInsert">
    <bpelx:insertAfter>
    <from variable="InvokeGlobalsGetGlobalsOutputValue"
    part="outputParameters"
    query="/ns1:outputParameters/GET_VALUE"/>
    <to variable="ReceiveFileReadInputVariable"
    part="DATA_FILE"
    query="/ns3:DATA_FILE/ns3:DataLine/ns3:FinalLine"/>
    </bpelx:insertAfter>
    </assign>
    When I tested this it did add and element with the correct value as expected, however the XML tags were <GET_VALUE> as specified in my query section of the from command. Is there anyway to use a different value for the tags?
    I currently get <GET_VALUE>99</GET_VALUE>
    I would like to use <TRANS_ID>99</TRANS_ID>
    Thanks very much for your help

  • Help, How to remove checkbox in odd matrix row (is it possible?)

    I created a form and there's a checkbox in column 1 on my matrix
    but i want to set when in the odd row I want to remove the checkbox (hide or not visible or not editable) 
    Is this possible ?
    Thanks

    Hi Acumen,
    I don't think this is possible. If you have a column configured as a specific type it will always be that specific type. No changes can be done on row level - types are specified for the entire column.
    Hope it helps,
    Adele

  • Clientbased GWI - Assign to Group - How is that possible?

    Hi experts
    I am faced with an issue regarding clientbased gwi and creation of activities in outlook.
    If I want to assign an Account to an appointment for example, it is not possible to choose a group business partner.
    Only Accounts (organizations) are available.
    Is that correct? what are about groups?
    how can I do so?
    Thanks in advance,
    marcus

    Check speedtest.net to verify connection. Should be at least 6mbps
    Check for interference using istumbler or netstumbler
    Make sure DNS is set correctly (settings - general - network - congifure DNS - automatic)

  • Where to assign setup matrix ?

    Hello to all SAP Expert,
        I have one problem regarding setup matrix assignment. I have created setup matrix, but where to assign this so that I can reduce my setup time required.
    Thanks in Advance.
    Regards,
    Yogesh

    Dear,
    Set up group and transition matrix :- Setup group key is defined in the operation in the routing and then the transition times between setup keys is maintained in configuration. in work center CR02  default value tap you will get field for Setup Type Key.
    Regards,
    R.brahmankar

  • No assignment to org model in PPOME possible

    Hello,
    When I try to assign in the org model/PPOME (ECC6.0) a person to a position, the system allows that for some persons u2013 for some not. If not, the message u201CNo entry found, 5W800u201C is issued. If I would try to create the relationship A/008 via PP02, the system issues u201CValidity period of record not within validity period of P 0000XXXX, Message no. 5A039u201D.
    Can anybody please explain me whatu2019s going on?
    T770S0 is maintained in the following way:
    PLOGI ORGA X    Integration Switch: Organizational Assignment
    PLOGI PLOGI 01  Integration Plan Version / Active Plan Version
    RHINTECHECK for personell no. 0000XXXX: all 12 (time-related) records of IT0001 are wrong (error) and the report suggests:
    a. Check whether the person is marked in open processes
    --> This seems not to be the case
    b. Check your organizational assignment, either in infotype 1 or in the organizational structure in the above mentioned period.
    --> I think this is also not the problem as org unit and position (PLANS, STELL) are both empty in PA0001.
    I am new to HR-module, please explain what is missing, Thanks,
    Angie

    Hi,
    thanks for your answer. Regarding the questions:
    > How did you get the employee records into PA0001?
    The employee records were transferred from another system into my system via ALE. In the source system the records were created via an interface (I assume). In the source system OM is not used.
    > What about the emplyees that you can assign to a position? Do they have a position in PA0001?
    No, they donu2019t. All records havenu2019t a position assigned in PA0001.
    > Can you find other differences between the employees that work and the ones that don't?
    There is only one difference for the employees who donu2019t work: In PA30 on IT "org. assignment" is field personnel area two times displayed with two different values, even that it is the same field:
    On the top of the screen:             P0001-WERKS, screen number 0100.
    Section enterprise structure:     P0001-WERKS, screen number 2000.
    From PA0001-table I can see that these employees have changed their personell area in the past (in the source system). Those records were transfered into my system via ALE, too.
    > Check dates to make sure that your employee is active within the dates you try to assign him.
    The employees are active in the related period.
    Please advise. Thanks,
    Angie
    Edited by: Angie012 on Feb 14, 2011 9:48 AM

  • Matrix in Vector? possible?

    the conventional method for matrix is 2-d array, i.e. int [][]. for whenever the matrix is scan, a nested for loop is required. is there a quick way to handle matrix? may be using vector or something else like linklist or something like that? Thanks
    tim

    in a way you're right, but in the case of this matrix,
    the number of items=3<sup>2</sup>.In my previous post above I actually meant that N is the number of elements (not items). In the case of a 3x3 matrix N=9, in a 3x3x3 matrix N=27. And the time complexity is always O(N) regardless of how you scan the matrix (using nested for-loop or something else).
    You'll have to provide some problem specifics to justify another implementation of the matrix over the standard array.

  • Is it possible to fetch matrix column through formatted search in UDF?

    HI,
    Is it possible to fetch the value of first row of quantity column in user defined field through formatted search?
    SELECT $[$38.11.number]
      does work but in user defined column of matrix only. I have requirement that when there will be only one row in matrix, the quantity should be accessible in user defined field. and for this, the above query gives internal error.
    thanks and regards,
    Binita

    David,
    I used the query sent by you and further facing following problem. may be my filtering is on wrong parameter.
    SELECT $[rdr1.quantity] * $[ordr.u_qty1.number] from ordr o, rdr1 r where o.cardcode= $[ordr.cardcode] and r.itemcode = $[rdr1.itemcode]
    this query gives correct result when assigning to matrix column.
    when I applied the same query to user defined field, then after selecting the row as suggested by you, it does give value but, in this case, it takes it from rdr1 instead of from matrix.
    for example, I have selected item A001 in matrix. if that item is already there in rdr1, then it fetches its quantity from table instead of that provided by me in matrix's quantity column
    Please guide further,
    thanks in advance,
    Binita
    Edited by: Binita  Joshi on Jun 5, 2008 2:45 PM
    even
    SELECT $[$38.11.number] * $[ordr.u_qty1.number] from ordr o, rdr1 r where o.cardcode= $[ordr.cardcode] and r.itemcode = $[$38.1.0]
    is not working. no clues.

  • JTable Data

    First...new to Java....I have a form which collects information, all address type info. There are 6 different types of addresses. There are 24 possible address fields. The address types all collect similar info...but not the same. The 24 fields is an aggregation of all address fields. For the fields that dont pertain to the tab I am i just set the value to null. Each address type is on its own tab. I have assigned a prefix to each tab like following: tab1 tab2 etc. What I want to be able to do is to collect the information on each tab and assign it to a row in a jtable. the rows would be filled even if it is only null data. I also would want to take the data from the jTable and repopulate the tabs...assuming of course, the table is still in memory.
    So..based on the prefix I assign I want the forms/jTable to be smart enough to save the values to the right row in the table and to repopulate itself based on the same prefix. Is this doable?
    Thanks

    Please don't repeat your post. Just bump the old one (add a reply so that it moves to the top of the list):
    http://forum.java.sun.com/thread.jspa?threadID=710328

  • Assignment field (ZUONR) in partial payment customer

    Hello,
    We have an issue concerning the assignment field in the partial payment from a customer.
    In the assignment field (ZUONR) we normally have the invoice numbers from another application (via interface to SAP).
    When we receive a partial payment from a customer via bank statement (MT940 EBS file), we get a payment advice in FEBAN. on the correct invoice. It is not booked because the difference is too large. That is correct!
    Our debtor department delete the payment advice and the use post item (in FEBAN) to create a partial payment (via FB05).
    Instead of the assignment from the invoice document, SAP puts another number in ZUONR for the first posting area. Afetr investigation it seems like it is a part of the payment advice number!?
    When we manually create a partial payment (without first having a payment advice from EBS), we get the (actual) date in ZUONR.
    In the screenprints attached, it is shown.
    In the attachment BSEG part 1 and BSEG part 2, the assigment fields with their values are visible as result of FB05 from post item in FEBAN.
    For those items there was a payment advice, which is deleted (first). Assignment (ZUONR) is a "strange" value, part of payment advice number!?
    BSEG part 3 and BSEG part 4, the items are shown when partial payment is manually entered (via FB05) without payment advice via EBS in FEBAN. Then a date is filled in assignment (ZUONR) field.
    Is it possible to arrange that the assignment field (ZUONR) gets the value of the original invoice, on which the partial payment is created?
    Is that possible with customizing?

    Hi,
    The ZUONR is filled by the Sort key in the account's master data. This sort key is defined in the OB16.
    And check the path below: Accounts Receivable and Accounts Payable -->  Customer Accounts -->  Line Items --> Display Line Items --> Display Line Items without ALV.
    JPA

  • Change Purchase Requisition Price after assigned to Quotation

    Hello.
    I created purchase requisition and assigned to Quotation.
    It if possible change purchase requisition price when is already assigned to Quotation?
    The item price is display and don't let me apply changes.
    Regards,
    Hector.

    Hello.
    I did not converted the Purchase Requsition in Purchase Order.
    I just running a Test Script, and after assigned a Quotation, the vendor sent me some price changes.
    When I call the requisition, the system don't let me change any price.
    I believe there is a good reason for that, but I need to read it.
    If anyone knows any documentation available, please let me know.

  • How to read Assignment blocks mode options Lazy, Direct etc

    Hi,
    I need to read the Assignment block mode settings made in configuration i.e, Direct, Lazy etc in a program. Can some one help me out how to get these values for Account assignment block. Based on these modes, i need to programatically control and decide some rules.
    Any pointers on this will be very helpful.
    Thanks,
    Udaya

    Hi Udaya,
    This is done in class CL_BSP_WD_OVW_VIEWSET, method DO_INIT_CONFIG
    * get configuration in xml language
      me->configuration_descr->get_config_data(
        RECEIVING  rv_result = lv_config_xml
        EXCEPTIONS foreign_lock = 1
                   config_not_found = 2 ).
    * transform configuration xml into table definition
      CALL METHOD cl_bsp_dlc_config_ovw=>conv_xml_to_data(
                  EXPORTING iv_xml = lv_config_xml
                  IMPORTING rt_data = ls_assgnm_xml ).
      lt_assignm = ls_assgnm_xml-views.
    * conversion of the load options (direct,expanded=abap_true and lazy,collapsed=abap_false)
      LOOP AT lt_assignm ASSIGNING <f>.
          <f>-traymode = XXX
    Possible values (XXX in the code) are:
    CL_BSP_WD_OVW_VIEWSET=>C_DIRECTMODE_ID
    CL_BSP_WD_OVW_VIEWSET=>C_LAZYMODE_ID
    CL_BSP_WD_OVW_VIEWSET=>C_HIDEMODE_ID
    Regards,
    Fabian

  • Indirect role assignment using HR org

    Can we use the indirect rôle assignement with thousands of users ? I mean is there any way to make a mass users assignation using this method ?
    Thanks!

    Hello,
    The switch for ORGPD is activated.
    Our organization's position and job categorization is be very generic, according to the functional requirements of HR department on OM. This department is new on SAP so they are unaware of the basis team's requirement/need for an "semi-automatic" role assignment. Moreover, the functional desing on OM is done beyond this need, and it's not considered to redo the design again.
    We would like to use the task object type to link the roles, any other "unused" HR ORG object, or if possible, a custom HR ORG object with custom relations with standard OM objects. This last choice would be the best from the point of view of the basis team, because this way we would not interfere in a future use of HR ORG standard objects.
    The idea is to distribute the role assignment between basis people and HR people. Basis people would link the roles with the selected object and HR people would link the selected object with positions, functions, employees,...according to their needs.
    Is it possible to use a custom HR ORG object for indirect role assignment? If not, is it possible to use task for this purpose? How it's done?
    Yours,
    jmiturbe

  • Assignment of purchse organisation to site (plant) in IS-Retail

    Dear Friends,
    Would like to have simple Query
    We Have 3 Company Codes.
    Is we need to have different purchase organisations, Company-Code wise and purchase organisations are assigned to sites
    Or is it possible to have Centralised purchase Organisation for all Company codes in Specifically IS-Retail
    The Assignment of Centralised Purchase organisarion with all sites belongs to different Company Codes is showing an assignment error in STATUS specfically in IS-RETAIL.
    Plz advice.
    B.Regards
    Javeed

    If you want only one purchase organisation for the palnts in different company codes,assigne the purchase organisation to plants across the company code and don't assign the porg to company code.
    If we assigne the porg to company code then that porg can be used only fof rthat compnay code.

Maybe you are looking for