Skip to content

Commit 686e542

Browse files
committed
JSTreeUI using unicode 25bc,25b6 instead of 2bc8,2bc6, which are not
supported on (some?) macs
1 parent a5e9583 commit 686e542

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sources/net.sf.j2s.java.core/src/swingjs/plaf/JSTreeUI.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -827,12 +827,12 @@ private void setIcons() {
827827
Icon iexp = (Icon) UIManager.get("Tree.expandedIcon");
828828
Icon icol = (Icon) UIManager.get("Tree.collapsedIcon");
829829
if (iexp == null) {
830-
label = new JLabel("\u2BC8");
831-
label.setFont(new Font(Font.DIALOG, Font.PLAIN, 16));
832-
iexp = new TextIcon(label, 0, 2);
833-
label = new JLabel("\u2BC6");
834-
label.setFont(new Font(Font.DIALOG, Font.PLAIN, 16));
835-
icol = new TextIcon(label, 0, 0);
830+
label = new JLabel("\u25bc");// some macs do not have 2BC8");
831+
label.setFont(new Font(Font.DIALOG, Font.PLAIN, 12));
832+
iexp = new TextIcon(label, -2, 2);
833+
label = new JLabel("\u25b6");// some macs do not have 2BC6");
834+
label.setFont(new Font(Font.DIALOG, Font.PLAIN, 12));
835+
icol = new TextIcon(label, 0, 2);
836836
UIManager.getDefaults().put("Tree.leftChildIndent", 10);
837837
UIManager.getDefaults().put("Tree.rightChildIndent", 5);
838838
UIManager.getDefaults().put("Tree.paintLines", false);

0 commit comments

Comments
 (0)