Solved

JTree Display

Posted on 2001-09-04
5
363 Views
Last Modified: 2013-11-18
Hai Java Guys,

I developed a JApplet to display the tree structure and uploaded it.But here is the problem ,in my browser it displays the tree structure without asking Swing plugin as already jdk1.3 installed there.But if i try to open in another browser it asks for plugin and if i say yes to download,it taking lot of time to download.Now i need without asking download the plugin to display the tree structure.Is there any solution for this.If anybody know solution plz let me know.thanks in advance.

Basha  
0
Comment
Question by:shaikchanbasha
5 Comments
 
LVL 6

Expert Comment

by:kotan
ID: 6455815

Questions Asked : 5
Last 10 Grades Given : B
Question Grading Record : 1 Answers Graded / 1 Answers Received
0
 

Accepted Solution

by:
HieroM earned 20 total points
ID: 6457273
Create a jar file with needed java swing classes. Jar file name must be in "codebase" for the applet. You do not need all swing classes - just these for JTree.

Add the following HTML code inside the APPLET tag: ARCHIVE  = "GoodEvening.jar"
The APPLET tag should look like this: <APPLET
  CODEBASE = "."
  CODE     = "firstapplet.GoodEveningApplet.class"
  ARCHIVE  = "GoodEvening.jar"
  NAME     = "TestApplet"
  WIDTH    = 400
  HEIGHT   = 300
  HSPACE   = 0
  VSPACE   = 0
  ALIGN    = middle
>
</APPLET>


0
 

Author Comment

by:shaikchanbasha
ID: 6459764
Thank you for reply.But by using HTMLConverter i convert actual html file which contains applet tag into another html file.After conversion the new file is as follows

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> CyberViz.Net </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>

<BODY BGCOLOR=#CC9933>
<!--"CONVERTED_APPLET"-->
<!-- CONVERTER VERSION 1.3 -->
<center><H1>Your CyberViz.Net Hierarchy</H1>
<Br><Br>
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 350 HEIGHT = 350  codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
<PARAM NAME = CODE VALUE = "CVApplet.class" >
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
<PARAM NAME="scriptable" VALUE="false">
<COMMENT>

<EMBED type="application/x-java-applet;version=1.3"  CODE = "CVApplet.class" WIDTH = 350 HEIGHT = 350  scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html">
<NOEMBED>

</COMMENT>
</NOEMBED>
</EMBED></OBJECT>
<!--<APPLET CODE = "CVApplet.class" WIDTH = 600 HEIGHT = 400>
</APPLET>--><!--"END_CONVERTED_APPLET"-->
<br>
<a href=PWChange.html>
<h4>Change Password.....</h4></center>
</a>
</BODY>
</HTML>    

then how can i modify as u said.plz let me know.
0
 
LVL 20

Expert Comment

by:Venabili
ID: 8908260
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- points for HieroM

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Venabili
EE Cleanup Volunteer
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
javap not working 8 58
how to install java on RHEL image on EC2 4 39
Java: anonymous class 4 29
java example issue 3 20
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question