classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: Added 2 missing constructors in JFrame


From: Roman Kennke
Subject: [cp-patches] FYI: Added 2 missing constructors in JFrame
Date: Mon, 06 Jun 2005 14:54:01 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021204

2005-06-06  Roman Kennke  <address@hidden>

   * javax/swing/JFrame.java:
   Added the two missing constructors that take
   java.awt.GraphicsConfiguration objects as arguments.


/Roman

Index: javax/swing/JFrame.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/JFrame.java,v
retrieving revision 1.21
diff -u -r1.21 JFrame.java
--- javax/swing/JFrame.java     25 Jan 2005 07:07:25 -0000      1.21
+++ javax/swing/JFrame.java     6 Jun 2005 12:51:16 -0000
@@ -45,6 +45,7 @@
 import java.awt.Dimension;
 import java.awt.Frame;
 import java.awt.Graphics;
+import java.awt.GraphicsConfiguration;
 import java.awt.LayoutManager;
 import java.awt.event.KeyEvent;
 import java.awt.event.WindowEvent;
@@ -79,6 +80,37 @@
     frameInit();
   }

+  /**
+   * Creates a new JFrame in the specified address@hidden 
GraphicsConfiguration}
+   * and with an empty title.
+   *
+   * @param gc the <code>GraphicsConfiguration</code> that is used for
+   *     the new <code>JFrame</code>
+   *
+   * @see Frame(GraphicsConfiguration)
+   */
+  public JFrame(GraphicsConfiguration gc)
+  {
+    super(gc);
+    frameInit();
+  }
+
+  /**
+   * Creates a new JFrame in the specified address@hidden 
GraphicsConfiguration}
+   * and with the specified title.
+   *
+   * @param title the title for the new <code>JFrame</code>
+   * @param gc the <code>GraphicsConfiguration</code> that is used for
+   *     the new <code>JFrame</code>
+   *
+   * @see Frame(String, GraphicsConfiguration)
+   */
+  public JFrame(String title, GraphicsConfiguration gc)
+  {
+    super(title, gc);
+    frameInit();
+  }
+
   protected void frameInit()
   {
     super.setLayout(new BorderLayout(1, 1));

reply via email to

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