commit-classpath
[Top][All Lists]
Advanced

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

[commit-cp] [bug #13420] swing: javax.swing.JInternalFrame.setDefaultClo


From: Timo Lindfors
Subject: [commit-cp] [bug #13420] swing: javax.swing.JInternalFrame.setDefaultCloseOperation(EXIT_ON_CLOSE) not handled
Date: Thu, 16 Jun 2005 09:16:59 +0000
User-agent: Elinks

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13420>

                 Summary: swing:
javax.swing.JInternalFrame.setDefaultCloseOperation(EXIT_ON_CLOSE) not
handled
                 Project: classpath
            Submitted by: lindi
            Submitted on: Thu 06/16/05 at 09:16
                Category: classpath
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
        Platform Version: None

    _______________________________________________________

Details:

Steps to reproduce:
1. Run the attached testcase.

Expected results:
1. Program exits sucessfully

Actual results:
1. Following exception is thrown:
java.lang.Error: Close operation must be one of DO_NOTHING_ON_CLOSE,
HIDE_ON_CLOSE, or DISPOSE_ON_CLOSE
   at javax.swing.JInternalFrame.setDefaultCloseOperation
(JInternalFrame.java:1291)
   at testcase.<init> (testcase.java:8)
   at testcase.main (testcase.java:5)


Testcase:
import javax.swing.*;
import java.awt.*;
public class testcase extends JInternalFrame {
        public static void main(String[] args) {
                (new testcase()).show();
        }
        public testcase() {
                setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        }
}







    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13420>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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