List of usage examples for javax.swing.text JTextComponent setDragEnabled
@BeanProperty(bound = false, description = "determines whether automatic drag handling is enabled") public void setDragEnabled(boolean b)
From source file:Main.java
public static void main(String[] argv) throws Exception { JTextComponent textComp = new JTextArea(); textComp.setDragEnabled(true); }