... at, the Due report isn't all thatcomplex. I've already shown you how to create similar reports to the screen using xBaseJ and DBF files. All you had to learn here was how to create a panel with a text area. Once you knewthat, you could simply walk down the databases, sort the data, and print the report.124Chapter 2 – MegaZillionaire ApplicationMegaXbaseBrowsePanel .java 1) package com.logikal.megazillxBaseJ;2)3) import java. io.*;4) import java. awt.*;5) import java. awt.event.*;6) import javax.swing.*;7) import java. util.*;8) import java. text.*;9)10) ... library and many Java developers have begun migrating away from Swing. When it comes to the subject of layoutmanagers and Java, it looks like the subject was “tabled until later” and later still hasn't come.You position objects in a GridBagLayout via a GridBagConstraints object. Ordinarily youwill fill in only the anchor and gridwidth values, leaving the rest of the GridBagConstraints fieldsat their default values. Normally gridwidth is a numeric constant such as 1 or 2, but it can be acouple of “special” ... thesystem is idle to update the display, or finds itself forced to update the display. The lines of codein updateText() force the display manager to consolidate all of the updates and display them. Thisstep does slow down processing, so you should do it only at points in time when you feel the usermust see the progress which has been made.I need to point out one tiny little thing at listing line 103. You may not grasp why I calledtrim() after calling get(). The parseInt() static method throws exceptions if the numeric string youhand it contains spaces. I don't know why it doesn't call trim() on its own, but it doesn't. As youcan see by listing line 111, parseDouble() managed to handle things just fine.Listing lines 123 through 131 contain something I truly hate about Java 1.4 and earlier. TheNumberFormat object is very primitive. It does provide methods to set the minimum number offractional digits, and minimum number of integer digits, but it has no concept of justification, fillcharacter, or display width. If you try to set both the integer and fraction digits for a column, itwill zero fill on the front and force the display to look something like the following....