package Common_old.UI.List; import Common_old.Current; import Common_old.UI.Themes.ThemeElement; import Common_old.UI.Themes.VisualiserFonts; import javax.swing.*; public class StyledList extends JList implements ThemeElement { public StyledList() { setFont(Current.getTheme().Fonts.get(VisualiserFonts.TreePlain)); applyTheme(); } @Override public void applyTheme() { setBackground(Current.getTheme().table_background); setForeground(Current.getTheme().foreground); } }