mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 09:12:09 +10:00
go back to java 6 compatible code
This commit is contained in:
@@ -79,7 +79,7 @@ public class StatusBar extends JPanel implements IPlugIn {
|
|||||||
public static String UPDATE_URL = "http://www.diy-fever.com/update.xml";
|
public static String UPDATE_URL = "http://www.diy-fever.com/update.xml";
|
||||||
private static final Format sizeFormat = new DecimalFormat("0.##");
|
private static final Format sizeFormat = new DecimalFormat("0.##");
|
||||||
|
|
||||||
private JComboBox<Double> zoomBox;
|
private JComboBox zoomBox;
|
||||||
private UpdateLabel updateLabel;
|
private UpdateLabel updateLabel;
|
||||||
private JLabel announcementLabel;
|
private JLabel announcementLabel;
|
||||||
private MemoryBar memoryPanel;
|
private MemoryBar memoryPanel;
|
||||||
@@ -151,9 +151,9 @@ public class StatusBar extends JPanel implements IPlugIn {
|
|||||||
}, false);
|
}, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private JComboBox<Double> getZoomBox() {
|
private JComboBox getZoomBox() {
|
||||||
if (zoomBox == null) {
|
if (zoomBox == null) {
|
||||||
zoomBox = new JComboBox<Double>(plugInPort.getAvailableZoomLevels());
|
zoomBox = new JComboBox(plugInPort.getAvailableZoomLevels());
|
||||||
zoomBox.setSelectedItem(plugInPort.getZoomLevel());
|
zoomBox.setSelectedItem(plugInPort.getZoomLevel());
|
||||||
zoomBox.setFocusable(false);
|
zoomBox.setFocusable(false);
|
||||||
zoomBox.setRenderer(new PercentageListCellRenderer());
|
zoomBox.setRenderer(new PercentageListCellRenderer());
|
||||||
|
|||||||
Reference in New Issue
Block a user