Clover coverage report -
Coverage timestamp: Sat Jul 7 2007 16:41:13 CEST
file stats: LOC: 71   Methods: 3
NCLOC: 37   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
BriefingFrame.java - 100% 100% 100%
coverage
 1    /*
 2    * BriefingFrame.java
 3    *
 4    * Created on March 16, 2007, 6:55 PM
 5    *
 6    * JTR is free software; you can redistribute it and/or modify it under the
 7    * terms of the GNU General Public License as published by the Free Software
 8    * Foundation; either version 2, or (at your option) any later version.
 9    */
 10   
 11    package jtr.ui.swing;
 12   
 13    /**
 14    * Frame for showing a briefing of the last run test.
 15    *
 16    * @author frusso
 17    * @version 4.0
 18    * @since 4.0
 19    */
 20    public class BriefingFrame extends javax.swing.JFrame {
 21   
 22    /** Creates new form BriefingFrame */
 23  2 public BriefingFrame() {
 24  2 initComponents();
 25  2 this.setIconImage(IconImageProvider.getIcon());
 26    }
 27   
 28    /** This method is called from within the constructor to
 29    * initialize the form.
 30    * WARNING: Do NOT modify this code. The content of this method is
 31    * always regenerated by the Form Editor.
 32    */
 33    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
 34  2 private void initComponents() {
 35  2 briefingScrollPane = new javax.swing.JScrollPane();
 36  2 briefingTextPane = new javax.swing.JTextPane();
 37   
 38  2 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
 39  2 setTitle("JTR 4.0 Test Briefing");
 40  2 setName("briefingFrame");
 41  2 setResizable(false);
 42  2 briefingTextPane.setEditable(false);
 43  2 briefingTextPane.setFont(new java.awt.Font("Lucida Grande", 0, 12));
 44  2 briefingTextPane.setCaretColor(new java.awt.Color(255, 255, 255));
 45  2 briefingTextPane.setEditable(false);
 46  2 briefingScrollPane.setViewportView(briefingTextPane);
 47   
 48  2 org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
 49  2 getContentPane().setLayout(layout);
 50  2 layout.setHorizontalGroup(
 51    layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 52    .add(briefingScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 503, Short.MAX_VALUE)
 53    );
 54  2 layout.setVerticalGroup(
 55    layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 56    .add(org.jdesktop.layout.GroupLayout.TRAILING, briefingScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
 57    );
 58  2 pack();
 59    }// </editor-fold>//GEN-END:initComponents
 60   
 61  2 void setText(String briefing) {
 62  2 briefingTextPane.setText(briefing);
 63  2 briefingTextPane.setCaretPosition(0);
 64    }
 65   
 66    // Variables declaration - do not modify//GEN-BEGIN:variables
 67    private javax.swing.JScrollPane briefingScrollPane;
 68    private javax.swing.JTextPane briefingTextPane;
 69    // End of variables declaration//GEN-END:variables
 70   
 71    }