mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-21 12:20:29 +00:00
4703110: java.awt.Canvas(GraphicaConfiguration): null reaction
Reviewed-by: azvegint, ant
This commit is contained in:
parent
e41e267848
commit
324b186f1b
@ -58,11 +58,13 @@ public class Canvas extends Component implements Accessible {
|
||||
}
|
||||
|
||||
/**
|
||||
* 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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user