File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
enigma-swing/src/main/java/org/quiltmc/enigma/gui Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 5555import javax .swing .JScrollBar ;
5656import javax .swing .JSplitPane ;
5757import javax .swing .SwingUtilities ;
58+ import javax .swing .UIManager ;
5859import javax .swing .WindowConstants ;
5960import java .awt .BorderLayout ;
6061import java .awt .Container ;
@@ -162,6 +163,9 @@ private void setupDockers() {
162163 }
163164
164165 private void setupUi () {
166+ // fix folder icons being automatically hidden: https://github.com/JFormDesigner/FlatLaf/pull/609
167+ UIManager .put ("Tree.showDefaultIcons" , true );
168+
165169 this .setupDockers ();
166170
167171 this .jarFileChooser .setFileSelectionMode (JFileChooser .FILES_ONLY );
Original file line number Diff line number Diff line change 1515import javax .swing .Icon ;
1616import javax .swing .JLabel ;
1717import javax .swing .JTree ;
18- import javax .swing .UIManager ;
1918import javax .swing .tree .DefaultTreeCellRenderer ;
2019import java .awt .Component ;
2120import java .util .function .Function ;
@@ -27,9 +26,6 @@ public class ClassTreeCellRenderer extends DefaultTreeCellRenderer {
2726 public ClassTreeCellRenderer (Gui gui , ClassSelector selector ) {
2827 this .controller = gui .getController ();
2928 this .selector = selector ;
30-
31- // fix folder icons being automatically hidden: https://github.com/JFormDesigner/FlatLaf/pull/609
32- UIManager .put ("Tree.showDefaultIcons" , true );
3329 }
3430
3531 @ Override
You can’t perform that action at this time.
0 commit comments