harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Kishenko (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2305) [classlib][awt] Several components can be active concurrently
Date Fri, 24 Nov 2006 12:08:02 GMT
[classlib][awt] Several components can be active concurrently

                 Key: HARMONY-2305
                 URL: http://issues.apache.org/jira/browse/HARMONY-2305
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Denis Kishenko

Several components can be active concurrently. For example, 2 buttons can be 
depressed at one time (one with mouse, one with space key). It may lead 
unpredictable behavior.

============ Test ==============
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import java.awt.Button;
import javax.swing.JFrame;

public class Test {

    public static void main(String[] args) {
        JFrame f = new JFrame("Test");
        Container cp = f.getContentPane();
        cp.add(BorderLayout.NORTH, new Button("Button 1"));
        cp.add(BorderLayout.SOUTH, new Button("Button 2"));

                new WindowAdapter() {
                    public void windowClosing(WindowEvent e) {

        f.setSize(200, 80);

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message