Hi! I have horizontal JList. When user drags element of this list, there is indicator where draged element would be when it droped. But this indicator is horizontal and appears above or under elements of the list. So how can I change it? I want it to be vertical.
Code creating list:
DefaultListModel model = new DefaultListModel();
// I fill up model with data from DB
list = new JList(model);
list.setName(rs.getString(1));
list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
// Next to rows make JList horizontal
list.setLayoutOrientation(JList.VERTICAL_WRAP);
list.setVisibleRowCount(1);
// Add d'n'd
list.setTransferHandler(listHandler);
list.setDragEnabled(true);
list.setDropMode(DropMode.INSERT);