Adding a new line in JTextField

Hi all,
Currently i am writing a program to display information about football players in a JTextField.
What i want to have is Number, Height, Weight and DOB displayed when each seperate player is clicked on in a JList.
This is the code i have to print out the data. Let me know if you need any more.
public void setMessageField(String text){
             messageField.setText(text);
private void playerNameListValueChanged(javax.swing.event.ListSelectionEvent evt) {                                           
        Player player = playerDatabase.get(playerNameList.getSelectedIndex());
        parent = ((collingwoodDatabase)getTopLevelAncestor());
        parent.setMessageField("Number : " + player.getPlayerID() +
                               "Height : " + player.getHeight() +
                               "Weight : " + player.getWeight() +
                               "DOB : " + player.getDob());
    } At the moment the data is printed out on the same line directly after each other.
I would love to have it formatted to show :
Number :
Height :
Weight :
DOB :
Cheers guys
Wicksy

parent.setMessageField("Number : " + player.getPlayerID() +
        "\nHeight : " + player.getHeight() +
        "\nWeight : " + player.getWeight() +
        "\nDOB : " + player.getDob());

Similar Messages

  • Copy the data from first line while dynamically adding a new line in table

    Hi,
    1. There is a table
    2. An add button adds a new line to the table using 'AddInstance'
    3. A record is entered in the first line
    4. When the add button is clicked it adds a new line and along with it copies the data entered in the first line
    My question is how to copy the data from the first line and show it in the new line added. This is required so that user can use most of the common values in the first line.
    Thanks,
    Nikhil

    You can use the following Java Script in the Click event of the button.
    // Get the number of rows in the table
    var nrows = xfa.resolveNodes("page.table.DATA[*]").length;
    // Add a new instance(row) to the table
    page.table.addInstance.instanceManager(1);
    xfa.form.recalculate(1);
    // Copy the values from the first line to the newly created row
    page.table.DATA\[ nrows \].field1.rawValue = page.table.DATA\[ 0 \].field1.rawValue;
    ..........field2
    ..........field3
    Thanks,
    Chandra Indukuri

  • Adding 2 new lines to existing plan with phones I already own.

    I have 2 droids on a family plan. 700 mins. 250 text each and unlimited data each. I want o add my elderly inlaws (70+) to my plan, sharing talk minutes only. I own 2 verizon flip phones and don't want to buy any new ones. Can I do this for $9.99 each?

    VanessaC_VZW wrote:
      However, if you do not want a contract on the new lines, (since you will have your own equipment), the activation fee will be $35.00 per line.  If you agree to a 2-year contract for the share lines, the activation fees will be $25.00 per line.   
    You can add the new lines by calling our Telesales Department at 800-256-4646.  
    Thank you,
    Really?!  I didn't know that made a difference...I thought secondary lines were $25 - well, ya learn something new every day!
    And a side note - we added a line for my 75+ yr old mother with one of our old flip phones and CS was extremely kind in waiving the activation fee (I could have sworn it was $25 charged and credited on the bill), PLUS they boxed up the flip phone after activating it (with an out of state number to boot) and shipped it to my Mom, all at no additional cost to me.  I'm not saying that will be everyone's experience, and I was amazed the service rep offered to ship it for me - but I smiled and said "THANK YOU!" and accepted it!

  • I Just Added A New Line For My Sister, new # isnt there?

    Well, my family had added another line to our plan. We have ordered her phone already, and completed the whole transaction. Then I went to my verizon account, and I checked all our phone numbers, and the new line we added isn't there? Is the number supposed to show up later on? I have just ordered this morning.

    The same thing just recently happened to me on my account, I received the phone and everything but I couldn't activate it via online or by phone so had to call customer service, they activated right then. Just keep checking your order status online to make sure everything processed fine because it may just be activation issue they are having.

  • Adding a new line - do I HAVE to buy a new phone?

    I am in the process of adding my wife to my calling plan. Unfortunately, it seems as if I can only do so if I purchase a new phone to go along with it. I have found phones online that are much cheaper, however, and would rather buy the phone seperately. Is there a possibility that you can add a new line without having to purchase the phone? If I can get my wish, I would add my wife to the plan and buy her new phone via amazon.

    When you add a new line, you can choose from one of 3 contract lengths - Month-to-Month, 1-year and 2-year.  If you sign a 1 or 2 year contract, you get a bonus, a discounted phone.  You can certainly add a line without buying a phone, but if you sign a contract there is no reason NOT to take the discounted phone.
    If you want to get a phone at the discounted price, you need to buy it at the same time as you sign the contract for your new line, or you will be asked to pay full price for the phone.  Some third-party resellers can add a line to your plan and sell you a discounted phone, others can't or don't, you will have to check with the specific vendor.
    Also, be sure to read the third-party contract, the reason they sell phones so cheaply is that they tie you into a contract of their own, with a separate ETF if you change your plan or de-activate the phone within a certain timeframe.

  • Adding a New Line in the Planning Workbook

    Hi,
    Consider this :
    I have Charateristics and Kpis
    CH1        CH2           CH3                   KPI
    A000      A010          A011                  100
    A000      A010          A012                  100
    A000      A010          A013                  100
    A100      A110          A111                  100
    A100      A110          A112                   100
    Now, I wish to add a new line, because I have a new master data A014
    A000    A010           A014
    My query has filter like this
    1. CH1 is assigned a Variable
    2. CH2 is given a value range from 1 to ZZZZZZZ ( because, I know, I can never have anything outside )
    3. CH3 is given a value range from 1 to ZZZZZZZ
    CH3, CH2, CH1 have characteristic relationships maintained with derivation.
    Now, I want to be able to maintain this new line as shown above for the new master data and plan on it. But I do not see any new line option.
    I am using Bex and Integrated Planning with Support pack 7.
    Maybe I am doing something wrong. Could you tell what are the pre-requisites to be able to this new line option ?
    Best wishes,
    Dheeraj

    hello Dheeraj,
    just try to input the values in the row under the last row of the layout.
    If you then save the data, IP will save this values too.
    With other words, IP saves all data in the layout till it meets the empty row ...
    The only thing you should do is to format the rows at the bottom of the layout (via VBA) in order to display them as input ready cells.
    Regards,
    Kirill

  • Workflow Action: Trouble adding a new line in "Description" field.

    Hi folks. I'm really having a difficult time with this one and it seems so simple...
    I am struggling with how to get a field update action to enter a line break in a note field. I've tried "\n", "\n\r", "chr(13)", "chr(10)", "<br>" and so on.... it just puts the text of what I use into the Description.
    Here's the simplified workflow action...
    [<NextStep>] + "\ \n" + PRE('<Description>')
    What it's supposed to do.. is every time someone updates the field [<NextStep>], I want to replace the contents of the description field with the new value for nextstep (plus a new line) and then followed by everything that was in the description field previously. This way I have a running log in the description field.
    Idealy it should put:
    Today() + ": " + [<NextStep>] + <line break> + PRE('<Description>')
    but when I add the Today() it ignores everything that follows. I'm not as worried about that as I am about the inablity to put in the line beak. Please help!!!
    Thanks!
    Edited by: ThinkGadget on May 11, 2009 9:13 AM because the forum interpreted the "\\n"
    Edited by: ThinkGadget on May 11, 2009 9:15 AM (I put a space between the two back slashes so that the forum doesn't interpret it as a new line)

    I had used the "\\n" in my expressions to add a new line in the Description field. Only issue is also add a \ to the end of line but that was acceptable in my case. We are on OOD R16.

  • Doc flow linkage when  adding a new line in a  Billing order

    Hi,
    I am trying to add a new line in an existing billing order using CRM_ORDER_MAINTAIN function module.
    This billing order was initially created from a preceding document and hence the pricing conditions flowed from that document to the line item created at that time.
    In the doc flow for the line item did have reference to the previous document.
    Now I need to create a new line item in the billing order. I am able to establish a linkage with the previous document for the new line item. The pricing conditions do get copied. But the problem is the linkage with the previous document does not appear in the document flow for the new item.
    following is my code for the document flow for the new line item
    Input fields
    doc flow
    ls_input_field-ref_kind = 'B'.
    ls_input_field-ref_handle = '0000000001'.
    ls_input_field-objectname = 'DOC_FLOW'.
    ls_input_name-fieldname = 'QUANTITY'.
    insert ls_input_name into table ls_input_field-field_names.
    ls_input_name-fieldname = 'QUANTITY_UNIT'.
    insert ls_input_name into table ls_input_field-field_names.
    insert ls_input_field into table p_input_fields.
    data
    wa_doc_flow_extd-objkey_a = previous document line item guid
    wa_doc_flow_extd-vona_kind = 'A'.
    wa_doc_flow_extd-brel_kind = 'B'.
    wa_doc_flow_extd-brel_mode = 'A'.
    wa_doc_flow_extd-quantity = p_prevdoc-quantity.
    wa_doc_flow_extd-quantity_unit = p_prevdoc-quantity_unit.
    wa_doc_flow_extd-reltype = 'VONA'.
    wa_doc_flow_extd-relation_handle = '0000000002'.
    wa_doc_flow_extd-objtype_b = 'BUS2000131'.
    wa_doc_flow_extd-objtype_a = 'BUS2000131'.
    append wa_doc_flow_extd to wa_doc_flow-doc_link .
    wa_doc_flow-ref_handle = '0000000001'.
    wa_doc_flow-ref_kind = 'B'.
    insert wa_doc_flow into table p_doc_flow.
    Thanks,
    Chamu

    Hi,
    I was able to solve it.
    The relationid field in the document flow table had to be filled.
    I used the same relationid which was created for the previous item and it then worked.
    Regards,
    Chamu

  • Adding a new line item using BAPI_OUTB_DELIVERY_CHANGE

    Hi,
    I have a requirement to add a new line item to outbound delivery to the existing line items using the FM BAPI_OUTB_DELIVERY_CHANGE.Pls suggest how to do it.
    Thanks in advance.
    Anand

    Hi,
    Did you Check IN SCN like [THIS|Re: BAPI_OUTB_DELIVERY_CHANGE Help - Add new line item].
    Regards,
    Rahul

  • For Adding up New Line in existing PO

    Hi,
    I have created PO through Import Standard Purchase Order and now client requires to add more line into existing approved PO which has been migrated through interface table.So,I wanted to know what necessary steps I need to follow for adding lines into existing purachse order.I tried to update action column as 'ADD' in po_headers_interface table but everytime records is being rejectd.
    Please help me if anybody knows the solution.
    Regards
    DS

    hi,
    you want to do change PO, if it is the case, oracle has provided public APIs to do the changes. for details you can refer manufacturing api's and po interface tables pdf docs.
    sen

  • Adding new line item directly to PO

    Hi,
    We have a requirement for adding a new line item directly within the Purchase Order in SRM (without using the shopping cart). We are using the FM BBP_PD_PO_UPDATE for this purpose. However, we are getting the following error while updating. " BUFFER TABLE NOT UP-TO-DATE". Please provide assistance in order to resolve this issue.
    Regards,
    Arun

    We achieved  based on the Security roles to identify if the user is Requester or Purchaser or Manager and Webdynpro changes by the portal team to activate the Change and Order button based on the required business rules.
    Transaction Code for PO Change to be added to the security role.
    Requisitioner:  Any user with out any existing A012 relationship with any existing Organizational units on the current date:
    Manager:  Any user having A012 relationship with any existing Organizational units on the current date.
    If the Authorization object checked programmatically results the value of "PUR" then the standard SAP code for "Purchaser" has to be executed.
    Some additional Info :
    Control list of PO using BADI BBP_WF_LIST - Change Work lists and Search Results Lists   Method:  BBP_WF_LIST
    Badi -BBP_AUTHORITY_CHECK for any additional authorisation checks
    Hope this helps.
    Thanks
    Balaji

  • Add a new line to get Iphone 4s instead of ETF?

    Could I add a line to our family share plan to get the Iphone 4S, and after activation on the same day switch the Iphone to my current phone line # on the same plan, and then add an old non data phone to the new line added to buy the iphone? That way I get the Iphone at the 2 year price and not have to pay a early termination fee, plus I get to keep my current phone # and unlimited data? Will this work? Help please!

    I would be buying this from a verizon store. I went tonight to buy the iphone 4s and I was told I couldn't because last May I decided to pay the difference for a new phone instead of getting the same phone they had replaced many times and I kept having issues with having poor reception quality. So I bought my current Droid X for $199.99 plus $20 more for the early upgrade fee, so I got no discount. I am told today that I used my upgrade in May so I have to wait until January of 2012 to upgrade to Iphone 4S or any other phone unless I pay retail price of $649.99. So my husband and I decided to see if it would be worth just adding a new line and switching the phones around. Do you see me getting any grief for doing this?

  • How do I add a new line to an already open but exhausted PO?

    Hello,
    I am looking for way(s) I can add a new line to an already open  PO, (whose funds are exhausted) to accomodate unplanned expenses related to the same project/vendor.  Is adding a new line to the original purshase requisition the right way to go?
    Thank you
    Fatima
    Edited by: Fatima Imraan on Jul 4, 2008 8:05 PM

    Hi Fatima,
    For unplanned expenses we actually do not need additional line item.
    In case the invoice from vendor shows other expenses then in MIRO there is a TAB for Unplanned Expenses and we can put such expenses there. These expenses should be with in the tolerances limits set. Now if the expenses cross the limit, depending on the settings you have made, the invoice is posted but blocked for payment. Then some one in the approval list should approve the same and the payment can be made.
    This whole process also gets recorded as PO history and hence is very well documented as well
    Normally once a PO is signed it is binding on both parties. So as a Business Process we should not try to add a line item when the PO is exsausted.
    In such case i think it would be a good idea to either create a new PO.
    Some times companies aslo use OPEN PO if it is a year round activity.
    Hope my explanation is useful. assign points if yes.
    Thanks
    Anand

  • Addition of new line line items in delivery while creating

    HI All,
    i have the requirement of adding a new line item in delivery items while creating it referencing a sales order.
    i have to add new line item based on the existing line items. i have done coding in badi save_doc_prepare.
    now new line items are getting added  but we are not getting values in all the fields which are determined by SAP.
    because after badi save_doc_prepare sap does not determine the values for newly added fields.
    can anybody suggest some good solution.
    thanks
    Rajpal Sehrawat

    try this BAPI BAPI_PO_CREATE

  • Restricting new line item of completed sales order in VA02

    Hi,
    My requirement is to restrict the user to add new line items for Sales Order if the <b>Header status</b> is completed in VA02 transaction.
    I have done the coding in "<b>userexit_move_field_to_vbap</b>" as it is displaying pop up an error message and stop the users from adding a new line item.
    Popup message contains 2 buttons 'Continue' & ‘Exit’.
    If user clicks ‘<b>Continue</b>’ it should be stay in same transaction (Va02) and if user clicks '<b>Exit</b>' it should exit the VA02 transaction.
    But when I click the '<b>Continue</b>' button it is staying in the same transaction and newly entered line item values are not clearing. But these values should not appear after clicking '<b>Continue</b>' button.
    Can any body please help me in this regard?
    Thanks in advance.
    Ranjith.

    Hey,
    Is this ranjith tavidisetty.... if yes please call me on 09974440499...
    need to speak to you.....
    regards,
    naveen.

Maybe you are looking for

  • Failed to mount partition of MAC OS Extended (HFS+)

    Dear all, please help me save me, as well as my External hard disk !! As a matter of fact, my 1TB External hard disk has three partition: MAC OS, NTFS and FAT32. All of the partitions work very well in the past. However, I just discovered that my MAC

  • Window.print() not working for swf file in webpage?

    I have used the javascript window.print() function to print a webpage. But when i click a button to invoke this function the swf file stops then the screenshot is taken and then it resumes playing,, thus resulting in a blank page to be printed... Wha

  • IAd Producer Switch Object

    Hello All, I'm attempting an iBook for my school, and I would like to add a widget to this book. In this widget I have an anatomical drawing, and I would like to use the switch object to toggle arrows on specific structures. I've been successful in g

  • One more time...Incorrect Address message

    Just joined so messed up my first post. Recently I've been getting an "Incorrect Address" drop down message when I try to buy music from the iTunes Music Store. I haven't changed any of my billing or credit card info at all but continue to get this m

  • Unit Of Measure Conversion in the SNP Planning Book

    I have a problem in (a copy of ) the standard SNP Planning Book 9ASNP94. I often need to view data in different units of measure however, but would like to avoid having to set up multiple Planning Areas.  I know how to change the Unit Of Measure on m