Explorar o código

Bugfix SimulatorDialogPane and better ActDialog

Supermaniac101 %!s(int64=10) %!d(string=hai) anos
pai
achega
7959e7d7f7

+ 7 - 2
src/gui/panels/edit/dialogs/ActDialogPanel.java

@@ -216,15 +216,20 @@ public class ActDialogPanel extends JDialog{
         JPanel panel = new JPanel();
         panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
         panel.add(new JLabel("popularity"));
-
+        panel.setOpaque(false);
         JPanel buttons = new JPanel();
         buttons.setLayout(new BoxLayout(buttons, BoxLayout.X_AXIS));
 
         this.radio1 = new JRadioButton("1");
+        radio1.setBackground(Color.WHITE);
         this.radio2 = new JRadioButton("2");
+        radio2.setBackground(Color.WHITE);
         this.radio3 = new JRadioButton("3");
+        radio3.setBackground(Color.WHITE);
         this.radio4 = new JRadioButton("4");
+        radio4.setBackground(Color.WHITE);
         this.radio5 = new JRadioButton("5");
+        radio5.setBackground(Color.WHITE);
         
         switch(number){
             case 1:
@@ -278,7 +283,7 @@ public class ActDialogPanel extends JDialog{
         JPanel buttonPanel = new JPanel();
         buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.Y_AXIS));
         buttonPanel.setBorder(BorderFactory.createEmptyBorder(0, 10, 0, 0));
-        
+        buttonPanel.setOpaque(false);
         JLabel addArtists = new JLabel();
         addArtists.setIcon(new ImageIcon(getClass().getResource("/add.png")));
         addArtists.setForeground(new Color(51,51,51));

+ 1 - 1
src/gui/simulator/SimulatorDialogPane.java

@@ -93,7 +93,7 @@ public class SimulatorDialogPane extends JDialog{
 	        name.add(label);
 	        String[] terrainStrings = { "Beach", "Grass", "Urban"};
 	        this.terrain = new JComboBox<String>(terrainStrings);
-	        this.terrain.setSelectedIndex(1);
+	        this.terrain.setSelectedIndex(0);
 	        this.terrain.addActionListener(new ActionListener(){
 	            public void actionPerformed(ActionEvent e) {
 	                JComboBox<String> cb = (JComboBox<String>)e.getSource();