Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-5520

[tools][appletviewer] appletviewer doesn't change the size of initial frame if it was resized by applet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • all
    • Patch Available

    Description

      The current implementation of appletviewer is unable to correctly change the size of the main frame if it was resized by applet's code. Please see the example below.

      MyFrame.java

      import java.awt.*;
      import java.applet.Applet;

      public class MyFrame extends Applet {

      public void init()

      { setSize(600, 600); }

      public void paint(Graphics g)

      { g.clearRect(0, 0, 400, 400); g.setColor(Color.BLUE); g.drawRect(10, 60, 350, 350); g.drawString("Mama", 80, 80); }

      }

      You can observe this bug if you try to run the Clock demo applet from RI 1.5 distribution.

      Attachments

        Activity

          People

            zakha Alexei Zakharov
            zakha Alexei Zakharov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: