Coverage Report - net.wotonomy.test.TreePanel
 
Classes in this File Line Coverage Branch Coverage Complexity
TreePanel
0% 
N/A 
1
 
 1  
 package net.wotonomy.test;
 2  
 
 3  
 import java.awt.BorderLayout;
 4  
 import java.awt.Dimension;
 5  
 
 6  
 import javax.swing.JPanel;
 7  
 import javax.swing.JScrollPane;
 8  
 import javax.swing.JTree;
 9  
 import javax.swing.border.EmptyBorder;
 10  
 
 11  
 /**
 12  
 * A simple editor panel with a few textfields.
 13  
 */
 14  
 public class TreePanel extends JPanel 
 15  
 {    
 16  
         public JTree tree;
 17  
         public EditPanel editPanel;
 18  
     public JPanel panel;
 19  
         
 20  0
     public TreePanel()
 21  0
     {
 22  0
         panel = new JPanel();
 23  0
         panel.setLayout( new BorderLayout() );
 24  0
             panel.setBorder( new EmptyBorder( 10, 10, 10, 10 ) );
 25  
     
 26  0
                 tree = new JTree();
 27  0
                 tree.setRootVisible( false );
 28  0
                 tree.setShowsRootHandles( true );
 29  0
         JScrollPane scrollPane = new JScrollPane( tree );
 30  0
         scrollPane.setPreferredSize( new Dimension( 150, 200 ) );
 31  0
                 panel.add( scrollPane, BorderLayout.CENTER );
 32  0
                 editPanel = new EditPanel();
 33  0
                 panel.add( editPanel, BorderLayout.EAST );
 34  
         
 35  0
         this.setLayout( new BorderLayout() );
 36  0
         this.add( panel, BorderLayout.CENTER );
 37  0
         }
 38  
     
 39  
 }