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
[parent not found: <bug-22151-10854@http.gcc.gnu.org/bugzilla/>]

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).