Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Could someone explain how to solve this problem?

 
kenny gill
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The question I'm being asked:

What determines where the txtOutput string appears on the JPanel?

I believe the question is connected to this code:

txtOutput += "Sales Person " + (x + 1) + ": $" + sales[x] + "";

 
Paul Clapham
Sheriff
Pie
Posts: 20764
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing in that code has anything to do with displaying a string in a JPanel. All that is happening there is that some data is being appended to an existing string value.

So the code which answers your question is elsewhere.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic