public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug SWING/22151] New: JInternalFrame causes OutOfMemory error when maximized.
@ 2005-06-22 19:07 abalkiss at redhat dot com
  2005-06-23 17:20 ` [Bug SWING/22151] " abalkiss at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: abalkiss at redhat dot com @ 2005-06-22 19:07 UTC (permalink / raw)
  To: gcc-bugs

JInternalFrame causes OutOfMemory error when maximized.

Run the test case below, maximize the JInternalFrame, wait a while.  OutOfMemory
error.  

When the JInternalFrame is positioned at (10,10) rather than (60,60) the error
doesn't occur.

==TEST CASE==
import java.awt.*;
import javax.swing.*;
import java.io.*;

public class OutOfMemory {
   public static void main(String[] a) throws IOException{
      JFrame myFrame = new JFrame("Outer");
      myFrame.setSize(300,300);
      myFrame.setContentPane(new JDesktopPane());
      JInternalFrame f = new JInternalFrame("Internal");
      f.setSize(200,200);
      f.setVisible(true);
      f.setClosable(true);
      f.setMaximizable(true);
      f.setResizable(true);
      f.setIconifiable(true);
      /* IF THE FOLLOWING LINE IS CHANGED TO f.setLocation (10,10)
         no OutOfMemory error occurs! */
      f.setLocation(60,50);
      myFrame.add(f);
      myFrame.setVisible(true);
   }
}

-- 
           Summary: JInternalFrame causes OutOfMemory error when maximized.
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: SWING
        AssignedTo: abalkiss at redhat dot com
        ReportedBy: abalkiss at redhat dot com
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22151


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug SWING/22151] JInternalFrame causes OutOfMemory error when maximized.
  2005-06-22 19:07 [Bug SWING/22151] New: JInternalFrame causes OutOfMemory error when maximized abalkiss at redhat dot com
@ 2005-06-23 17:20 ` abalkiss at redhat dot com
  2005-06-23 18:21 ` abalkiss at redhat dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: abalkiss at redhat dot com @ 2005-06-23 17:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From abalkiss at redhat dot com  2005-06-23 17:20 -------
1: removing the call to handleEvent() in
BasicInternalFrameUI$GlassPaneDispatcher.mouseExited fixes the problem, but does
it break something else?

2: after maximizing, you have to move the mouse to trigger the infinite loop.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22151


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug SWING/22151] JInternalFrame causes OutOfMemory error when maximized.
  2005-06-22 19:07 [Bug SWING/22151] New: JInternalFrame causes OutOfMemory error when maximized abalkiss at redhat dot com
  2005-06-23 17:20 ` [Bug SWING/22151] " abalkiss at redhat dot com
@ 2005-06-23 18:21 ` abalkiss at redhat dot com
  2005-06-23 18:22 ` abalkiss at redhat dot com
  2005-09-01 18:27 ` [Bug swing/22151] " abalkiss at redhat dot com
  3 siblings, 0 replies; 6+ messages in thread
From: abalkiss at redhat dot com @ 2005-06-23 18:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From abalkiss at redhat dot com  2005-06-23 18:20 -------
Created an attachment (id=9135)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9135&action=view)
proposed patch


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22151


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug SWING/22151] JInternalFrame causes OutOfMemory error when maximized.
  2005-06-22 19:07 [Bug SWING/22151] New: JInternalFrame causes OutOfMemory error when maximized abalkiss at redhat dot com
  2005-06-23 17:20 ` [Bug SWING/22151] " abalkiss at redhat dot com
  2005-06-23 18:21 ` abalkiss at redhat dot com
@ 2005-06-23 18:22 ` abalkiss at redhat dot com
  2005-09-01 18:27 ` [Bug swing/22151] " abalkiss at redhat dot com
  3 siblings, 0 replies; 6+ messages in thread
From: abalkiss at redhat dot com @ 2005-06-23 18:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From abalkiss at redhat dot com  2005-06-23 18:21 -------
Patch proposed, should be patched in classpath very shortly.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22151


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug swing/22151] JInternalFrame causes OutOfMemory error when maximized.
  2005-06-22 19:07 [Bug SWING/22151] New: JInternalFrame causes OutOfMemory error when maximized abalkiss at redhat dot com
                   ` (2 preceding siblings ...)
  2005-06-23 18:22 ` abalkiss at redhat dot com
@ 2005-09-01 18:27 ` abalkiss at redhat dot com
  3 siblings, 0 replies; 6+ messages in thread
From: abalkiss at redhat dot com @ 2005-09-01 18:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From abalkiss at redhat dot com  2005-09-01 18:27 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22151


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug swing/22151] JInternalFrame causes OutOfMemory error when maximized.
       [not found] <bug-22151-10854@http.gcc.gnu.org/bugzilla/>
@ 2005-10-16  1:48 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-16  1:48 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |0.18


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22151


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-10-16  1:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-22 19:07 [Bug SWING/22151] New: JInternalFrame causes OutOfMemory error when maximized abalkiss at redhat dot com
2005-06-23 17:20 ` [Bug SWING/22151] " abalkiss at redhat dot com
2005-06-23 18:21 ` abalkiss at redhat dot com
2005-06-23 18:22 ` abalkiss at redhat dot com
2005-09-01 18:27 ` [Bug swing/22151] " abalkiss at redhat dot com
     [not found] <bug-22151-10854@http.gcc.gnu.org/bugzilla/>
2005-10-16  1:48 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).