jmeDragAndDrop = new JMEDragAndDrop(jmeDesktop);
}
//TODO save and store slot actions
public ShortCutPanel displayShortCutPanel(){
final JDesktopPane desktopPane = jmeDesktop.getJDesktop();
final JInternalFrame internalFrame = new TransparentInternalFrame();
final ShortCutPanel pan = new ShortCutPanel();
ActionButton[] arr = new ActionButton[10];
arr[0]=new DnDSlotAction(jmeDesktop, ActionManager.getInstance().getAction(2));
arr[1]=new DnDSlotAction(jmeDesktop, ActionManager.getInstance().getAction(10002));
arr[2]=new DnDSlotAction(jmeDesktop, ActionManager.getInstance().getAction(5));
for(int i=3;i<10;i++){
arr[i]=new DnDSlotAction(jmeDesktop, null);
}
pan.setSlots(arr);
pan.validate();
internalFrame.add(pan);
internalFrame.setVisible(true);
internalFrame.pack();
internalFrame.setLocation(desktopPane.getWidth()-internalFrame.getWidth(),desktopPane.getHeight()-internalFrame.getHeight());
desktopPane.add(internalFrame);
ArrayList<BaseUsable> acts = new ArrayList<BaseUsable>();
acts.add(ActionManager.getInstance().getAction(2));
acts.add(ActionManager.getInstance().getAction(10002));
acts.add(ActionManager.getInstance().getAction(5));
wireInputSwitch(acts, pan);
desktopPane.repaint();
desktopPane.revalidate();
return pan;
}