JTextArea, Printing more then one Array item

I have a run time problem. I am loading arrays to be printed out in a JTextArea. I'm using netbeans to create the application.
I want to be able to print out the array items into the text field. Is there anyway I can do this. At the moment it is just printing out the last item of each array into the Text Area. Can someone please explain the problem with the text area, or how to get multiple items from an array printed in an application.
public void ArrayPrinter(String[] AirlineName, String[] Destination, int[] SeatsOpen, double[] TicketCost){
         for (int i = 0; i < AirlineName.length; i++){
            jTextArea1.setText(AirlineName[i] + ", " + Destination[i] + ", " + SeatsOpen[i]+ ", " + TicketCost);

Call append() rather than setText().
While you're at it, get your data out of parallel arrays and into a proper class.
[The Java� Tutorial - Lesson: Classes and Objects|http://java.sun.com/docs/books/tutorial/java/javaOO/index.html]
~

Similar Messages

  • Print more then one pdf in window

    Hi, i use print preview for printing one pdf in crm, for one pdf everything works fine, but i need print more then one pdf in one popup window, any idea how to do it ?

    Hi, i describe process i have 4 adobe forms: - agreement 1 - agreement 2 - attachment A - attachment B user click on button print preview, popup windows is show, on this popup windows user have to choose one of  two adobe form (agreement 1 or agreement 2) after choosing adobe form, form that has been selected is printed in and display in new popup windows but sometimes, depending on the circumstances i have to print form that has been selected by user and attachment A (or/and) attachment B I wonder if there is the possibility to merge this 2 or 3 pdf in on pdf ?
    I use this code:
    * Create PDF Object.
       data: l_pdfobj type REF TO IF_FP_PDF_OBJECT.
       l_pdfobj = l_fp->create_pdf_object( connection = p_dest ).
    * Set document.
       l_pdfobj->set_document( pdfdata = fp_out ).
    * Execute, call ADS.
       l_pdfobj->execute( ).
    * Get result.
       l_pdfobj->get_document( importing pdfdata = fp_out ).
    maybe i can add pdf to the l_pdfobj.... but i don't know how,
    right now l_pdfobj get only one pdf.

  • I can't print more then one page of a firefox document that is more then one page long. os xp3sp

    I can't print a document that was created by firefox and is longer then one page.
    == when I started using firefox

    Firefox has problems with some style rules.
    First, it's always helpful to use any print-formatted or print-optimized version of the page. Sometimes there is a link for this.
    Second, in some cases you need to use this trick: press Ctrl+a to select all content on the page, then Ctrl+p to display the print dialog, and click the radio button next to Selection.
    Those tricks don't always work, but hopefully they will help.

  • Printing more then one even Sites to one paper

    Hallo,
    I have some trouble with printing on Mac OS X 10.6.4:
    I want to print 16 pages from a Document (Number 1 till 16).
    I select uneven pages for the first run (I want to rotate the paper after this run to print the back side after that). So I print page number 1,3,5,7,9,11,13,15 in the first run and after that I turn the Papers and print page number 2,4,6,8,10,12,14,16.
    That works fine.
    But now I want to print 4 Pages to one Page. So I want to have 2 Pages in the first run, with Page 1,3,5,7 on the first Page and 9,11,13,15 on the second page. In the second run I want to have Page 2,4,6,8 on the first Page and 10,12,14,16 on the second Page.
    Now Mac OS have a bug: Mac OS prints me with this settings on the first run Page 1,2,3,4 on the first Page and 9,10,11,12 on the second Page. On the second run Mac OS X prints Page 5,6,7,8 on the first Page and Page 13,14,15,16 on the second Page.
    Does anybody know how to fix this?
    Or is there any other workaround to print like I descriped it how I want to have it?

    Call append() rather than setText().
    While you're at it, get your data out of parallel arrays and into a proper class.
    [The Java� Tutorial - Lesson: Classes and Objects|http://java.sun.com/docs/books/tutorial/java/javaOO/index.html]
    ~

  • Can I add more then one mask item on the data collection ?

    Hi,
    I have a requirement, for example as follows.
    ex.
    Data collection: DC01
    Parameter 1: P1 and Type is text.
    P1 parameter just only allow two values, "AB" or "CD".
    Data collection's mask can do that?  If not, any good soultion can do that?
    thanks!

    Hi,
    There might be the case to use Formula to interpret the input value to one of 3 possible options.
    Though, you can consider the easier approach:
    - set the parameter type to Numeric;
    - set MIN = 1;
    - set MAX = 3;
    - set Mask = #.
    This implies that only 1, 2, or 3 can be entered.
    In Data Collection Prompt, you can decribe which number corresponds to which colour.
    Regards,
    Sergiy

  • Printing salesinvoices, is it possible to do it for more then one invoice?

    Is there a method to use VF03 with a selection for more then one sales invoices?
    I want to print them as pdf file, so I have to fill in the field billingdocument, but I need it for more then one invoice at the same time.
    I tried but it seems not to work. Is it not possible? Or is there another solution to print more then one invoices at the same time?

    Hi,
    check in the Commnication method of your Output type whether In the NUMBER OF MESSAGES field was maintained as 4
    No of messages field will control the Number of invocies to print
    check this and revert
    thanks
    santosh

  • How to create a service call for more then one item

    Hi All,
            How to create a service call for more then one item. i.e. the service call should be logged for more then one item

    As you noticed this is not possible by design.
    Maybe you could have a dummy item for that purpose and register the real items to be handled in a UDT...
    HTH

  • Display More then one column in to POP LIST OF VALUE Item

    Dear All,
    i want to display More then one column in to POP LIST OF VALUE Item like POINTNO,CITY_NAME,REGION_NAME,POSTEL_CODE .
    How can i display these 5 Column in to POP UP LIST OF VALUE Item.
    Thanks
    Vedant

    Hi,
    Here is my example how to get the address data from address book:
    on page, where is the IR report with many columns (as a popup page) there is a Column Link of URL type - you can choose any colulmn .
    In the URL address type: javascript:passBack('#ID#', '#NAME#', '#SURENAME#', '#COMPANY#', '#STREET#', '#CITY#', '#POSTAL_CODE#', '#STATE#' );self.close();
    self.close function close the popup after fetch.
    It will call a passBack function declared in page header.
    Example:
    <script language = "JavaScript">
    function passBack(v_addr_id, v_name, v_suren, v_comp, v_street, v_city, v_postal_code, v_state) {
    opener.document.getElementById('P2_ADDRESS_ID').value = v_addr_id;
    opener.document.getElementById('P2_ADR_NAME').value = v_name;
    opener.document.getElementById('P2_ADR_SURENAME').value = v_suren;
    opener.document.getElementById('P2_ADR_COMPANY').value = v_comp;
    opener.document.getElementById('P2_ADR_STREET').value = v_street;
    opener.document.getElementById('P2_ADR_CITY').value = v_city;
    opener.document.getElementById('P2_ADR_POSTAL_CODE').value = v_postal_code;
    opener.document.getElementById('P2_ADR_STATE').value = v_state;
    </script>
    If you want set only one value, just make a similar function with only one parameter.
    I hope it will help to you
    J

  • Selecting more then one item in ITunes

    Trying to clean up library and need to delete a number of files/items. I see that you can only command and click each individual file to select more then one but is there a easier way to do this? Want to be able to scroll over selection... then delete.
    Also when you use option show duplicates this also shows the original as well as the duplicate? Is there a way to ONLY show the duplicate file. So that to would be easier to delete?
    Thanks in advance.

    Shift click to select multiple items from the iTunes window. Select one item then hold down the shift key and select the another item.
    Show Duplicates will show both. iTunes doesn't know one from the other. No program does as far as I know. The Show Dups will show the dups - you have to decide which one is a dup. iTunes is showing you the tunes with the same names - the bit rate, kind, etc maybe different - you will need to decide which one to delete or rename.
    MJ

  • Installing more then one HP All in One networked printer on one computer

    I want to be able to install more then one networked all-in-one printer on a single computer.
    This is need to be able to move from home office with one all-in-one to a client's location
    with another all-in-one but a different model.
    I have been told in the past that I can connect one via network connection and one via USB
    but this is not an acceptable solution because the printers are networked and used buy more then one system
    at a time.
    I don't think this is a unique situation for consultants or moble workers.
    Is there a way to do this with networked HP all-in-ones printers?

    What are the printer models and your operating system.  I am using both the Photosmart 2610 and Officejet 7410 networked here and have additional drivers installed for a K60 that is at another location I occasionally visit.  Typically you would install the most recent driver and install the printer, then run the installer again and specify "Add printer".
    Regards,
    Bob Headrick, Microsoft MVP Printing/Imaging
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • How do I select more then one channel to view in tdms file viewer graph panel

    I have a TDMS file that I can view with the labview 2013 TDMS file viewer and I can select one signal out of 15 signals to view on the graph panel. however I would like be able to look at 2 or 3 signals
    on the same graph but can't seem to be able to select more then one signal at a time. Is there a way to select more then one to view?  

    I've modified the TDMS viewer in the past to allow selecting multple channels.  It's a little bit of a pain because the tree control in the viewer only allows you to select one item.  You have to edit the tree to allow multiple items.  Now your selection is an array instead of a scalar.  This means the rest of the code has to be updated, and the references to the tree in subVIs need to be updated.  Not impossible but it takes some time.  Alternativly open it in Excel with the free add-in then you can select the two columns you want and insert a graph.  Not as simple for the user but using Excel, which users should be familiar with might mean users need less training on data files.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Is there a way to Search (List search) for more then one field text from a column for Bulk uploading?

    I've been trying to find more information on this and I apologies if this has already been answered. I just don't know the correct way to ask this. We have a SharePoint List at the company that we have people input information into different columns. The
    problem is most of those information are very repetitive. Is there a way for me to search more then one field text in the column and just input that same information in?
    ex:
    Column 1
    Column 2
    Date:
    883851
    MidWest
    User input 
    8831518
    MidWest
    User input
    On the search field in the SharePoint List, I would need to search for 883851, 8831518 etc,  would view those requested numbers, then I would click edit and change dates to those rows. Does that make sense? I'm sorry I'm fairly new at sharepoint.

    I think what you're asking is about having repetitive options in a list, show up easily for new items being created.
    This can be done by setting the columns that contain repetitive information to Choice fields.  In the configuration of the Choice field, check the box for "Allow custom values".  Now as users are entering data into the list, the dropdown of options
    for a given field grows and users can quickly see and select previously entered and thus repetitive values for the given fields.
    I trust that answers your question...
    Thanks
    C
    |
    RSS |
    http://crayveon.com/blog |
    SharePoint Scripts | Twitter |
    Google+ | LinkedIn |
    Facebook | Quix Utilities for SharePoint

  • Does anyone know how to print more than one picture on a page?

    I am having trouble finding a way to print more than one image per page with Aperature? Do they have other options like photoshop?
    Jim

    What I have done is use the book pages with my own layout.
    The problem with this is you are hit and miss to get exact final dimensions for each of the images. You need to print and then measure. I used my laser printer to not waste ink and paper, then the Lineups are ok. Once you have your template sizes correct, then you are fine and it is repreducable for any picture package combo you want.
    I have fussed with it so I can get 2 5x7s on a page with the correct dimensions.
    The photobox property popup has aspect ratio, alignment and should also have a DIMENSION option. This would be super as the rest of the book page layout is pretty flexible.
    Good luck.

  • K5400 will not print more than one page at a time.

    The K5400 Office Jet Pro will not print more than one at a time when I change the number of pages to print in Printing Preferences.  I have downloaded all the updates available and have tried many times.
    Using a Windows XP SP3 computer.
    Thank you, Marion

    Hi,
    The HP Deskjet 1050 All In One can perform multiple copies at a time. To perform a multiple copy, press the Copy Black or Copy Color button as many times as the copy is required. A maximum of 10 copies can be performed at a time.
    Please open the link below which illustrates the same.
    http://h10025.www1.hp.com/ewfrf/wc/document?docnam​e=c02459739&tmp_task=prodinfoCategory&lc=en&dlc=en​...
    If the issue persists then, please perform the steps as shown below and check the copying function again.
    Steps to perform a reset.
    Press the Power button ( ) to turn off the product.
    NOTE: The product might not turn off after pressing the Power button. Continue to the next step regardless.  
    Disconnect the power cord from the rear of the product.
    Disconnect the power cord from the electrical outlet.
    Wait 30 seconds.
    Reconnect the power cord to the electrical outlet.
    Reconnect the power cord to the rear of the product.
    Press the Power button ( ) to turn on the product.
    Connect the unit directly to a wall outlet.
    Check the copying function now.
    I hope this resolves the issue, if the error persists then please get back to us.

  • Cannot print more than one copy! Any ideas?

    My wife came home with a HP 5400dn officejet pro the other night from Staples.
    After setting the thing up with a successful test page, I tried a real print job. So far so good. Then I tried to use the duplex function but wait, where is the option to duplex print? There isn't one, even with a 2 page document!
    Then I tried to print a two sided document manually, first one page, then the other. OK, fine, but what if you want 10 copies of one side?
    No way! I hit the print command, set the number of copies, and get 1 copy. Again and again. And again. It does not matter whether I ask for 5, 10 or 40 copies. I get 1 copy.
    So I called HP and after 45 minutes with a Mac using tech who is mirroring everything he tells me to do, we can't get the thing to print more than one copy.
    So he tells me he will forward the issue to HP engineers who conference call with Apple engineers weekly to resolve these kinds of issues, but he thinks its is an OSX 10.4.10 issue.
    So because I need a printer, we go out yesterday and buy a Brother 4040cn color laser printer (Staples again, great price, 399). Today I set it up in 10 minutes, easey peasey, and guess what? Still no multiple copies.
    Does not matter how many I ask for, print quality is excellent, but it will only give me one copy.
    Sounds as though it is an OSX issue, no?
    But wait! I am using Open Office 2.2, could that be the problem? I don't have any microserf Office products to test from, could it be the application not the OS?

    But wait! I am using Open Office 2.2, could that be the problem? I don't have any microserf Office products to test from, could it be the application not the OS?
    There does seem to be a problem with OpenOffice 2.2. I just tried printing 3 copies of a document. It only printed one copy.
    I looked at the CUPS error_log to see what was happening. I have CUPS debugging turned on. The parameters that OpenOffice sent to the printer show:
    D [18/Aug/2007:10:25:06 -0500] StartJob: argv = "Epson1280_GP_5_usbtb","251","matt","Test Copies","1","InputSlot=Standard PageSize=Letter","/private/var/spool/cups/d00251-001"
    I then sent a print job requesting 3 copies from BBEdit. The parameters that were sent to the printer show:
    D [18/Aug/2007:10:35:25 -0500] StartJob: argv = "Epson1280_GP_5_usbtb","252","matt","Test Copies","3","StpQuality=Standard
    The important parameter appears after the job title "Test Copies". The job from OpenOffice shows it requested one copy. The job from BBEdit shows it request 3 copies.
    I don't have a solution for you, but I can confirm where the problem is. It would exonerate both the printers you tried.
    Matt
    Edit: Crossed out text is due to Apple's rendering engine and using left and right square brackets.
    Message was edited by: Matt Broughton

Maybe you are looking for