Skip to content

Commit 661543e

Browse files
committed
densitiesCheckBox is now a LinkedHashMap. Closes basteez#6
1 parent 83a2237 commit 661543e

File tree

1 file changed

+3
-2
lines changed
  • src/com/tizianobasile/androiddrawablefactory/gui

1 file changed

+3
-2
lines changed

src/com/tizianobasile/androiddrawablefactory/gui/Main.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import java.io.File;
1313
import java.io.IOException;
1414
import java.util.HashMap;
15+
import java.util.LinkedHashMap;
1516
import java.util.Map;
1617

1718
import javax.imageio.ImageIO;
@@ -48,7 +49,7 @@ public class Main extends JFrame{
4849
JButton projectPathButton, createButton; //Buttons to open the path chooser and to start drawables conversion
4950
JLabel sourceDensityLabel, sourceSizeLabel; //labels for source density and source size fields
5051
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
5253
JPanel mainPanel, densitiesPanel; //panel containing checkboxes
5354
//JProgressBar progressBar;
5455

@@ -82,7 +83,7 @@ private void initUI()
8283
sourceSizeLabel = new JLabel("Source Size"); //Label for source image's size
8384
sourceSizeTextField = new JTextField(); //Field for source image's size
8485
sourceSizeTextField.setEditable(false);
85-
densitiesCheckBox = new HashMap<String, JCheckBox>(); //checkbox Map with densities
86+
densitiesCheckBox = new LinkedHashMap<String, JCheckBox>(); //checkbox Map with densities
8687
createButton = new JButton("make"); //button to begin drawable conversion
8788
densitiesPanel = new JPanel();
8889
//initialize checkboxes

0 commit comments

Comments
 (0)