protected void toolBarInit(){
  previousButton=new JButton("Previous Page");
  previewToolBar.add(previousButton);
  previousButton.addActionListener(null);
  nextButton=new JButton("Next Page");
  previewToolBar.add(nextButton);
  nextButton.addActionListener(null);
  previewToolBar.add(new JLabel("    Page "));
  previewToolBar.add(pageCount);
  previewToolBar.add(new JLabel(" of "));
  previewToolBar.add(totalPages);
  closeButton=new JButton(" Close ");
  previewToolBar.add(closeButton);
  closeButton.addActionListener(null);
}

protected void toolBarInit ( ) { previousButton = new JButton ( "Previous Page" ) ; previewToolBar . add ( previousButton ) ; previousButton . addActionListener ( null ) ; nextButton = new JButton ( "Next Page" ) ; previewToolBar . add ( nextButton ) ; nextButton . addActionListener ( null ) ; previewToolBar . add ( new JLabel ( "    Page " ) ) ; previewToolBar . add ( pageCount ) ; previewToolBar . add ( new JLabel ( " of " ) ) ; previewToolBar . add ( totalPages ) ; closeButton = new JButton ( " Close " ) ; previewToolBar . add ( closeButton ) ; closeButton . addActionListener ( null ) ; }
creates a print preview toolbar added by dennis miller
