Buggy code:
public class CheckOutPage { static JFrame frame ; static ShoppingCart cart ; DefaultTableModel dm ; JTable table ; JTable addTable ; DefaultTableCellRenderer centerRenderer ; DefaultTableCellRenderer descriptionRenderer = new DefaultTableCellRenderer ( ) ; double total ; JLabel totalTextLabel ; CheckOutPage ( ) { } public void display ( ShoppingCart aCart ) { CheckOutPage . cart = aCart ; System . out . println ( CheckOutPage . cart . getSize ( ) ) ; JPanel mainPanel = new JPanel ( ) ; JPanel northPanel = new JPanel ( ) ; JPanel southPanel = new JPanel ( ) ; JPanel buttonPanel = new JPanel ( ) ; JPanel scrollBarPanel = new JPanel ( ) ; JPanel removeButtonPanel = new JPanel ( ) ; JPanel logoPanel = new JPanel ( ) ; JScrollBar verticalBar = new JScrollBar ( JScrollBar . VERTICAL , 30 , 40 , 0 , 300 ) ; mainPanel . setLayout ( new BorderLayout ( ) ) ; northPanel . setLayout ( new FlowLayout ( ) ) ; southPanel . setLayout ( new FlowLayout ( FlowLayout . RIGHT ) ) ; buttonPanel . setLayout ( new FlowLayout ( FlowLayout . RIGHT ) ) ; scrollBarPanel . setLayout ( new BorderLayout ( ) ) ; removeButtonPanel . setLayout ( new BorderLayout ( ) ) ; logoPanel . setLayout ( new FlowLayout ( FlowLayout . RIGHT ) ) ; mainPanel . setBackground ( new Color ( 70 , 179 , 43 ) ) ; northPanel . setBackground ( new Color ( 70 , 179 , 43 ) ) ; southPanel . setBackground ( new Color ( 70 , 179 , 43 ) ) ; buttonPanel . setBackground ( new Color ( 70 , 179 , 43 ) ) ; northPanel . setBackground ( new Color ( 70 , 179 , 43 ) ) ; logoPanel . setBackground ( new Color ( 70 , 179 , 43 ) ) ; String name = ( ShoppingCartSystem . getActiveBuyer ( ) . getUsername ( ) . substring ( 0 , 1 ) . toUpperCase ( ) ) + ( ShoppingCartSystem . getActiveBuyer ( ) . getUsername ( ) . substring ( 1 ) ) ; JLabel logo = new JLabel ( "Your<seq2seq4repair_space>Checkout<seq2seq4repair_space>Page" ) ; logo . setFont ( logo . getFont ( ) . deriveFont ( 33.0F ) ) ; logoPanel . add ( logo ) ; JButton logout = new JButton ( "Logout" ) ; JButton back = new JButton ( "Back<seq2seq4repair_space>to<seq2seq4repair_space>Cart" ) ; JButton checkout = new JButton ( "Confirm<seq2seq4repair_space>Purchase" ) ; logout . setPreferredSize ( new Dimension ( 150 , 75 ) ) ; back . setPreferredSize ( new Dimension ( 150 , 75 ) ) ; checkout . setPreferredSize ( new Dimension ( 150 , 75 ) ) ; JLabel creditCard = new JLabel ( "Credit<seq2seq4repair_space>Card<seq2seq4repair_space>Number:<seq2seq4repair_space>" ) ; creditCard . setFont ( logo . getFont ( ) . deriveFont ( 24.0F ) ) ; JTextField field = new JTextField ( "Please<seq2seq4repair_space>Enter<seq2seq4repair_space>your<seq2seq4repair_space>Credit<seq2seq4repair_space>Card<seq2seq4repair_space>Number" ) ; field . setSize ( 50 , 200 ) ; total = ShoppingCartSystem . getActiveBuyer ( ) . getCart ( ) . getTotalPrice ( ) ; String totalText = new DecimalFormat ( "#.##" ) . format ( total ) ; <START_BUG> totalTextLabel = new JLabel ( ( "Total:<seq2seq4repair_space>" + totalText ) ) ; <END_BUG> totalTextLabel . setFont ( logo . getFont ( ) . deriveFont ( 33.0F ) ) ; buttonPanel . add ( back ) ; buttonPanel . add ( logout ) ; northPanel . add ( logoPanel ) ; northPanel . add ( Box . createRigidArea ( new Dimension ( 600 , 5 ) ) ) ; northPanel . add ( buttonPanel ) ; scrollBarPanel . add ( verticalBar ) ; DefaultTableModel dm = generateTable ( ) ; table = new JTable ( ) ; table . getTableHeader ( ) . setReorderingAllowed ( false ) ; table . setOpaque ( false ) ; table . setModel ( dm ) ; table . getColumnModel ( ) . getColumn ( 0 ) . setCellRenderer ( centerRenderer ) ; table . getColumnModel ( ) . getColumn ( 1 ) . setCellRenderer ( centerRenderer ) ; table . getColumnModel ( ) . getColumn ( 2 ) . setCellRenderer ( centerRenderer ) ; table . getColumnModel ( ) . getColumn ( 3 ) . setCellRenderer ( centerRenderer ) ; JScrollPane scroll = new JScrollPane ( table ) ; scroll . getViewport ( ) . setBackground ( new Color ( 70 , 179 , 43 ) ) ; scroll . getViewport ( ) . setOpaque ( true ) ; scroll . setBorder ( BorderFactory . createEmptyBorder ( ) ) ; centerRenderer = new DefaultTableCellRenderer ( ) ; centerRenderer . setHorizontalAlignment ( JLabel . CENTER ) ; mainPanel . add ( Box . createRigidArea ( new Dimension ( 400 , 400 ) ) ) ; mainPanel . add ( scroll , BorderLayout . CENTER ) ; southPanel . add ( totalTextLabel ) ; southPanel . add ( Box . createRigidArea ( new Dimension ( 300 , 0 ) ) ) ; southPanel . add ( creditCard ) ; southPanel . add ( field ) ; southPanel . add ( Box . createRigidArea ( new Dimension ( 100 , 0 ) ) ) ; southPanel . add ( checkout ) ; CheckOutPage . frame . getContentPane ( ) . setBackground ( Color . green ) ; CheckOutPage . frame . setLayout ( new BorderLayout ( ) ) ; CheckOutPage . frame . setDefaultCloseOperation ( JFrame . EXIT_ON_CLOSE ) ; CheckOutPage . frame . add ( northPanel , BorderLayout . NORTH ) ; CheckOutPage . frame . add ( mainPanel ) ; CheckOutPage . frame . add ( southPanel , BorderLayout . SOUTH ) ; CheckOutPage . frame . setSize ( 1000 , 700 ) ; CheckOutPage . frame . pack ( ) ; CheckOutPage . frame . setLocationRelativeTo ( null ) ; CheckOutPage . frame . setVisible ( true ) ;

Fix:
totalTextLabel = new JLabel ( ( "Total:<seq2seq4repair_space>$" + totalText ) ) ;