BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Why can't I see my applet in a browser (IE6, Firefox)

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Applet Issues
View previous topic :: View next topic  
Author Message
Davisote
Guest





PostPosted: Wed Mar 23, 2005 6:37 pm    Post subject: Why can't I see my applet in a browser (IE6, Firefox) Reply with quote



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





PostPosted: Wed Mar 23, 2005 11:47 pm    Post subject: Re: Why can't I see my applet in a browser (IE6, Firefox) Reply with quote




"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Applet Issues All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.