CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 1999
    Posts
    2

    Treeview Control in Applet

    Hai
    Can anyone help with some sample codes to create a treeview Control in Applet

    Thanks
    Siva



  2. #2
    Join Date
    May 1999
    Location
    Pune, MH, India.
    Posts
    453

    Re: Treeview Control in Applet

    Using swing classes its easy just create the desired tree structure using 'DefaultMutableTreeNode' objects. And give it to 'JTree' component. It will create tree view automatically.

    The problem is JDK1.1.5 doesn't come with swing classes even if it supports it. U will either need to keep all (or necessary) swing classes on webserver. Or the client machine should have those swing classes and class path set.

    If u r going to use JDK1.2 there shouldn't be any problem, it supports swing by default.
    But then there should be JDK1.2 plugin installed on client machine.

    Creating tree view using awt classes is rather tedious. U will need to have a class which will be similar to 'DefaultMutableTreeNode'. And then u will need a to create a component which will show the structure.

    - UnicMan
    http://members.tripod.com/unicman

  3. #3
    Join Date
    Sep 1999
    Posts
    2

    Re: Treeview Control in Applet

    Hai Unicman,
    Thanks for ur reply.I was able to use an applet which already available from some downloads. But now, i wanna call a function present in applet refered in (for example page2.asp) from page3.asp . Is this possible.
    Thanks again
    Siva Kumar



  4. #4
    Join Date
    May 1999
    Location
    Pune, MH, India.
    Posts
    453

    Re: Treeview Control in Applet

    If page2.asp is in one frame and page3.asp is in another then it may be possible using javascript.

    I haven't done communicating with applet from javascript though. So I can't help u in this area. I'm sorry. But u might get help on it in some javascript book.

    - UnicMan
    http://members.tripod.com/unicman

  5. #5
    Join Date
    May 1999
    Posts
    18

    Re: Treeview Control in Applet

    For communication between applets and javascripts you can check the section under liveconnect in developer.netscape.com


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured