Forum Stats

  • 3,874,905 Users
  • 2,266,789 Discussions



Java Neophyte
Java Neophyte Member Posts: 7
edited Jan 1, 2019 12:29PM in Abstract Window Toolkit (AWT)

Hello, I have a class that writes the exact same report to 2 diff. outlets.  The rpt lines consist of 5 fields which vary in size but I pad them all w/ blanks so each field is consistent in size across records. For instance, Field1 is the same size in every record, just padded by a varying # of blanks.

Outlet 1 is a .txt file, and the report's format is correct.

Outlet 2 is a frame List Box. In it the lines do NOT line up correctly. The fields in each line have many of their blanks truncated. I verified that each field in each line is of the right length so something in the LB code is doing this. The report looks bad.

Anyone have insight into this?   THANKS