InformationPanel(){
  setLayout(new OverlayLayout(this));
  JComponent container=SBoxLayout.createContainer(SBoxLayout.VERTICAL);
  glassPane=new JComponent(){
  }
;
  add(glassPane);
  add(container);
  nameField=new JTextPane();
  StyleConstants.setAlignment(center,StyleConstants.ALIGN_CENTER);
  nameField.setAlignmentX(CENTER_ALIGNMENT);
  nameField.setOpaque(true);
  nameField.setBackground(getBackground());
  nameField.setForeground(Color.WHITE);
  nameField.setFocusable(false);
  nameField.setEditable(false);
  container.add(nameField,SLayout.EXPAND_X);
  dangerIndicator=new DangerIndicator(MAX_SKULLS);
  dangerIndicator.setAlignmentX(CENTER_ALIGNMENT);
  container.add(dangerIndicator);
  describeDanger(0);
}

InformationPanel ( ) { setLayout ( new OverlayLayout ( this ) ) ; JComponent container = SBoxLayout . createContainer ( SBoxLayout . VERTICAL ) ; glassPane = new JComponent ( ) { } ; add ( glassPane ) ; add ( container ) ; nameField = new JTextPane ( ) ; StyleConstants . setAlignment ( center , StyleConstants . ALIGN_CENTER ) ; nameField . setAlignmentX ( CENTER_ALIGNMENT ) ; nameField . setOpaque ( true ) ; nameField . setBackground ( getBackground ( ) ) ; nameField . setForeground ( Color . WHITE ) ; nameField . setFocusable ( false ) ; nameField . setEditable ( false ) ; container . add ( nameField , SLayout . EXPAND_X ) ; dangerIndicator = new DangerIndicator ( MAX_SKULLS ) ; dangerIndicator . setAlignmentX ( CENTER_ALIGNMENT ) ; container . add ( dangerIndicator ) ; describeDanger ( 0 ) ; }
create a new informationpanel .
