< prev index next >

src/java.desktop/share/classes/java/awt/Canvas.java

Print this page

        

@@ -56,15 +56,17 @@
      */
     public Canvas() {
     }
 
     /**
-     * Constructs a new Canvas given a GraphicsConfiguration object.
+     * Constructs a new Canvas given a GraphicsConfiguration object. If null is
+     * passed, then the default GraphicsConfiguration will be used.
      *
-     * @param config a reference to a GraphicsConfiguration object.
+     * @param config a reference to a GraphicsConfiguration object or null
      *
      * @see GraphicsConfiguration
+     * @see Component#getGraphicsConfiguration()
      */
     public Canvas(GraphicsConfiguration config) {
         this();
         setGraphicsConfiguration(config);
     }
< prev index next >