ItemPanel(final String slotName,final Sprite placeholder){
  this.placeholder=preparePlaceholder(placeholder);
  setName(slotName);
  Dimension size=new Dimension(background.getWidth(),background.getHeight());
  setPreferredSize(size);
  setMinimumSize(size);
  setMaximumSize(size);
  setOpaque(false);
  ItemPanelMouseHandler drag=new ItemPanelMouseHandler();
  addMouseMotionListener(drag);
  addMouseListener(drag);
}

ItemPanel ( final String slotName , final Sprite placeholder ) { this . placeholder = preparePlaceholder ( placeholder ) ; setName ( slotName ) ; Dimension size = new Dimension ( background . getWidth ( ) , background . getHeight ( ) ) ; setPreferredSize ( size ) ; setMinimumSize ( size ) ; setMaximumSize ( size ) ; setOpaque ( false ) ; ItemPanelMouseHandler drag = new ItemPanelMouseHandler ( ) ; addMouseMotionListener ( drag ) ; addMouseListener ( drag ) ; }
create a new itempanel .
