[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug awt/27785] New: awt.Frame lack of close event

From: nick at nickhill dot co dot uk
Subject: [Bug awt/27785] New: awt.Frame lack of close event
Date: 28 May 2006 13:12:46 -0000

Testcase attached below.

Run testcase. Produces a frame which prints out events.

Main issue: Clicking close should generate 201 event but doesn't.

Other differences noted between SUN 1.4 and classpath of 25/may/06
SUN 1.4                        |         Classpath
Click minimise generates 203   |
then 1005                      |No event generated
Loosing system focus 1005      |No event on loose system focus
Gaining system focus 1004      |No event generated on gaining focus
Click icon on taskbar to       |No event generated
restore generates 204 then 1004|
Dragging window around by      |No event generated
titlebar generates 205         |
Clicking close generates 201   |No event generated
Click maximise generates 205   |No event generated
Click restore generates 205    |No event generated

Incidental note: I would expect dragging the window to a new size to generate
205 but it doesn't in either the sun or classpath implementation.

Test case:

import java.awt.Event;
import java.awt.Frame;

public class EventTest extends Frame {
        private static final long serialVersionUID = 8750874041699880543L;
        EventTest(){drawWindow(); }
        public static void main(String[] args) {
                new EventTest();

        public void drawWindow(){
          public boolean handleEvent(Event evt)
                  case Event.WINDOW_DESTROY:
                                return true;
                  return super.handleEvent(evt);

           Summary: awt.Frame lack of close event
           Product: classpath
           Version: 0.92
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: awt
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: nick at nickhill dot co dot uk
 GCC build triplet: 25 May 06
  GCC host triplet: i386 GNU/Linux


reply via email to

[Prev in Thread] Current Thread [Next in Thread]