[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(){
this.setSize(200,200);
this.show();
}
public boolean handleEvent(Event evt)
{
System.out.println(evt);
switch(evt.id)
{
case Event.WINDOW_DESTROY:
{
System.exit(0);
return true;
}
default:
}
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27785
- [Bug awt/27785] New: awt.Frame lack of close event,
nick at nickhill dot co dot uk <=
- [Bug awt/27785] awt.Frame lack of close event, mark at gcc dot gnu dot org, 2006/05/28
- [Bug awt/27785] awt.Frame lack of close event, nick at nickhill dot co dot uk, 2006/05/30
- [Bug awt/27785] awt.Frame lack of close event, nick at nickhill dot co dot uk, 2006/05/30
- [Bug awt/27785] awt.Frame lack of close event, langel at redhat dot com, 2006/05/30
- [Bug awt/27785] awt.Frame lack of close event, langel at redhat dot com, 2006/05/30
- [Bug awt/27785] awt.Frame lack of close event, cvs-commit at developer dot classpath dot org, 2006/05/30