super();
JPopupMenu popup = new JPopupMenu();
popup.add(new DeleteAction(this));
popup.add(new NewFolderAction(this));
popup.setLightWeightPopupEnabled(false);
right_click_pane = new RightClickGlassPane(this,popup) {
protected void redispatchMouseEvent(MouseEvent e, boolean repaint) {
Component component = getRealComponent(e.getPoint());
if(component == null) { return; }
String chooser_class = "javax.swing.plaf.metal.MetalFileChooserUI$5";
if(component.getClass().getName().equals(chooser_class)) {
super.redispatchMouseEvent(e,repaint);
} else {
doDispatch(e);
}
}
};
setFileSelectionMode(FILES_AND_DIRECTORIES);