Results 1 to 4 of 4
  1. #1
    dashingncool is offline Member
    Join Date
    Feb 2012
    Posts
    2
    Rep Power
    0

    Default Creating Graphics using Java

    Hi!

    I am working on a program that shows a graph in terms of table of nodes and edges. It creates an adjacency matrix. Now I was wondering if there is any way by which I can plot the graph graphically. I understand that I can use AWT to create circles for nodes and connect them using lines(edges) by specifying the coordinates. I want something more. I want my nodes to be represented as Java objects (not mere shapes) so that I can handle events on them. Also, I want to design the nodes like the way we can do in photoshop or coreldraw. I don't know whether my query is relevant or not. Still, Is this possible.?

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default Re: Creating Graphics using Java

    Yes, you can draw shapes on the screen and use the mouse/cursor to move them around.
    There are some sample programs here on the forum that do what you describe. I'm not sure who posted them. It could have been: Fubarable

  3. #3
    dashingncool is offline Member
    Join Date
    Feb 2012
    Posts
    2
    Rep Power
    0

    Default Re: Creating Graphics using Java

    Thanks for your response. Drawing tools like AutoCad etc allow drawing graphics i 3D too. Is it possible that I can integrate CAD with my java app and plot the graph in that through command line....

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default Re: Creating Graphics using Java

    I do not know anything about using an AutoCad program with java. You should read the doc for the program to see if it is possible.

Similar Threads

  1. java and graphics 3d
    By garnaout in forum New To Java
    Replies: 0
    Last Post: 02-24-2012, 09:48 PM
  2. Replies: 1
    Last Post: 07-12-2011, 10:33 AM
  3. Java graphics
    By AtomicPoop in forum Java Gaming
    Replies: 13
    Last Post: 04-18-2011, 06:40 PM
  4. Please Help! : Java Graphics
    By keaton1ao in forum Java 2D
    Replies: 1
    Last Post: 11-17-2010, 08:46 PM
  5. i am having a problem with creating graphics
    By umpire43055 in forum AWT / Swing
    Replies: 3
    Last Post: 08-07-2009, 05:26 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •