Draw « Drag Drop « Java Swing Q&A





1. Drawing and Drag n Drop    coderanch.com

Hey, I am developing an applet which simulates the behavior of certain communication protocols. The applet would allow users to configure a network made up of hosts and routers connected by links. These network components would be placed onto a network configuration area using drag and drop. I was able to implement that feature, but i am having problems drawing lines ...

2. DnD shapes and draw lines between    coderanch.com

Hi .. I want to make a container that the user can drag and drop some shapes to it, submit events to those shapes, and draw lines between them, you know: something like UML editors (like Rational Rose) .. you drag and drop classes, draw lines between them, etc anybody help me .. thanks

3. How do draw drag operations??    coderanch.com

I tried to use a mouse event to draw on a panel.. Like a pencil or a ruler.. But when the mouse is moved and paint methods are called over and over again the events turn out to trigger reeeally slow.. And it sucks.. I've seen drag operations like drawing a box on java software like etbeans.. The box box is ...

4. How to make Lines I draw Draggable and Moveable etc??    coderanch.com

Hello Sir: I have following code that can draw lines at my will, but I hope to [1]. Keep all lines I draw here; [2]. make them draggable and moveable and deletable, How can I do that?? see code below [1]. main code import java.awt.BorderLayout; import javax.swing.JFrame; import javax.swing.JLayeredPane; import javax.swing.JPanel; public class DynamicLineDemo extends JPanel { JLayeredPane panel = new ...