Help with writing results of a loop to one window.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Schwabs
    New Member
    • Mar 2008
    • 1

    Help with writing results of a loop to one window.

    I am attempting to gather interest data and post it into one window. I am able to get the to write properly using the Standard I/O, however, when I attempt to display the data using JOptionPane.sho wMessageDialog, the user is forced to hit OK until the loop condition is met. I was told I can use a string to gather the information, however, I have been unsuccessful with that attemp. Any help would be greatly appreciated.

    Thanks
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    hi ...

    does that question concerns any javascript? please post the code you already have ...

    kind regards

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Obviously a Java problem. Moved to the Java forum (JavaScript != Java).

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Use a StringWriter, wrap it in a PrintWriter and print your data just
        as you would do using System.out.prin t(). At the end call the toString()
        method on the first writer and use that for your JOptionDialog.

        kind regards,

        Jos

        Comment

        Working...