#51 [PATCH]Fix the “Economy” stat panel

closed-accepted
nobody
None
5
2012-08-21
2012-04-29
Tao Nie
No

Problem: right now when you go back through history, the normal “stats” panel changes, but the economy panel does not.

To fix this, i added two line in the EconomyPanel.java. Bellow is the patch:

Index: src/games/strategy/triplea/ui/EconomyPanel.java

--- src/games/strategy/triplea/ui/EconomyPanel.java (revision 3582)
+++ src/games/strategy/triplea/ui/EconomyPanel.java (working copy)
@@ -32,6 +32,8 @@
super(data);
m_resourceModel = new ResourceTableModel();
final JTable table = new JTable(m_resourceModel);
+ this.removeAll();
+ initLayout();
}

I have tested it on my computer. It works very well.
This is my first patch. I hope the format is right.

Discussion

  • Chris Duncan

    Chris Duncan - 2012-08-21
    • status: open --> closed-accepted
     
  • Chris Duncan

    Chris Duncan - 2012-08-21

    accepted long ago.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks