This commit is contained in:
prrace 2026-01-26 13:11:45 -08:00
parent 4cfc2c54f2
commit dd7b8459aa
4 changed files with 8 additions and 8 deletions

View File

@ -53,13 +53,13 @@ public class MotifButtonUI extends BasicButtonUI {
private boolean defaults_initialized = false;
private static final MotifButtonUI MOTIF_BUTTON_UI = new MotifButtonUI();
private static final ComponentUI UI = new MotifButtonUI();
// ********************************
// Create PLAF
// ********************************
public static ComponentUI createUI(JComponent c) {
return MOTIF_BUTTON_UI;
return UI;
}
// ********************************

View File

@ -37,7 +37,7 @@ import javax.swing.plaf.ComponentUI;
*/
public class MotifCheckBoxUI extends MotifRadioButtonUI {
private static final MotifCheckBoxUI MOTIF_CHECK_BOX_UI = new MotifCheckBoxUI();
private static final ComponentUI UI = new MotifCheckBoxUI();
private static final String propertyPrefix = "CheckBox" + ".";
@ -48,7 +48,7 @@ public class MotifCheckBoxUI extends MotifRadioButtonUI {
// Create PLAF
// ********************************
public static ComponentUI createUI(JComponent c) {
return MOTIF_CHECK_BOX_UI;
return UI;
}
@Override

View File

@ -37,9 +37,9 @@ import javax.swing.plaf.basic.BasicLabelUI;
*/
public class MotifLabelUI extends BasicLabelUI
{
private static final MotifLabelUI MOTIF_LABEL_UI = new MotifLabelUI();
private static final ComponentUI UI = new MotifLabelUI();
public static ComponentUI createUI(JComponent c) {
return MOTIF_LABEL_UI;
return UI;
}
}

View File

@ -46,7 +46,7 @@ import javax.swing.plaf.basic.BasicToggleButtonUI;
*/
public class MotifToggleButtonUI extends BasicToggleButtonUI
{
private static final MotifToggleButtonUI MOTIF_TOGGLE_BUTTON_UI = new MotifToggleButtonUI();
private static final ComponentUI UI = new MotifToggleButtonUI();
protected Color selectColor;
@ -56,7 +56,7 @@ public class MotifToggleButtonUI extends BasicToggleButtonUI
// Create PLAF
// ********************************
public static ComponentUI createUI(JComponent b) {
return MOTIF_TOGGLE_BUTTON_UI;
return UI;
}
// ********************************