Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need for som directions

 
Farid Abdi
Greenhorn
Posts: 12
Java Java ME Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have an idea...
I want to load a picture ( map of a factory ) and spot some point on it ( Cisco Switches ) and bind a ping to each switch and displaying result on map in form of ( green for connected switches and red for disconnected switches )..
How i can do that ??
I know how to load an image on screen ( using ImageIcon and using JLabel from swing ) ....the things that i don't know is that how i can bind some action ( for example a ping command ) to may map ??? I need only the name of techniqe...If i know the name of techniqes and some brief explaine the i could develope the remain of project myself...thanks
 
K. Tsang
Bartender
Pie
Posts: 3222
12
Android Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well you already "bind an action" to the image (or a map should be more exact). Have you checked the API for ImageIcon if this is the class you plan to use for the image. Most Swing components can add action listeners.

And for the ping System.exec(...) calling command line ping command.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic