Closed
Bug 442479
Opened 17 years ago
Closed 15 years ago
object tag does not display simple Java Applets
Categories
(Core Graveyard :: Plug-ins, defect)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: brad.hudson, Unassigned)
Details
(Whiteboard: [closeme 2010-05-05])
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0
//Java Code:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class JGreet4 extends JApplet implements ActionListener
{
Container con = getContentPane();
JLabel greeting = new JLabel("Greetings!");
Font bigFont = new Font("Times Roman", Font.ITALIC, 24);
JLabel firstLabel = new JLabel("Please enter your first name:");
JLabel lastLabel = new JLabel("Please enter your last name:");
JTextField firstField = new JTextField("", 10);
JTextField lastField = new JTextField("", 10);
JButton viewButton = new JButton("View Greeting");
FlowLayout flow = new FlowLayout();
public void init()
{
greeting.setFont(bigFont);
con.add(greeting);
con.setLayout(flow);
con.add(firstLabel);
con.add(firstField);
con.add(lastLabel);
con.add(lastField);
con.add(viewButton);
viewButton.addActionListener(this);
firstField.requestFocus();
}
public void actionPerformed(ActionEvent thisEvent)
{
String firstName = firstField.getText();
String lastName = lastField.getText();
greeting.setText("How are you, " + firstName + " " + lastName + "?");
}
}
HTML Page (TestJGreet4.html):
<html>
<object code="JGreet4.class" width="450" height="200">
</object>
</html>
Reproducible: Always
Steps to Reproduce:
1. compile the example java code above (javac JGreet4.java)
2. open firefox 3.0 and point to the local file (TestJGreet4.html)
3.
Actual Results:
nothing displays at all
Expected Results:
a JApplet page
simply replacing the "object" tag with an identical "applet" tag works without issues, but is deprecated code, example below:
HTML Page (TestJGreet4.html):
<html>
<applet code="JGreet4.class" width="450" height="200">
</applet>
</html>
Updated•17 years ago
|
Component: General → Plug-ins
Product: Firefox → Core
QA Contact: general → plugins
Version: unspecified → Trunk
Comment 1•17 years ago
|
||
sounds like what I saw with our C plugin, bug 438830
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.4) Gecko/20100413 Firefox/3.6.4
Please update if you are able to still reproduce with the latest nightly build ftp://ftp.mozilla.org/pub/firefox/nightly/latest-trunk/
Whiteboard: [closeme 2010-05-05]
Comment 3•15 years ago
|
||
Closing since now after whiteboard closeme date and no reply to last comment.
Please reopen/comment with further info, if you still see this issue with Firefox 3.6.13 or later, with a clean profile and the latest version of the plugin.
If you wish, you can also try to reproduce in Firefox 4 Beta 8 or later:
http://www.mozilla.com/en-US/firefox/all-beta.html
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INCOMPLETE
Version: Trunk → 1.9.0 Branch
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•