Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

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

Natao arisiva ity resaka mitohy ity. Mametraha fanontaniana azafady raha mila fanampiana.

With Mac FireFox version 24 and above, the java awt component Canvas is not getting visible in browser screen.

  • 1 valiny
  • 1 manana an'ity olana ity
  • 1 view
  • Valiny farany nomen'i NoahSUMO

more options

Java awt Canvas image is not getting visible with Mac FireFox 24 and above version. The same Canvas image is displaying properly with Windows FireFox 24 and above.

Please let us know, is there any extra steps needed to make this working or is this an issue with Mac FireFox ?

public class CanvasExample extends Applet
{
   public void init() {
    this.add(new RedOval());
  }

  public Dimension getMinimumSize() {
    return new Dimension(50, 100);
  }

  public Dimension getPreferredSize() {
    return new Dimension(150, 300);
  }

  public Dimension getMaximumSize() {
    return new Dimension(200, 400);
  }
}

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);

  }
}
Java awt Canvas image is not getting visible with Mac FireFox 24 and above version. The same Canvas image is displaying properly with Windows FireFox 24 and above. Please let us know, is there any extra steps needed to make this working or is this an issue with Mac FireFox ? <pre><nowiki>public class CanvasExample extends Applet { public void init() { this.add(new RedOval()); } public Dimension getMinimumSize() { return new Dimension(50, 100); } public Dimension getPreferredSize() { return new Dimension(150, 300); } public Dimension getMaximumSize() { return new Dimension(200, 400); } } 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); } }</nowiki></pre>

Novain'i cor-el t@

All Replies (1)

more options

I would recommend you file a bug at https://bugzilla.mozilla.org/ using all the information you have given here. And I will do my best to have a developer comment on it. This is outside most volunteers knowledge.

Please post the bug link here after you have created the bug.

The closest report I could find on this was: http://stackoverflow.com/questions/22247304/mac-osx-appletviewer-doesnt-display-anything

Novain'i NoahSUMO t@