|
-
September 23rd, 1999, 05:23 AM
#1
Treeview Control in Applet
Hai
Can anyone help with some sample codes to create a treeview Control in Applet
Thanks
Siva
-
September 23rd, 1999, 08:06 AM
#2
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
-
September 25th, 1999, 05:25 AM
#3
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
-
September 26th, 1999, 04:58 AM
#4
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
-
September 27th, 1999, 06:41 AM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|