目前我有这个输出:
State: FL
Name: Telephone
Code: xx-xxx
Manufacturer: Motorola
Price: 254.99
State: NY
Name: Computer
Code: xx-xxx
Manufacturer: Motorola
Price: 756.99
我需要这个输出:
Product Code Purchase Date Quantity Price Manufacturer State
Telephone xx-xxx 01/20/2013 10 254.99 Motorola FL
Computer xx-xxx 01/06/2013 15 756.99 CBS NY
我必须使用“使用可滚动窗口”来显示输出,因此我使用滚动 Pane 。
最佳答案
关于java - 如何在 JScrollPane 中格式化此输出?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21368244/