Re: HELP - ON BROWSER, Applets, JMF & Swings & Plugins - Applet deployment
hiiiiii,
plz send me ur working code of media player in java .i need this for my major project.i m facing problem with media package .
thnx.
Oh, I see. IE makes you use the Information Bar:
IE 6 has an "Informat Bar" that appers at the top of the HTML content.
When I copy and compile your example in a temporary directory and enter the URL in IE6:
C:\temp\WelcomeApplet.html
There is a message:
TItle: Information Bar
Did you notice the information Bar?
The Information Bar alert you when Internet Explorer block a
pop-up window or file download that might not be safe. If a
Web page does not display properly, look for the information
Bar (net the top of your browser)
[Checkbox] Do not show this message again.
(link) Learn about the Information Bar
(button) OK
I click OK
and the Information Bar says:
To help protect your security, Internet Explorer has restricted this file from showing active content that could access your computer. Click here for options...
I click on the Information Bar and a context menu appears:
Allow Blocked Content...
What's the Risk?
Information Bar Help
I choose Allow Blocked Content...
Title: Security Warning
Allow active content such as script and ActiveX controls can be useful,
but active content might also harm your computer.
Are you sure you want to let this file run active content?
Yes/No
I choose Yes
It works for me in IE 6
Similar Messages
-
How to find browser have java swing plugins
how to find browser have java swing plugins
Hi, you can detect it. If it is not there, you can make the installation automatically. Here is an example.This will not work with NN4 browser unless the user has Enable Java Plugin checked (see Edit | Preferences | Advanced. Nor will it work under IE if the user has disabled Java.
The best solution, IMHO, is to trigger a JavaScript function and check to see if the applet is created. You can try:
<html>
<head>
<title>....</title>
<script>
function checkApplet() {
if (document.myApplet!!=null) return true;
alert("You need to enable Java and have the proper plugin to view this document:);
return false;
</script>
<noscript>You need to turn on JavaScript to view this page</noscript>
<body onLoad="checkApplet()">
...... // applet tag goes here
</body>
</html>
Remember that you cannot call your applet to test its status.
V.V. -
Swing based applets don't run in browser !!!
whenever i run a swing based applet from the browser (IE 5), the applet is not displayed in it - status bar shows that the class file was not found
so please tell me the solution
thanx in advance!You just have to download Sun JVM to run swing JApplet in your browser(IE).
get it at the following address:
Just follow the link, and download dialog will be appeared just save the file to you hard drive, and install the software.
The file name will be : "j2re-1_4_1_02-windows-i586-i.exe"
http://java.sun.com/webapps/download/AutoDL?BundleId=7544
after successfull installation you'll find the new plugin
"java2 v1.4.1_02 for<applets>"
in Tools>InternetOptions>Advance
you have to check it(if unchecked) to enable the JApplet to be loaded in your browser.
Another new option you'll find in your Tools menu "Sun Java Console". From it you can find what exceptions are thrown while the applet is loaded -
HELP, Diagnostics Applet JMF classes.....Not Found
Hi,
I installed JMF and verified the jars are included in classpath and path, but when I run the diagnostic applet page, it still says Applet JMF classes not found, anyone has any idea?
classpath:
.;.;.;C:\PROGRA~1\JMF21~1.1E\lib\sound.jar;C:\PROGRA~1\JMF21~1.1E\lib\jmf.jar;C:\PROGRA~1\JMF21~1.1E\lib
;C:\WINDOWS\java\classes;.
path:
C:\Program Files\ThinkPad\Utilities;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program F
iles\IBM\Infoprint Select;C:\Notes;C:\Program Files\XLView;C:\lotus\compnent;C:\Utilities;C:\Program Fil
es\IBM\Personal Communications\;C:\Program Files\IBM\Trace Facility\;C:\Program Files\ThinkPad\ConnectUt
ilities;C:\WINDOWS\Downloaded Program Files;C:\Program Files\Common Files\Lenovo;C:\Program Files\ATI Te
chnologies\ATI Control Panel
JMF Diagnostics:
Java 1.1 compliant browser.....Maybe
JMF classes.....Not Found
http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/jmfdiagnostics.htmlEverything looks fine as far as the setup goes... Unless you're having problems with a specific JMF application, I wouldn't worry about the diagnostic applet telling you it isn't installed correctly.
Very well could be a browser security issue with the applet... -
Hi
I developed a applet using swing componets.But it doesn't work.
I used jdk1.3.1 for development.And I am using IE 5.0 and Netscape4.7 browsers.
can any body help me what could be the problem?
thanksJust explain the problem, might be i can help u.
Any ways u should have the Plugin to run the Swing applet.
Best of Luck!
Ahmad Jamal. -
Security problem when signed applet dynamically load plugins
Hi!
I have one problem : "security problem when signed applet dynamically load plugins"
This is the scenario:
the main program [app.jar]
. contain applet and shared library (interface & implement of common class)
. it is signed and run normally on browser
. it can draw image loaded from other URL [ex] http://bp1.blogger.com/image.jpg
. the image loader is in the shared library
. dynamically load amazon.jar through URLClassLoader and reflection
the plugin [amazon.jar]
. search amazon product [ex] Harry Potter book
. draw image on applet
. use image loader from shared library, BUT CANNOT LOAD IMAGE
The question: "Why it cannot load image, because the image loader is in the shared library which has been signed and working?" I tried to sign the amazon.jar too, but it did not work.
Your reply would be very helpful. Thank you.
Sovannhello. i have create a signed applet for A.jar. A.jar include two package B and C. the main applet class is within B.
B need some classes in C to run the applet. but i got the error that class in package c are not found.
what shall i do? -
Hi;
Could anyone help me to convert my example code from applet to swing,please, thank
import java.awt.*;
import java.applet.*;
import java.lang.Math;
import java.awt.Font;
import java.lang.Integer;
/*** Main class == Applet ***/
public class Suffix extends Applet implements Runnable {
private Thread main;
public s_tree _tree=null;
public node nd=null;
public boolean userPause=false,resumed=false;
private String str[]={"GOOGOL$","Paused","Resumed","Compacting","Done"};
public Color bl=Color.blue,rd=Color.red;
public Font fnt;
public int mode=3,delay=3000;
private char alph[]={'$','Q','W','E','R','T','Y','U','I','O',
'P','A','S','D','F','G','H','J','K','L',
'Z','X','C','V','B','N','M'};
/*** initialisation function. It is the first Funct to be called ***/
public void init() {
// Temp data
int temp=0,nxx=30;
// Ini. of fnt , the font size + style used by this applet.
fnt=new Font("Denis",1,25);
/*** parsing command parameters ***/
// try {
//DELAY VALUE PARAM
String param=getParameter("DELAY");
if (param!=null) {
temp=Integer.parseInt(param);
if ((temp>500)&&(temp<6000)) delay=temp;
//x LEFTMOST coordinate
param=getParameter("X");
if (param!=null) {
temp=Integer.parseInt(param);
nxx=temp;
//Base String parameter
param=getParameter("STRING");
if ((param!=null)&&(param.length()<15)) {
str[0]=param;
// } catch (ParseException e) { showParseError(e); }
// Allocating mem for _tree + initialize it .
_tree=new s_tree(str[0],fnt);
// Override xx (left_bound) by the caller's or the default value
_tree.xx=nxx;
/*** "animation loop is controled here" ***/
public void run() {
while(true) {
try {
//delay the process for time==delay
Thread.sleep(delay);
} catch (InterruptedException e) {}
//controls animation loop
repaint();
/*** override APPLET's paint function ***/
public void paint (Graphics g) {
//Output graphics
update(g);
/*** Updates the graphics ***/
public void update (Graphics g) {
// Set font
if (g.getFont()!=fnt) g.setFont(fnt);
if ((userPause==false)&&(resumed==false)) // Is the applet paused ?
g.clearRect(0,0,1024,768); //clears the screen
if (_tree==null) { // if tree is not initialised
init();
//_tree.show(g);
} else {
if (mode==3) { // if graphics output mode is 3
if (nd!=null) nd._to_rd(false);
nd=_tree.step_compact(nd); //compacts the tree one step further
if (nd==null) // if tree is totally compacted ...
mode=4; //change the ani. mode to 4 (don't call compact)
else
nd._to_rd(true); //colors the next node to compact in red
// Draw the "titleviewport's" comment
g.setColor(bl);
g.drawString(str[mode],10,15);
_tree.show(g); //show tree
} else {
g.clearRect(0,0,200,25); //clears the "titleviewport to update it"
g.setColor(rd);
if (resumed==true){
resumed=false;
g.drawString(str[2],10,15);
else g.drawString(str[1],10,15);
/*** restart the animation process ***/
public void start() {
main=new Thread(this);
main.start();
/*** stops the animation ***/
public void stop() {
main.stop();
main=null;
/*** Handles the user's events (mouse , kbd , ... ***/
public boolean handleEvent(Event evt) {
if (evt.id==Event.MOUSE_DOWN) { //if mouse button have been pushed ...
if (main!=null && main.isAlive()) {
if (userPause) {
main.start();
resumed=true;
} else {
main.stop();
userPause= !userPause;
} else {
main= new Thread(this);
main.start();
userPause=false;
resumed=true;
repaint();
return true;
} else {
return super.handleEvent(evt);
/*** Linked List of node(s) ***/
class nodelist{
nodelist next=null;
node ptr=null;
public void nodelist(){};
/*** node of a structure tree ***/
class node {
// Relatives
public nodelist children=null;
public node parent=null;
// variables
public int maxchild=12,childnum=0,level=0;
public int center[]={0,0};
public int xlen=20,ylen=10,vspace=15,hspace=8;
public int x[]={0,0};
public boolean _ishidden=false;
private Color bk=Color.black,wh=Color.white,rd=Color.red;
// Node==red toggle variable
public boolean to_rd=false;
// node's text
public String label=null;
/*** initialisation of the node ***/
public node(int nx,int ny,int nxl,int nyl,node nparent,int nlevel,String nstr){
x[0]=nx; x[1]=ny;
xlen=nxl; ylen=nyl;
parent=nparent;
level=nlevel;
label=new String(nstr);
children=new nodelist();
/*** destroys the node ***/
public void destruct() {
// NOTE : not like C++ destructors . Do not confuse .
delete_subtree();
children=null;
parent=null;
bk=wh=rd=null;
label=null;
/*** Node to red toggle switch ***/
public void _to_rd(boolean b) {to_rd=b;};
/*** Adds a child to this node ***/
public void add_child(int nx,int ny,int nxl,int nyl,node nparent,int nlevel,
String nstr) {
if (childnum<maxchild) { // if 'legal' space left ...
if (children==null) { // if no nodelist attached ...
children=new nodelist(); //init. children
children.ptr=new node(nx,ny,nxl,nyl,nparent,nlevel,nstr); //create node
childnum++;
} else {
nodelist dummy=children;
// search for the last nodelist
while (dummy.next!=null) dummy=dummy.next;
dummy.next=new nodelist(); //adds a nodelist
dummy=dummy.next;
dummy.ptr=new node(nx,ny,nxl,nyl,nparent,nlevel,nstr); //create child
childnum++;
// Tree needs to be realigned
/*** adds a child and returns its address ***/
public node add_child_ret(int nx,int ny,int nxl,int nyl,node nparent,int nlevel,
String nstr) {
if (childnum<maxchild) {
if (children==null) {
children=new nodelist();
children.ptr=new node(nx,ny,nxl,nyl,nparent,nlevel,nstr);
childnum++;
return(children.ptr);
} else {
nodelist dummy=children;
// search for the last child
while (dummy.next!=null) dummy=dummy.next;
dummy.next=new nodelist();
dummy=dummy.next;
dummy.ptr=new node(nx,ny,nxl,nyl,nparent,nlevel,nstr);
childnum++;
return(dummy.ptr);
return(null);
// Tree needs to be realigned
/*** adds the node nchild as a new children ***/
public void add_child(node nchild) {
nodelist dummy=null;
dummy=children;
if (childnum<maxchild) {
if (children==null) {
children=new nodelist();
children.ptr=nchild;
childnum++;
} else {
while (dummy.next!=null) dummy=dummy.next;
dummy.next=new nodelist();
dummy=dummy.next;
dummy.ptr=nchild;
childnum++;
//Tree needs to restructured.
/*** deletes all childrens ***/
public void delete_subtree() {
while (childnum>0 && children!=null) { //while child exists , kill it
if (children.ptr!=null) {
children.ptr.destruct();
children.ptr=null;
children=children.next;
} else children=null;
childnum--;
/*** moves this node and its children horizontally ***/
public void move_tree(int nx) {
nodelist dummy=children;
x[0]+=nx;
while (childnum>0 && dummy!=null) {
if (dummy.ptr!=null) {
dummy.ptr.move_tree(nx);
dummy=dummy.next;
/*** removes the node from the tree (do not preserve order of ordered tree ) ***/
public void remove_node() {
nodelist dummy=children;
while(dummy!=null) {
if (dummy.ptr!=null){
parent.add_child(dummy.ptr);
dummy=dummy.next;
children=null;
//could call restructure tree here .
//don't forget to change the node's levels !!!
/*** show all nodes ***/
public void show_all(Graphics g) {
if (_ishidden==false) { //if not hidden
if (children!=null) { //if child exist
nodelist dummy=children; //temp var.
while(dummy!=null) { //while there is a child...
if (dummy.ptr!=null)
dummy.ptr.show_all(g);
dummy=dummy.next;
show_node(g);
/*** show nodes in preorder ***/
public int preorder_show(Graphics g,int label){
if (_ishidden==false) {
show_node(g/*,label++*/);
if (children!=null) {
nodelist dummy=children;
while(dummy!=null) {
if (dummy.ptr!=null) label=dummy.ptr.preorder_show(g,label);
dummy=dummy.next;
return(label);
/** show nodes in postorder ***/
public int postorder_show(Graphics g,int label){
if (_ishidden==false) {
if (children!=null) {
nodelist dummy=children;
while(dummy!=null) {
if (dummy.ptr!=null) label=dummy.ptr.postorder_show(g,label);
dummy=dummy.next;
show_node(g/*,label++*/);
return(label);
/*** show nodes in inorder ***/
public int inorder_show(Graphics g,int label){
if (_ishidden==false) {
if (children!=null) {
nodelist dummy=children;
if (dummy.ptr!=null) label=dummy.ptr.inorder_show(g,label);
dummy=dummy.next;
show_node(g/*,label++*/);
while(dummy!=null) {
if (dummy.ptr!=null) label=dummy.ptr.inorder_show(g,label);
dummy=dummy.next;
} else show_node(g/*,label++*/);
return(label);
/*** Restructure the coordinates of all nodes ***/
public int align(int min,Font fnt,int lev,Graphics g){
int i=min; //left bound
FontMetrics fntm=g.getFontMetrics(fnt); //used to know the text size
level=lev;
// node x and y radius are computed here
xlen=4+(int)(fntm.stringWidth(label)/2);
ylen=4+(int)(fntm.getHeight()/2);
if (children!=null) { //if child present ...
nodelist dummy=children;
while(dummy!=null) {
if (dummy.ptr!=null) i=dummy.ptr.align(i,fnt,lev+1,g); //align them
dummy=dummy.next;
x[0]=min+(int)((i-min)/2); //could be underflow so will be checked
x[1]=lev*(vspace+(ylen*2))+26;
// overflow should happen only when the parent node is larger than its children
if ((x[0]-xlen)<min) { //check uf underflow occurs.
move_tree(min+xlen-x[0]+1);
i=x[0]+xlen+5;
if (childnum==0) x[0]+=2;
return(i);
/*** returns the child following nd ***/
/*** if nd==null -> return 1st child ***/
/*** if nd==last children -> return null***/
public node next_child(node nd) {
nodelist dummy=null;
if (children==null) return(null);
if (nd==null) return(children.ptr);
dummy=children;
while (dummy.ptr!=nd) {
if (dummy.next!=null)
dummy=dummy.next;
else
return(null);
dummy=dummy.next;
if (dummy!=null) return(dummy.ptr);
else return(null);
/*** returns child with first letter==nh ***/
public node get_childd(char ch) {
nodelist dummy=null;
dummy=children;
while (dummy!=null) {
if (dummy.ptr!=null) {
if (dummy.ptr.label.charAt(0)==ch)
return(dummy.ptr);
dummy=dummy.next;
return(null);
/*** returns the nodelist containing nd ***/
public nodelist get_child(node nd) {
nodelist dummy=children;
while (dummy!=null) {
if (dummy.ptr==nd) return(dummy);
dummy=dummy.next;
return(null);
/*** outputs the node to Screen ***/
public void show_node(Graphics g) {
if (_ishidden==false) {
if (level>0) { //if it is not a root then draw link-line
g.setColor(bk);
g.drawLine(x[0],x[1]-ylen,parent.x[0],parent.x[1]+parent.ylen); //from this node to parent node
if (to_rd==false)
g.setColor(wh);
else
g.setColor(rd);
g.fillOval(x[0]-xlen,x[1]-ylen,xlen*2,ylen*2); //draws an oval
g.setColor(bk);
g.drawString(label,x[0]-xlen+4,x[1]+ylen-12); //output the text
/*** class which uses nodes to create a SUFFIX TREE ***/
class s_tree {
node root=null; // root node.
String str=null; // 'search' string
Font fnt=null; // font type
int xx=30; // left limit for graphics
/*** initialize a SUFFIX TREE with string==nstr and Font==nfnt ***/
public s_tree(String nstr,Font nfnt) {
str=new String(nstr);
fnt=nfnt;
create();
/*** uninitialize the structure **/
public void destruct() {
root.destruct();
str=null;
fnt=null;
/*** show the tree ***/
public void show(Graphics g) {
root.align(xx,fnt,0,g); // restructure node's coordinates
root.show_all(g); //show tree
/*** creates a tree structure from String=str ***/
public void create() {
node dummy=null;
root=new node(0,0,0,0,dummy,0," "); //create root
root.parent=null; //just to make sure ...
for (int i=0;i<str.length();i++) {
// Create subtree of root in the following way :
// create subtree ("ASDF$");
// " " ("aSDF$");
// " " ("asDF$"); ...
// where : the UPPERCASE letters is the part of the string sent to insert_string
insert_string(str.substring(i));
//root.align(0,fnt,0); //align root now ?
/*** creates a subtree of ROOT with String=nstr ***/
public void insert_string(String nstr) {
node dummy2=null,dummy=null;
int i=0;
dummy=root;
dummy2=root;
// As long as a children of dummy2 have the letter nstr[i] , dummy==thischildren
// It is used to make sure that a node does not have two children with the
// same letter
while (dummy2!=null) {
dummy2=dummy2.get_childd(nstr.charAt(i));
if (dummy2!=null) {
i++;
dummy=dummy2;
//create the nodes for the rest of the string
for(;i<nstr.length();i++) {
if (dummy!=null) dummy=dummy.add_child_ret(0,0,0,0,dummy,1,nstr.substring(i,i+1));
// Compacts the tree node by node and returns the next node to compact
// if node==null , compacts the first node ...
//Works in POST-ORDER
public node step_compact(node nd) {
node dummy=nd,dummy2=null;
nodelist ndlst=null;
// GOES TO THE LOWER LEFT CHILDREN
if (nd==null) { //first call !
dummy=root;
while(dummy.children!=null) {
if (dummy.children.ptr==null)
dummy.children=dummy.children.next;
else
dummy=dummy.children.ptr;
//*** tries to find a 'compactable' node ***
//*** It uses the POST-ORDER method ***
// if this node is not the last children then try to find next compactable node
// in the next children.
if (dummy.parent.childnum!=1) dummy=next_chain(dummy);
if (dummy==null) return(null); //fully optimized
//remove parent node.
/*** THIS IS WHERE COMPACTING TAKES PLACE **/
dummy2=dummy.parent.parent;
ndlst=dummy2.get_child(dummy.parent);
if (ndlst==null) return(null); //we've got a beeeeg problem if this happens ...
//*** merges the parent string with this one and delete parent .
dummy.label=dummy.parent.label.concat(dummy.label);
ndlst.ptr=dummy;
//delete parent .
dummy.parent=null;
dummy.parent=dummy2;
// root.align(0,fnt,0);
return(dummy);
/*** finds the next chain in the tree (i.e. the next compactable node) ***/
public node next_chain(node nd){
node dummy=null;
if (nd.parent==null) return(null); //finished ! This is the root
if (nd.parent.childnum==1) return(nd); //can be optimized
// finds the nd.parent's child following nd
dummy=nd.parent.next_child(nd);
if (dummy==null) // if OLD_nd==last child
return(next_chain(nd.parent)); //tries to find a chain upwards
else {
// OLD_nd was not the last child . nd==OLD_nd's next brother
// GOES TO THE LOWER LEFT most child of nd's subtree.
while(dummy.children!=null) {
if (dummy.children.ptr==null)
dummy.children=dummy.children.next;
else
dummy=dummy.children.ptr;
return(next_chain(dummy)); // returns the next compactable node
};First, show me the rupees! Show me the rupees!
-
HELP!!!!!! Applet has messed up my JSC
During the test of integrating applet into JSF pages, my JSC IDE suddently got a problem with applet. Please help me out!!!
My applet test project:- Open a new project
- Drop a Label, a Button, and a StaticText into page
- Set button action as "label1.setText("click");"
- Uncheck "escape" property of StaticText and Set "Text" to <applet/>
Compile and Run the project- A square box with "x" is shown (this is right for the applet in the page)
- BUT CLICKING BUTTON GETS NO ACTION!
If I remove <applet/> from StaticText, Everything is fine.
Do the same thing using JSC on another computer:- Everything works fine even though I integrate a real applet class.
Uninstall my JSC2
Delete folder /Program Files/Sun/Creator2, and /doc and settings/user/.Creator,
Clean up Registry and restart computer
Download JSC 2 update 1
Install JSC 2 update 1
Try the applet test project- EVEN WORSE! THE BUTTON DOES NOT SHOW UP!!!
- It only works if I remove the <applet/> from staticText
Can anyone here help me out? Any help is really appreciated!
Thanks in advance,I've tried in both and it looks like the IE submit somehow gets broken when there is a problem with the applet. You get the following exception in the Java Console.
java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)I was able to get an applet working with a Creator app in IE when the <applet> tag contained valid applet information. Please try continuing to build the web application with a VALID set of applet tags (that won't break).
Cheers!
-David -
Devloping graphs using pure java without applets and swings
Hi Guys
i want to devlop bar graphs,pie charts,line graphs using pure java.i don't want to use applets and swings..does any body help on this asap..
IT'S VERY URGENT
cheers
ANANDGo to
http://java.sun.com/docs/books/tutorial/information/download.html#OLDui
and get: Creating a User Interface (AWT Only) Archive (tut-OLDui.zip) -
IE7 Browser hangs while displaying an applet of larger size
Hi
My IE7 Browser hangs while displaying an applet of larger size with jre version update 12. The java.exe utilization is 99%.
Can somebody please help me out.
Thanks
AnnYou haven't given much details. The problem is probably related to the applet and not the plug-in
Kaj -
Hi all, I've been wondering if applets can be dynamically called from a jsp or servlet using strings in the applet code section. would this be good if a database was used to store the paths of the applets?
i've tried this with a small applet in different ways, just to see the effect in Apache Tomcat 4.1.24, but it didn't really work. could anyone help me out here?
the coding i've been using is below :
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
Here is the applet!
<br>
<jsp:plugin type="applet" code="ElecBill_a" codebase="." height="200" width="200" >
<jsp:fallback>
<p> Unable to use Java Plugin</p>
</jsp:fallback>
</jsp:plugin>
<br>
<applet code = "ElecBill_a.class" height="200" width="200"></applet>
//up to here it works fine, both applets appear. but below, the string is read directly and causes an error
<%! String myapplet = new String("ElecBill_a"); %>
<%! public String getName() {return myapplet; } %>
<br> The name of the class file is <%= getName() %>
<br>
<jsp:plugin type="applet" code="<%= "myapplet" %>" codebase="." height="200" width="200" >
<jsp:fallback>
<p> Unable to use Java Plugin</p>
</jsp:fallback>
</jsp:plugin>
</body>
</html>yes, i suppose it doesn't. i've tried to insert it using the original way with the applet tag like this
<APPLET code = <%= getName() %> width=300 height=300>
</APPLET>
and this works...so i might go with this for a short term solution until i can figure out a better way...thanks! -
Do I need to make an applet with swing point to the JRE 1.4 plug-in?
Do I need to make an applet with swing point to the JRE 1.4 plug-in? I mean, in 1.3.1 plug-in, if you did not run your code through the HTML converter, the applet would still use the browsers JRE (JVM). However, with 1.4.0, it seems that you don't need to. Is this correct?
When you ran an applet that has been compiled under 1.4 and needs classes or methods from 1.4 with an old HTML file (presumedly with the <object> tag that still refers to JRE 1.3+), the browser is going to look at the <object> tag and see that at least JRE1.3.1 is needed to correctly run the applet and since 1.4, which is higher than 1.3+, is on the system, it ignorantly proceeds to load and run the applet. The problem that you're going to run into is when you deploy the applet on the web and your viewer only have JRE1.3+, your applet which really needs 1.4, will crap out....
;o)
V.V. -
Awt V Swing in applets ???
I've written an applet using Swing but I'm having huge problems trying to get it to run in Internet Explorer (even though it works in the Applet viewer).
Someone suggested rewriting it using awt so that users with older browsers don't have to download a plugin to be able to view it? Is it necessary to download a plugin to view applets with Swing? Is this better to avoid using packages like Swing if possible, in your opinion? Please let me know what you think - I would like as many people as possible to be able to see the applet on their browsers.
Thanks for your time.It's because of Microsoft and Sun falling out over Java, effectively Microsoft couldn't/wouldn't move beyond 1.1 which was AWT based. At some point in the not too distant future they will remove all Java support so at that point you will be reliant on a plug-in to get to the IE base.
At the moment, if you've already done some AWT work and the GUI is simple, I'd stick with it, otherwise go to Swing and the plug-in. This is of course subjective, others would disagree strongly with me.
Answer provided by Friends of the Water Cooler. Please inform forum admin via the 'Discuss the JDC Web Site' forum that off-topic threads should be supported. -
Your browser is completely ignoring the applet tag
I installed the 64bit jre on a windows 7 system
Windows 7 64bit + Java 1.6.0 22 +++
when i try to view
http://java.sun.com/applets/jdk/1.4/demo/applets/ArcTest/example1.html
i get a message saying
alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason." Your browser is completely ignoring the <APPLET> tag!
Does anyone have an idea why ?yes: Thank for help
Still i have the problem to show applets in web browser. it fails the execution of applet tag and show the error message NORMALY alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason." Your browser is completely ignoring the <APPLET> tag!
can u please give me a solution for that -
Swing based applet communication with javascript
Hi
In my browser based application, the GUI has two part one contains the swing based applet and other is html based text area. Applet contains the list of text files.
My requirements is that if user double clicks on a file the, text area should display the name or path or content of file. I facing problem at very first level, how to capture the swing event in java script of browser?
Thanks in advance!!! :)Hi
In my browser based application, the GUI has two part one contains the swing based applet and other is html based text area. Applet contains the list of text files.
My requirements is that if user double clicks on a file the, text area should display the name or path or content of file. I facing problem at very first level, how to capture the swing event in java script of browser?
Thanks in advance!!! :)
Maybe you are looking for
-
is it possible to buy an Apple monitor for this macbook?
-
i am using VFP5 as a frontend and oracle 8i as a back end. i am connecting oracle thru ODBC. When i try to execute any replication procedure thru VFP5 i get an error message 'client cannot begin a transaction'. To resolve this i installed oracle8.05
-
How do I transfer bookmarks from my XP PC to a new laptop with Linux Mint?
I'm currently using a 7 year-old laptop with Windows XP. I bought a new one and I plan to install Linux Mint. Do I follow the same instructions for transferring between computers when they have different OS?
-
[new] OpenCV 0.9.5
I've built a package for OpenCV, a biometrics library for facefinding developed by Intel. filelist PKGBUILD configure.patch opencv.install (BINARY)opencv-0.9.5-1.pkg.tar.gz Update: Binary available. // STi
-
White circle with a diagonal stripe
After this last round of updates my two computors (intel and PPC) are playing up. Each computor has an ext hard drive one usb the other fw. The computors use airport to connect. Here's my problem; I wanted to compile a cd from some of my one hit wond