[Bug 730] Calling URL with Firefox 4 / Chrome
bugzilla-daemon at icedtea.classpath.org
bugzilla-daemon at icedtea.classpath.org
Tue May 24 06:16:40 PDT 2011
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=730
--- Comment #2 from Michaela Merz <mm at michaelamerz.com> 2011-05-24 13:16:40 ---
Simple Source to verify error:
============================================================
import java.applet.Applet;
import java.awt.Button;
import java.awt.Graphics;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.net.URL;
public class Test extends Applet implements ActionListener {
Button googleButton;
public void changePage(String url) {
System.err.println("Attempting to go to: " + url);
try {
getAppletContext().showDocument(new URL(url), "_self");
} catch (Exception e) {
e.printStackTrace();
}
}
public void init() {
googleButton = new Button("google.ca");
googleButton.addActionListener(this);
add(googleButton);
}
public void actionPerformed(ActionEvent evt) {
if (evt.getSource() == googleButton) {
changePage("http://www.google.ca");
}
}
}
--
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the distro-pkg-dev
mailing list