public TvShowTreeCellRenderer(){
  tvShowPanel.setLayout(new FormLayout(new ColumnSpec[]{ColumnSpec.decode("min:grow"),FormFactory.LABEL_COMPONENT_GAP_COLSPEC,ColumnSpec.decode("center:20px"),ColumnSpec.decode("center:20px"),ColumnSpec.decode("center:20px")},new RowSpec[]{FormFactory.DEFAULT_ROWSPEC,FormFactory.DEFAULT_ROWSPEC}));
  TmmFontHelper.changeFont(tvShowTitle,Font.BOLD);
  tvShowTitle.setHorizontalAlignment(JLabel.LEFT);
  tvShowTitle.setMinimumSize(new Dimension(0,0));
  tvShowTitle.setHorizontalTextPosition(SwingConstants.LEADING);
  tvShowPanel.add(tvShowTitle,"1, 1");
  tvShowPanel.add(tvShowNfoLabel,"3, 1, 1, 2");
  tvShowPanel.add(tvShowImageLabel,"4, 1, 1, 2");
  TmmFontHelper.changeFont(tvShowInfo,0.816);
  tvShowInfo.setHorizontalAlignment(JLabel.LEFT);
  tvShowInfo.setMinimumSize(new Dimension(0,0));
  tvShowPanel.add(tvShowInfo,"1, 2");
  tvShowSeasonPanel.setLayout(new BoxLayout(tvShowSeasonPanel,BoxLayout.Y_AXIS));
  tvShowSeasonPanel.add(tvShowSeasonTitle);
  tvShowSeasonTitle.setHorizontalTextPosition(SwingConstants.LEADING);
  tvShowEpisodePanel.setLayout(new FormLayout(new ColumnSpec[]{ColumnSpec.decode("min:grow"),FormFactory.LABEL_COMPONENT_GAP_COLSPEC,ColumnSpec.decode("center:20px"),ColumnSpec.decode("center:20px"),ColumnSpec.decode("center:20px")},new RowSpec[]{FormFactory.DEFAULT_ROWSPEC}));
  tvShowEpisodeTitle.setMinimumSize(new Dimension(0,0));
  tvShowEpisodeTitle.setHorizontalTextPosition(SwingConstants.LEADING);
  tvShowEpisodePanel.add(tvShowEpisodeTitle,"1, 1");
  tvShowEpisodePanel.add(tvShowEpisodeNfoLabel,"3, 1");
  tvShowEpisodePanel.add(tvShowEpisodeImageLabel,"4, 1");
  tvShowEpisodePanel.add(tvShowEpisodeSubtitleLabel,"5, 1");
}

public TvShowTreeCellRenderer ( ) { tvShowPanel . setLayout ( new FormLayout ( new ColumnSpec [ ] { ColumnSpec . decode ( "min:grow" ) , FormFactory . LABEL_COMPONENT_GAP_COLSPEC , ColumnSpec . decode ( "center:20px" ) , ColumnSpec . decode ( "center:20px" ) , ColumnSpec . decode ( "center:20px" ) } , new RowSpec [ ] { FormFactory . DEFAULT_ROWSPEC , FormFactory . DEFAULT_ROWSPEC } ) ) ; TmmFontHelper . changeFont ( tvShowTitle , Font . BOLD ) ; tvShowTitle . setHorizontalAlignment ( JLabel . LEFT ) ; tvShowTitle . setMinimumSize ( new Dimension ( 0 , 0 ) ) ; tvShowTitle . setHorizontalTextPosition ( SwingConstants . LEADING ) ; tvShowPanel . add ( tvShowTitle , "1, 1" ) ; tvShowPanel . add ( tvShowNfoLabel , "3, 1, 1, 2" ) ; tvShowPanel . add ( tvShowImageLabel , "4, 1, 1, 2" ) ; TmmFontHelper . changeFont ( tvShowInfo , 0.816 ) ; tvShowInfo . setHorizontalAlignment ( JLabel . LEFT ) ; tvShowInfo . setMinimumSize ( new Dimension ( 0 , 0 ) ) ; tvShowPanel . add ( tvShowInfo , "1, 2" ) ; tvShowSeasonPanel . setLayout ( new BoxLayout ( tvShowSeasonPanel , BoxLayout . Y_AXIS ) ) ; tvShowSeasonPanel . add ( tvShowSeasonTitle ) ; tvShowSeasonTitle . setHorizontalTextPosition ( SwingConstants . LEADING ) ; tvShowEpisodePanel . setLayout ( new FormLayout ( new ColumnSpec [ ] { ColumnSpec . decode ( "min:grow" ) , FormFactory . LABEL_COMPONENT_GAP_COLSPEC , ColumnSpec . decode ( "center:20px" ) , ColumnSpec . decode ( "center:20px" ) , ColumnSpec . decode ( "center:20px" ) } , new RowSpec [ ] { FormFactory . DEFAULT_ROWSPEC } ) ) ; tvShowEpisodeTitle . setMinimumSize ( new Dimension ( 0 , 0 ) ) ; tvShowEpisodeTitle . setHorizontalTextPosition ( SwingConstants . LEADING ) ; tvShowEpisodePanel . add ( tvShowEpisodeTitle , "1, 1" ) ; tvShowEpisodePanel . add ( tvShowEpisodeNfoLabel , "3, 1" ) ; tvShowEpisodePanel . add ( tvShowEpisodeImageLabel , "4, 1" ) ; tvShowEpisodePanel . add ( tvShowEpisodeSubtitleLabel , "5, 1" ) ; }
instantiates a new tv show tree cell renderer .
