void (@NotNull AnActionEvent e) { new DialogWrapper(getEventProject(e)) { { setTitle("DnD Test"); setSize(600, 500); init(); } @Override protected @Nullable JComponent createCenterPanel() { JBList list = new JBList(new String[]{"1111111", "222222", "333333", "44444", "555555555555555555555555"}); DnDSupport.createBuilder(list) .setBeanProvider(info -> new DnDDragStartBean("something")) .setImageProvider(info -> new DnDImage(IconUtil.toImage(AllIcons.FileTypes.Text))) .install(); return list; } }.show(); }