Demo: new window icon

This commit is contained in:
Karl Tauber
2020-06-28 23:59:28 +02:00
parent 8d80176a79
commit df7f693cf4
5 changed files with 115 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ import com.formdev.flatlaf.FlatLaf;
import com.formdev.flatlaf.demo.extras.*;
import com.formdev.flatlaf.demo.intellijthemes.*;
import com.formdev.flatlaf.extras.FlatSVGIcon;
import com.formdev.flatlaf.extras.SVGUtils;
import net.miginfocom.swing.*;
/**
@@ -49,6 +50,8 @@ class DemoFrame
updateFontMenuItems();
controlBar.initialize( this, tabbedPane );
setIconImages( SVGUtils.createWindowIconImages( "/com/formdev/flatlaf/demo/FlatLaf.svg" ) );
if( tabIndex >= 0 && tabIndex < tabbedPane.getTabCount() && tabIndex != tabbedPane.getSelectedIndex() )
tabbedPane.setSelectedIndex( tabIndex );
}