< prev index next >
src/java.desktop/share/classes/javax/swing/plaf/synth/SynthToolBarUI.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -94,14 +94,14 @@
toolBar.removePropertyChangeListener(this);
}
private void updateStyle(JToolBar c) {
SynthContext context = getContext(
- c, Region.TOOL_BAR_CONTENT, null, ENABLED);
+ c, Region.TOOL_BAR_CONTENT, contentStyle, ENABLED);
contentStyle = SynthLookAndFeel.updateStyle(context, this);
- context = getContext(c, Region.TOOL_BAR_DRAG_WINDOW, null, ENABLED);
+ context = getContext(c, Region.TOOL_BAR_DRAG_WINDOW, dragWindowStyle, ENABLED);
dragWindowStyle = SynthLookAndFeel.updateStyle(context, this);
context = getContext(c, ENABLED);
SynthStyle oldStyle = style;
< prev index next >