question: 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 ) ; }
target:  Create a new ItemPanel.