• Post Reply Bookmark Topic Watch Topic
  • New Topic

Drawing and Drag n Drop

 
Marcus Senna
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 between these components which represent links. Whenever i try to draw on the network configuration area, the components(which is a class inheriting from the JLabel class) on the area are blocked out and only the line drawn remains.
I would really appreciate any help. Thanks in advance.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This sounds more like a Swing problem than a specific applet problem, so off to the AWT/Swing/GUI forum it is.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> but i am having problems drawing lines between these components which represent links.

if you look at this forum's first page (at time of posting this), there
is a topic about drawing lines between components.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!