--- old/src/demo/share/jfc/Font2DTest/RangeMenu.java 2020-01-22 16:03:18.000000000 -0800 +++ new/src/demo/share/jfc/Font2DTest/RangeMenu.java 2020-01-22 16:03:18.000000000 -0800 @@ -62,7 +62,7 @@ /// Custom made choice menu that holds data for unicode range -public final class RangeMenu extends JComboBox implements ActionListener { +public final class RangeMenu extends JComboBox implements ActionListener { private static final int[][] UNICODE_RANGES = getUnicodeRanges(); private static final String[] UNICODE_RANGE_NAMES = getUnicodeRangeNames(); @@ -181,12 +181,12 @@ Object source = e.getSource(); if ( source instanceof JComboBox ) { - String rangeName = (String)((JComboBox)source).getSelectedItem(); + String rangeName = (String)((JComboBox)source).getSelectedItem(); if ( rangeName.equals("Custom...") ) { useCustomRange = true; customRangeDialog.setLocationRelativeTo(parent); - customRangeDialog.show(); + customRangeDialog.setVisible(true); } else { useCustomRange = false; @@ -195,7 +195,7 @@ } else if ( source instanceof JButton ) { /// Since it is only "OK" button that sends any action here... - customRangeDialog.hide(); + customRangeDialog.setVisible(false); } }