You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the SwingX JXTipOfTheDay, the LAF does not properly apply.
// Create Tip of the day
TipOfTheDayModel model = new TipOfTheDayModel() {
private final List<Tip> tipList = tips;
@Override
public int getTipCount() {
return tipList.size();
}
@Override
public Tip getTipAt(int index) {
return tipList.get(index);
}
};
JXTipOfTheDay tipDialog = new JXTipOfTheDay(model);
// Show it in a dialog
JXTipOfTheDay.ShowOnStartupChoice choice = new JXTipOfTheDay.ShowOnStartupChoice() {
@Override
public boolean isShowingOnStartup() {
return FobManager.getConfig().isUiShowTipOfTheDay();
}
@Override
public void setShowingOnStartup(boolean showingOnStartup) {
FobManager.getConfig().setUiShowTipOfTheDay(showingOnStartup);
FobManager.getConfig().save();
}
};
tipDialog.showDialog(this.getMainWindow(), choice);
private void setLookAndFeel() {
try {
// Set the LAF to the "One Dark" IntelliJ theme
UIManager.setLookAndFeel(new FlatOneDarkIJTheme());
} catch (UnsupportedLookAndFeelException ex) {
log.error("Failed to set Look and Feel", ex);
}
}
The text was updated successfully, but these errors were encountered:
When using the SwingX JXTipOfTheDay, the LAF does not properly apply.
The text was updated successfully, but these errors were encountered: