DangerIndicator(int maxSkulls){
  setLayout(new SBoxLayout(SBoxLayout.HORIZONTAL));
  indicators=new JComponent[maxSkulls];
  for (int i=0; i < maxSkulls; i++) {
    JLabel indicator=new JLabel(skullIcon);
    indicator.setVisible(false);
    add(indicator);
    indicators[i]=indicator;
  }
}

DangerIndicator ( int maxSkulls ) { setLayout ( new SBoxLayout ( SBoxLayout . HORIZONTAL ) ) ; indicators = new JComponent [ maxSkulls ] ; for ( int i = 0 ; i < maxSkulls ; i ++ ) { JLabel indicator = new JLabel ( skullIcon ) ; indicator . setVisible ( false ) ; add ( indicator ) ; indicators [ i ] = indicator ; } }
create a new dangerindicator .
