TableSorter.java use?
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
2 posts
• Page 1 of 1
TableSorter.java use?
by slapshot5 » 05 Nov 2010, 14:23
What is TableSorter.java used for? Anything? It's constructor calls a function that reads from cards.txt, which can't be helping anything. (It for sure gets called when opening the Deck Editor.)
Does this need to be updated to use cardsfolder, or can this be nuked, and references deleted/updated?
-slapshot5
Does this need to be updated to use cardsfolder, or can this be nuked, and references deleted/updated?
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: TableSorter.java use?
by mtgrares » 05 Nov 2010, 17:50
TableSorter is used to sort the cards in the Deck Editor. It sorts by card name, etc...
TableModel.sort() creates TableSorter and the code looks ok, although I can't be 100% sure. If you have problems look at Gui_DeckEditor since it calls TableModel.
The two lines in the TableSorter constructor that reads cards.txt looks like it could be removed.
TableModel.sort() creates TableSorter and the code looks ok, although I can't be 100% sure. If you have problems look at Gui_DeckEditor since it calls TableModel.
The two lines in the TableSorter constructor that reads cards.txt looks like it could be removed.
- Code: Select all
if(cardsTxt == null)
cardsTxt = readCardsTxt();
- mtgrares
- DEVELOPER
- Posts: 1352
- Joined: 08 Sep 2008, 22:10
- Has thanked: 3 times
- Been thanked: 12 times
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 31 guests