 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Davisote Guest
|
Posted: Wed Mar 23, 2005 6:37 pm Post subject: Why can't I see my applet in a browser (IE6, Firefox) |
|
|
package myproject;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import javax.swing.*;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2005</p>
* <p>Company: </p>
* @author not attributable
* @version 1.0
*/
public class myApplet extends Applet {
private boolean isStandalone = false;
JMenuBar jMenuBar1 = new JMenuBar();
JMenu jMenu1 = new JMenu();
JMenu jMenu2 = new JMenu();
//Get a parameter value
public String getParameter(String key, String def) {
return isStandalone ? System.getProperty(key, def) :
(getParameter(key) != null ? getParameter(key) : def);
}
//Construct the applet
public myApplet() {
}
//Initialize the applet
public void init() {
try {
jbInit();
}
catch(Exception e) {
e.printStackTrace();
}
}
//Component initialization
private void jbInit() throws Exception {
jMenu1.setText("File");
jMenu2.setText("About");
jMenuBar1.add(jMenu1);
jMenuBar1.add(jMenu2);
}
//Get Applet information
public String getAppletInfo() {
return "Applet Information";
}
//Get parameter info
public String[][] getParameterInfo() {
return null;
}
}
|
|
| Back to top |
|
 |
Paul Nichols (TeamB) Guest
|
Posted: Wed Mar 23, 2005 11:47 pm Post subject: Re: Why can't I see my applet in a browser (IE6, Firefox) |
|
|
"Davisote" <yeses (AT) hotmail (DOT) com> wrote
| Quote: | package myproject;
See the jb.non-tech ng section where you first asked a question about your |
menubar first. If youtr problem is not solved, after you make the changes,
then it is probably due to the jvm setup in your browser.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|