Among other features, Java 2 has provided Java programmers with the ability to build drag and drop into their GUI components. However, in components such as the JTree, the drag-and-drop implementation is not intuitive. This tip guides you through the complexities presented when implementing drag and drop into a JTree. (2,000 words)
When using drag and drop, a drag image is a useful visual reminder of what is actually being dragged. However on some platforms, notably Microsoft's Win32, the drag image requested in your Java program is ignored, depriving the user of that valuable feedback. This tip suggests a way to add drag images to JTree objects even when the underlying platform doesn't play ball. (1,100 words, August 2001)
Drag and drop (D&D) is an intuitive GUI gesture used for transferring data from one GUI component to another. This second article in the drag and drop series explores how you can transfer data besides text and discusses the issues involved with developing a library of D&D-enabled project Swing components. (4,400 words)
Drag and drop (D&D) is an intuitive GUI gesture used for transferring data from one GUI component to another. This article explores the D&D classes introduced in the Java 2 platform (formerly JDK 1.2). To demonstrate the transfer of textual data locally (within a single Java virtual machine) and remotely (to other JVMs or native programs), seasoned Java instructor Gene De Lisa shows you how to subclass a Swing (JFC) component. This article includes a D&D Glossary. (4,000 words)
Drag and drop (D&D) is an intuitive GUI gesture used for transferring data from one GUI component to another. This second article in the drag and drop series explores how you can transfer data besides text and discusses the issues involved with developing a library of D&D-enabled project Swing components. (4,400 words)