Siva Kumar
September 23rd, 1999, 05:23 AM
Hai
Can anyone help with some sample codes to create a treeview Control in Applet
Thanks
Siva
Can anyone help with some sample codes to create a treeview Control in Applet
Thanks
Siva
|
Click to See Complete Forum and Search --> : Treeview Control in Applet Siva Kumar September 23rd, 1999, 05:23 AM Hai Can anyone help with some sample codes to create a treeview Control in Applet Thanks Siva unicman September 23rd, 1999, 08:06 AM 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 Siva Kumar September 25th, 1999, 05:25 AM 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 unicman September 26th, 1999, 04:58 AM 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 tdsinha September 27th, 1999, 06:41 AM For communication between applets and javascripts you can check the section under liveconnect in developer.netscape.com codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |