Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Nakatona sy natao arisiva ity resaka mitohy ity. Mametraha fanontaniana azafady raha mila fanampiana.

With recent version of mac FireFox 24 and above, the java awt component Canvas is not getting visible in browser secreen. This issue occurs only with Mac env

  • 1 valiny
  • 2 manana an'ity olana ity
  • 15 views
  • Valiny farany nomen'i the-edmeister

more options

Java awt Canvas Image is not getting displayed with Mac FireFox 24 and above. The same Canvas image is getting displayed properly with Windows FireFox. Please find the code snippet below.

Is this an issue with FireFox or any extra steps needed in Mac to make this working ?

public class CanvasSample extends Applet

{

  public void init() {
   this.add(new RedOval());
 }

}

class RedOval extends Canvas {

 public void paint(Graphics g) {
   Dimension d = this.getSize();
   g.setColor(Color.red); 
   g.fillOval(0, 0, d.width, d.height);
 }
 public Dimension getMinimumSize() {
   return new Dimension(50, 100);
 }
 public Dimension getPreferredSize() {
   return new Dimension(150, 300);
 }
 public Dimension getMaximumSize() {
   return new Dimension(200, 400);
 }

}

Java awt Canvas Image is not getting displayed with Mac FireFox 24 and above. The same Canvas image is getting displayed properly with Windows FireFox. Please find the code snippet below. Is this an issue with FireFox or any extra steps needed in Mac to make this working ? public class CanvasSample extends Applet { public void init() { this.add(new RedOval()); } } class RedOval extends Canvas { public void paint(Graphics g) { Dimension d = this.getSize(); g.setColor(Color.red); g.fillOval(0, 0, d.width, d.height); } public Dimension getMinimumSize() { return new Dimension(50, 100); } public Dimension getPreferredSize() { return new Dimension(150, 300); } public Dimension getMaximumSize() { return new Dimension(200, 400); } }

All Replies (1)

more options