* @return the final panel
*/
public ShortCutPanel displayShortCutPanel(HashMap<Integer, BaseUsable> map){
final JDesktopPane desktopPane = jmeDesktop.getJDesktop();
final JInternalFrame internalFrame = new TransparentInternalFrame();
final ShortCutPanel pan = new ShortCutPanel();
ActionButton[] arr = new ActionButton[10];
ArrayList<BaseUsable> used = new ArrayList<BaseUsable>();
for(int i=0;i<arr.length;i++){
BaseUsable b = map.get(i);
arr[i]=new DnDSlotAction(jmeDesktop, b/*yes, can be null (empty slot)*/);
if(b != null)//these one not null only used ones
used.add(b);
}
pan.setSlots(arr);
pan.validate();
internalFrame.add(pan);
internalFrame.setVisible(true);
internalFrame.pack();
internalFrame.setLocation(desktopPane.getWidth()-internalFrame.getWidth(),desktopPane.getHeight()-internalFrame.getHeight());