Home » Developer & Programmer » JDeveloper, Java & XML » Java graphic object Drag & Drop
Java graphic object Drag & Drop [message #366675] Wed, 06 September 2000 04:30
Jouni
Messages: 1
Registered: September 2000
Junior Member
Hi all!

I'm trying to develop a program where are many different shapes like rectangle, circle, lines etc. And they are connected to each other with at least one line. There are no max limit on connections. And now I want that user can click this graphic object like circle and drag it to some other location and I wan't that the lines will follow.

What structure and classes shold I use ? Should I put them all in linked list and search which object has cliked coordinates in it or what ? Should I connect mouselistener to every object ?

Thanks in advance,
Jouni
Previous Topic: System.out.println();
Next Topic: "user requested cancel of current operation (ORA-01013)" error using JDBC
Goto Forum:
  


Current Time: Sat Jul 24 14:47:33 CDT 2021