Java graph library

Hi all,
I am developing a web application.In one of the jsp pages i need to display a tree with some nodes.
Is there any library (preferrably open source) which will take inputs and construct a tree and capable of creating a image file.
Hashin

Hi,
You can use Java Applet with JTree object. Look at this tutorial:
http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html
or JavaScript based solution like this:
http://www.treeview.net/treemenu/demos.asp
or even Ajax solutions. For example:
http://www.twinhelix.com/
Good luck!

Similar Messages

  • [Graphs in Java] Graphs library

    Hi there,
    my name is roberto...i want to know if exists a library to construct a graph in java....
    please answer me .. tks

    Sorry--I guess I misinterpreted "graphs".
    Tried googling (neural net java):
    First hit:
    http://rfhs8012.fh-regensburg.de/~saj39122/jfroehl/diplom/e-index.html
    Lots (418,000) of other hits, too. Probably one of them will suit your purposes.

  • An example of using a graph library with JavaFX 2.0

    Hi
    I saw an example detailing how JavaFX 2.0 was used on-top of a graph library to visualize for example the java scene graph of a particular application.
    I could drag nodes around and add or remove them.
    I seem to have lost the link to that project and I just can't for the life of me find the website again....does anyone know the url to a project like described?
    Cheers,
    Nuwanda

    There has been a recent project using th Groovy JavaFX 2.0 bindings that combine JavaFX 2.0 and graphviz (a graphing library). Here are some links to that project:
    Video demo: http://www.screenr.com/X7cs
    Project source: https://bitbucket.org/bgoetzmann/grezi/wiki/Home
    Cheers,
    Jeff

  • Set image path in java class library

    Hi,
    I created a java class library project and made .jar file. My java class library contains .jpg files in separete folder named as Images. My .jar file contains list of classes and image folder also but when i am using .jar file in applet. java class library is working but images are not shown. Let me know how to create imageicon to show images also in the class library

    ImageIcon icon = new ImageIcon(getClass().getResource(path-to-file));

  • JGSL : about java scientific library, how to use it any tutorial or etc

    Hay,
    I have a question regarding JGSL: java scientific library.
    I just download the jgsl.0.1.1 lib for my project
    It contains a bunch of file, including the lib files
    I set the lib folder path in the LD_LIBRARY_PATH and when i tried to run the testfile.class
    that comes with this library, i got an error
    main class defination not found.
    Have any one used the lib if yes can send me the working example.
    or at least tell me how to set these things, there is no documentation available with this.
    thanks

    Why don't u use a class loader. Try this code
    // loader class
    public class Loader  extends ClassLoader {
        String path;
        public Loader(String path) {
              this.path = path;
        public Class findClass(String name) {
            byte[] b = loadClassData(path+name+".class");
            return defineClass(name, b, 0, b.length);
        private byte[] loadClassData(String name) {
            File file = new File(name);
            byte[] data = null;
            try {
                InputStream in = new FileInputStream(file);
                data = new byte[ (int) file.length()];
                for (int i = 0; i < data.length; i++) {
                    data[i] = (byte) in.read();
            catch (IOException ex) {
            file = null;
            return data;
    // in your caller class use
       Loader loader = new Loader(libPath); // lib path may be taken from a command line arg
       Object main = loader.loadClass("ClassLib", true).newInstance();I think this is what u r looking for
    Uditha Nagahawatta

  • Java SSF library

    We are trying to use SSF ( digital signatures ) as authentication mechanism for Archive Link through HTTP Interface.ABAP code is generating PKCS#7 signed URL and we want to verify it using Java SSF library in an external system.SAP documentation talks about JAVA IAIK toolkit can be downloded from Service market place. I can't find it on service.sap.com. Does anybody know where can I download JAVA SSF from ?
    cheers
    Ramesh.

    Hi Aldo,
    The java packages where this classes and interfaces are implemented are:
    - com.sap.security.api.ssf
    - com.sap.security.core.server.ssf
    You can find this in the jar file tc_sec_ssf.jar.
    Also look the following SAP Help link [Secure Store and Forward Mechanism (SSF)|http://help.sap.com/saphelp_nw2004s/helpdata/en/4d/bf6f77a2c5446a86e0152f1b309db6/frameset.htm]
    Please reward if helpful.
    Regards
    Alexandre

  • Java class library method definition is visible in debugging!!!!!

    I create a jar by using java class library project option, and when i am using it in other project, it is displaying all code inside the library, i implement security inside the java library, it contains some key ...... is there any way to hide the code? or how to hide my logic when i submit it to client...
    is there any tool for this or is there are any technique to create a dll like microsoft supply.

    rohit pathak wrote:
    thanks for your time gimbal2 ,
    I tested it and it is working fine, i choose the option
    Exclude from jar file - **/*.java
    and its worked out.could you tell me about security of this class library (.jar file) ? Although i used required code { code which omit .java file during packaging } , is this is secure? or we can get the code { key in my case } from .jar file by any java tool.As you have already noticed through your other thread - yes you can.
    how to secure code in java..

  • Java math library?

    Hi all,
    Does anyone know a java math-library which provides analysis stuff?
    I'd like to generate a function (approximation) which describes a curve.
    What I need is an implementation of Lagrange interpolation formula or
    Newton interpolation formula.
    Google lets me down. Any help would be greatly appreciated!

    You could try looking through the list of stuff at http://math.nist.gov/javanumerics/

  • Java Class Library

    What's the online Java Class Library reference site?
    I swore it was on this Java.sun.com site, but I can't seem to locate it again.
    Thanks,
    MB

    Are you looking for http://java.sun.com/j2se/1.3/docs/api/index.html by any chance ?

  • Invoking Sample Java Graphs thro Oracle Express 6.3.2

    We have installed Oracle Express 6.3.2 to develop OLAP web application.
    At the outset we tried to invoke sample Java Graph Pages created
    using the samples.db after setting the page as JAVATABLE type through the link http:\machineid\oew-install\sample\index.html.
    oew-install is the virtual directory that points the path -
    oxhome\olap\oes632\owa632
    We could only view the OLAP cube as HTMLTABLE type.
    Where are we wrong in not viewing the Graphs???
    Have we missed anything during installation??

    Hi Aneel
    Thanks for your support.
    As per your sugessions We have checked the browser options, we could not find the Java 2 option but we had three options under microsoft VM which are as given below
    1. Java Console Enable
    2. Java Login Enable
    3. JIT compiler for virtual macine enabled.
    We have checked 1 and 3 options and restarted the IE browser still we could not succed in getting the Java Graphs in Sample appication.
    More over as asked by you the version of Java console is "Microsoft (R) VM for Java, 5.0 Release 5.0.0.3234"
    With netscape it was showing "Applet owagraph can't start : Error"
    Hi Can I have your mailId?
    Thanks
    Nanda Kishore

  • MDM 5.5 Java API Library Reference Guide

    hi friends,
    I need MDM 55 Java API Library Reference Guide  pdf file
    please forward to me
    its urgent

    That is for pdf. I thought once you're signed on here, that should work, too. However, here is the online help (same docs):
    [http://help.sap.com/saphelp_mdm550/helpdata/en/43/D7AED5058201B4E10000000A11466F/frameset.htm]
    In Programming Interfaces on the left you will find the Java API guide.

  • Third-party Java Visualization Library?

    Hello,
    I am going to develop a Java Application which needs to draw some charts, like annotated line. Structure of data is simple that only datetime and value are included, but amount of data is huge. I am new to Java Visualization and can someone give me some advices on this issue? Which will Java Visualization Library suit to my requirement?
    P.S. Free library would be better.

    J.Yang wrote:
    I am going to develop a Java Application which needs to draw some charts, like annotated line. No problem; plenty of libraries out there. I use JFreeChart from www.jfree.org.
    Structure of data is simple that only datetime and value are included, but amount of data is huge. Then you start to have a problem.
    I am new to Java Visualization and can someone give me some advices on this issue? If you have a very very large dataset and you are charting time series then your charts will be cluttered. You will have to in some way reduce the data to a more reasonable size so that you are plotting no more than 1 point per pixel along the time axis. My approach to this is to condense the data into three lines. The primary line breaks the time into a smaller number of segments (500 or so) and computes the average value for each segment and plots this average. You then create two secondary lines which use the same segments but compute the minimum and maximum value for each segment and you then plot the line of minimums and the line of maximums.
    Be aware that this condensing of the data must be done outside the event thread.
    Which will Java Visualization Library suit to my requirement?
    P.S. Free library would be better.

  • Oracle Spatial Java Class Library Download?

    Hello,
    where can I download the Oracle Spatial Java Class Library? I installed OracleXE which can handle SDO_GEOMETRY types and now need the java library for programming against the database.
    greetings
    Peter

    If you mean by samples that show you how to manipulate Geometry types than you can find this tutorial using java and connecting to your DB via Oracle Spatial Network Data Model (NDM) https://spatial.samplecode.oracle.com/servlets/ProjectProcess?pageID=0Zl7oV
    My personal experience, it would be good idea to have oracle 11g Release 2 installed.
    It shows you different ways to query spatial data. You might also be interested in this documentation on oracle Topology and NDM Developers guide: http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28399.pdf

  • Java Class Library (SDOAPI)

    Greetings,
    Using Oracle Spatial Java Class Library (SDOAPI) GeometryAdapter.importGeometry method on the following geometry causes a InvalidGeometryException to be thrown.
    SDO_GEOMETRY(3001, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 0, 6000, 4, 1, 1),
    SDO_ORDINATE_ARRAY(27.3384, 81.4328, 0, 587581.22, 4789617.17, 0))
    This geometry appears to be valid according to the SDO_GEOM.VALIDATE_LAYER and SDO_GEOM.VALIDATE_GEOMETRY functions.
    How can this geometry be read using the SDOAPI?
    Thanks,
    Jeff

    Daniel,
    Thank you for the prompt response and valuable information. My registration contains my accurate e-mail address. Please notify as soon this bug fix is available.
    Thank You,
    Jeff

  • Java networking library with RMI-like functionality?

    Is anyone aware of a Java networking library, that provides RMI like functionality and TCP/IP with an intuitive API and minimal coding required? I'm working on a prototype, but I'm having difficulty getting Java's RMI functionality working through Netbeans, so while I'm prototyping I'm looking for alternatives so I can code more and frustrate less!
    Thanks

    BobCrivens wrote:
    Thanks ejp.
    I guess I'll re-phrase the original question. Is there a small open-source Java networking library that doesn't include RMI, but gives a simple API for TCP/IP connections (higher level than sockets) and includes file transfer? I don't know if I need things like FTP/HTTP/POP/SMTP support etc for now.
    ThanksI gotta be honest with you here. I think you need to stop coding for now and get your requirements in hand with a better grasp on how network programming works.
    Not being insulting here but your questions show your current knowledge level on the subject to be not really sufficient for success with whatever it is you want to do.
    There is the networking tutorial available here http://java.sun.com/docs/books/tutorial/networking/index.html but it might do you well to tell us exactly what you are trying to do. Are you trying to build an FTP client? Are you trying to build a whole client/server program of some sort?
    Because everything now is very vague. You seem to be looking for protocols or API's between TCP and things like FTP for example and none exist because these sit directly on top of TCP. So you either deal directly with the Sockets or you deal with some library that deals with the protocol in question. There isn't an "in-between" layer here.

Maybe you are looking for

  • Trying to create a simple example. Need Help!

    I'm trying to create a very simlpe examlpe using Swing components to illustrate a MVC architecture. I have a JFrame containing a JTree and a JButton. What I'd like to happen is when I click the JButton the JTree model is changed in some fashion and t

  • Lost Serialized Insert from PC Ultimate Software Suite-Cannot Install Full Version of Photoshop Elements 12

    I purchased a Dell Inspiron laptop which was bundled with PC Ultimate Software Suite, a collection of programs on one disc. It included Adobe Photoshop Elements 12, but I misplaced the insert that contained the serial key. I still have the sleeve tha

  • PRE 3 editing a picture with Photoshop ele 5

    Hi All Im having trouble figuring this out. I have premiere elements 3 and Photoshop elements 5. Im making a video for you tube and now everyone has cool boarders or frames for there vids. Example 51 secs in this video http://www.youtube.com/watch?v=

  • IPhoto 11 projects corrupted?

    Last month I created a Christmas card in iPhoto 11 (I'm running Lion). Last night, I decided to reorder but none of my projects were showing up in bookshelf view. So I came out of full screen and could see them on the lefthand menu. However, they are

  • Check variant programatically

    Hi, i found some useful function modules in function group SVAR to read and save variants for reports. The problem is that the modules for creation of variants do not check the input values for correct name and type. I tried RS_CHANGE_CREATED_VARIANT