go back to java 6 compatible code

This commit is contained in:
Branislav Stojkovic
2018-12-16 11:02:20 +01:00
parent 745901131e
commit 7575ae29d9
@@ -79,7 +79,7 @@ public class StatusBar extends JPanel implements IPlugIn {
public static String UPDATE_URL = "http://www.diy-fever.com/update.xml";
private static final Format sizeFormat = new DecimalFormat("0.##");
private JComboBox<Double> zoomBox;
private JComboBox zoomBox;
private UpdateLabel updateLabel;
private JLabel announcementLabel;
private MemoryBar memoryPanel;
@@ -151,9 +151,9 @@ public class StatusBar extends JPanel implements IPlugIn {
}, false);
}
private JComboBox<Double> getZoomBox() {
private JComboBox getZoomBox() {
if (zoomBox == null) {
zoomBox = new JComboBox<Double>(plugInPort.getAvailableZoomLevels());
zoomBox = new JComboBox(plugInPort.getAvailableZoomLevels());
zoomBox.setSelectedItem(plugInPort.getZoomLevel());
zoomBox.setFocusable(false);
zoomBox.setRenderer(new PercentageListCellRenderer());