src/java.desktop/share/classes/javax/swing/JComponent.java
changeset 47980 519f8bc59a1f
parent 47497 328167c4ef32
child 52248 2e330da7cbf4
equal deleted inserted replaced
47979:ecaa3569ec3d 47980:519f8bc59a1f
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   773      * changes to the passed in <code>Graphics</code>. For example, you
   773      * changes to the passed in <code>Graphics</code>. For example, you
   774      * should not alter the clip <code>Rectangle</code> or modify the
   774      * should not alter the clip <code>Rectangle</code> or modify the
   775      * transform. If you need to do these operations you may find it
   775      * transform. If you need to do these operations you may find it
   776      * easier to create a new <code>Graphics</code> from the passed in
   776      * easier to create a new <code>Graphics</code> from the passed in
   777      * <code>Graphics</code> and manipulate it. Further, if you do not
   777      * <code>Graphics</code> and manipulate it. Further, if you do not
   778      * invoker super's implementation you must honor the opaque property,
   778      * invoke super's implementation you must honor the opaque property, that is
   779      * that is
       
   780      * if this component is opaque, you must completely fill in the background
   779      * if this component is opaque, you must completely fill in the background
   781      * in an opaque color. If you do not honor the opaque property you
   780      * in an opaque color. If you do not honor the opaque property you
   782      * will likely see visual artifacts.
   781      * will likely see visual artifacts.
   783      * <p>
   782      * <p>
   784      * The passed in <code>Graphics</code> object might
   783      * The passed in <code>Graphics</code> object might