How can I print out an Array List in my GUI program?

I have an ArrayList of Objects which I want to print out in a TextArea in my GUI. I tried using setText(), but it seems like that can only handle strings. Does anyone know of an alternative method or some other way to get around this?

Ok, I have an object name Instrument which contains a double price, String name, int numberInStock. In my GUIFrame class which creates the GUI obviously, I have a button listener that should print out my ArrayList in a TextArea when clicked on a button.
Here is the code:
private class showIResponse implements ActionListener{
          public void actionPerformed(ActionEvent e){
               showText.setText(parseString(ali));
it is still giving me an error saying "cannot find symbol method parseString(java.util.ArrayList<java.lang.Object>)"

Similar Messages

  • How can I print out a hardcopy list of my bookmarks with the URLs? in English

    I want to print out a hardcopy listing of my bookmarks with URLs, How do I do this?

    You can make the menu bar appear by presssing the Alt key. You can print from the File menu.

  • How can I print out my album list from ITunes?

    When I open up Itunes, I have over 400 albums and I would like to print out just the names of all my albums but I cant seem to figure out how. When I try to export my song list, it gives out way too much like every song on each album and it goes to wordpad and I want MS word. What can I do?

    You should have received emailed receipts for each item that you bought from the store. If you haven't got them then all that you can do is take screenshots of your purchase history.

  • How can I print out contact list showing info for contacts?

    How can i print out my contact list showing info. (phone #, email address, etc.)

    Go to my web site at https://sites.google.com/site/ipdparse to download macro and view documentation. IPD Parse runs on Windows and Excel. It produces reports for several DBs including Address Book (contacts). My contact information is on my website. Let me know if you have questions or comments. All my services are free.

  • How can I print out the contents of my hardrive

    I have a hardrive with about 200 video clips and need to print the titles for cross refrerencing. I was just going to "grab" screenshots but this will take about ten sheets of paper. How can I print out a list of all the files on the drive?

    I tried this Finder drag method & discovered that it is very important to set the blank TextEdit document to plain text before the drag (from the format menu or with Cmd-shift-t). If you don't, TextEdit attempts to load the content of the files!
    Once I discovered this, I tried the method with Find (Cmd-F) results & it works for that, too. This means that by choosing the right combination of search location(s) & search criteria, you can extend the method to filter the list to just about any files you want, which could be very handy.
    For instance, set the "Kind" criteria to "QuickTime Movie" & location to "Computer" & you get a list of every QT movie. Or set the search location to the folder containing the movies of interest & you get all of them, including ones in subfolders. You could also use the 'date created' or other search criteria to filter the list to a specific subset of movies (or whatever).
    If you need to do this often, you could create one or more 'Smart Folders' with the criteria preloaded for each search.
    The only drawback I see for either Finder based method is the full path one. If you are getting results from just one or a few folders, Find & Replace can delete any of the path name fairly easily, but it becomes a chore if there are a lot of different ones. Some other text editor, like TexEdit Pro, that supports grep searches would be handy here, but since I'm not up to speed on grep, someone else will have to explain how to use it for this, if they want.

  • How can i print out the waveform chart?

      hello everybody,
    how can i print out the "waveform chart". can i do it just push the button. ( example; stop button is stop the program etc..)
    i checked the NI examples but i can't understand. i'm new to the Labview.
    pls help me.
    i added the my program
    look forward your reply
    regards from turkey...
    Message Edited by hknmkt on 05-29-2008 04:15 AM
    Attachments:
    29.05.2008_11.vi ‏37 KB

        hi jim,
    i tried the program but it's not running. When i run the program, it's print out without run the program
    i added the printed file.
    look forward your reply
    hakan
    Attachments:
    error8.JPG ‏8 KB

  • HP 3050 how can I print out the printercod​e / e-mailadre​ss of the printer??

    HP 3050 XP/7
    For using the ePrintserviceI have to fill in the printercode / e-mailadress of the printer. How can I print out these informations. I already printetd out the Net configuration page (Netzwerkkonfigurationsseite) and the printerstatus (Druckerstatusbericht). I can find URL, Hostname but not printercode / e-mailadress.
    I´m not sure if I enabled the webservice of the printer.How can I check this setting and how can I enable webservice.
    Posts in German language would be great, but english is ok as well.
    THX very much!!

    Hello oli-b,
    The DeskJet 3050 does not have the Web Services feature which allows ePrint and the email address of the printer. The printer you would need is the DeskJet 3050A which includes these features.
    If this is what you have then you would need to connect your printer to the wireless network using the setup CD software that was included with the printer. Once you have successfully connected to the wireless network, there should be an ePrint button on the printer that allows you to access the Web Services menu and enable this feature and give your printer an email address for ePrint.
    Hope this helps.
    If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • How can i print out more that one invoice ?

    Hello All,
    How can i print out more that one invoice?
    Regards,
    Luke

    Hi,
    When you are in billing document & click on "issue output to", you get a window having tab"print options"
    click on this by selecting your output type. In the feild "Number of messages" you enter how many times you want the print to be printed.
    This will help you.
    Additionally you can also write logic in your print program if you want the print to be fired some fixed number of times. (eg 4 times), this can be done by your ABAPer.
    Hopw this helps you
    Regards,
    Dhananjay

  • How can i print out old text messages?

    how can i print out old text messages?

    As Ann said, it does depend on your phone.  One third party app that works on many phones (especially older models, but not all phones) is BitPim ( http://www.bitpim.org/ ) but it can potentially harm/brick your phone if you don't know what you are doing - use it with caution.  I have used it successfully to get texts and photos off an old flip phone that was deactivated and had no sd card.
    Newer smartphones can download apps that will give you the ability to print out texts.

  • How can I print out my passwords

    How can I print out my username and passwords ? Presently I can only take a screenshot, which I don't care for.

    You can use the Password Exporter extension to export the decrypted passwords to a file and print this file.
    * Password Exporter: https://addons.mozilla.org/firefox/addon/password-exporter/
    See also "Printing passwords":
    *http://kb.mozillazine.org/Password_Manager

  • How can I print out a document on an '05 version of iLife (iWorkPages)  es)

    How can I print out a document on an '05 version of iLife that includes iWork? I want to make a document in Pages and print it. It tells me that I have to buy Pages, but doesn't tell me where to go to do that.

    Assuminh your profile is correct that you are running OS X 10.5.8, you need the version of Pages from iWork 09.
    Try to find the CD for it on eBay
    Allan

  • How can I print out a small size address book in Leopard?

    How can I print out my address book in Leopard, preferably in pocket size and preferably
    without each card having a separate page?

    First off, you've posted in the Tiger forum, even though your profile says you're running Snow Leopard. Even worse, you're asking about Leopard. You need to be sure you post your questions in the corrrect forum.
    As for the question itself, all you have to do is select the Group you want to print in Address Book, choose Print, select 'Pocket Address Book' from the pop-up Style menu, check the attributes you want included for each contact, and the paper size you want to use and Print.

  • HT4356 I don't have wireless printer. How can I print out the document?

    I don't have a wireless printer. How can I print out the document from regular printer?

    iOS AirPrint Printers  http://support.apple.com/kb/HT4356
    How to Print from Your iPad: Summary of Printer and Printing Options
    http://ipadacademy.com/2012/03/how-to-print-from-your-ipad-summary-of-printer-an d-printing-options
    Print from iPad / iPhone without AirPrint
    http://ipadhelp.com/ipad-help/print-from-ipad-iphone-without-airprint/
    How to Enable AirPrint on a Mac and Use Any Printer
    http://ipadhelp.com/ipad-help/how-to-use-airprint-with-any-printer/
    iPad Power: How to Print
    http://www.macworld.com/article/1160312/ipad_printing.html
    Check out these print apps for the iPad.
    Print Utility for iPad  ($3.99) http://itunes.apple.com/us/app/print-utility-for-ipad/id422858586?mt=8
    Print Agent Pro for iPad ($5.99)  http://itunes.apple.com/us/app/print-agent-pro-for-ipad/id421782942?mt=8   Print Agent Pro can print to many non-AirPrint and non-wireless printers on your network, even if they are only connected to a Mac or PC via USB.
    FingerPrint turns any printer into an AirPrint printer
    http://reviews.cnet.com/8301-19512_7-57368414-233/fingerprint-turns-any-printer- into-an-airprint-printer/
     Cheers, Tom

  • How can i get out the reading list???

    how can i get out the reading list?

    This really needs to be posted in the Safari forum but I will answer it here.
    What do you mean by get out? You want to see the list? Clicking on the pair of glasses controls the display of the list. The glasses are in the gray bookmark bar. Click once to open and click again to close the reading list.

  • How can I find out which Contact list in my outlook that iCloud is syncing with?

    How can I find out which Contact list in my outlook that iCloud is syncing with?

    Try the helpful tips in the following link to possibly make Outlook and iCloud play nice with your contacts:
    http://www.slipstick.com/outlook/icloud-outlook-problems-syncing-contacts/

Maybe you are looking for