|
12 | 12 | import java.io.File;
|
13 | 13 | import java.io.IOException;
|
14 | 14 | import java.util.HashMap;
|
| 15 | +import java.util.LinkedHashMap; |
15 | 16 | import java.util.Map;
|
16 | 17 |
|
17 | 18 | import javax.imageio.ImageIO;
|
@@ -48,7 +49,7 @@ public class Main extends JFrame{
|
48 | 49 | JButton projectPathButton, createButton; //Buttons to open the path chooser and to start drawables conversion
|
49 | 50 | JLabel sourceDensityLabel, sourceSizeLabel; //labels for source density and source size fields
|
50 | 51 | JComboBox<String> sourceDensityComboBox; //list of available densities
|
51 |
| - HashMap<String, JCheckBox> densitiesCheckBox; //HashMap that stores the available density checkboxes |
| 52 | + LinkedHashMap<String, JCheckBox> densitiesCheckBox; //HashMap that stores the available density checkboxes |
52 | 53 | JPanel mainPanel, densitiesPanel; //panel containing checkboxes
|
53 | 54 | //JProgressBar progressBar;
|
54 | 55 |
|
@@ -82,7 +83,7 @@ private void initUI()
|
82 | 83 | sourceSizeLabel = new JLabel("Source Size"); //Label for source image's size
|
83 | 84 | sourceSizeTextField = new JTextField(); //Field for source image's size
|
84 | 85 | sourceSizeTextField.setEditable(false);
|
85 |
| - densitiesCheckBox = new HashMap<String, JCheckBox>(); //checkbox Map with densities |
| 86 | + densitiesCheckBox = new LinkedHashMap<String, JCheckBox>(); //checkbox Map with densities |
86 | 87 | createButton = new JButton("make"); //button to begin drawable conversion
|
87 | 88 | densitiesPanel = new JPanel();
|
88 | 89 | //initialize checkboxes
|
|
0 commit comments