File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
sources/net.sf.j2s.java.core/src/java/awt Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -819,7 +819,7 @@ protected void setAppContext() {
819819 * Constructs a name for this component. Called by <code>getName</code> when the
820820 * name is <code>null</code>.
821821 */
822- String constructComponentName () {
822+ protected String constructComponentName () {
823823 return null ; // For strict compliance with prior platform versions, a
824824 // Component
825825 // that doesn't set its name should return null from
@@ -1560,6 +1560,10 @@ public void hide() {
15601560 * @beaninfo bound: true
15611561 */
15621562 public Color getForeground () {
1563+ return getForeground_NoClient ();
1564+ }
1565+
1566+ protected Color getForeground_NoClient () {
15631567 Color foreground = this .foreground ;
15641568 if (foreground != null ) {
15651569 return foreground ;
@@ -1614,6 +1618,10 @@ public boolean isForegroundSet() {
16141618 * @since JDK1.0
16151619 */
16161620 public Color getBackground () {
1621+ return getBackground_NoClient ();
1622+ }
1623+
1624+ protected Color getBackground_NoClient () {
16171625 Color background = this .background ;
16181626 if (background != null ) {
16191627 return background ;
You can’t perform that action at this time.
0 commit comments