Since these keys come back in pretty random order, let's sort them alphabetically.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5452 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -26,6 +26,8 @@ import javax.swing.JPanel;
|
||||
import javax.swing.JScrollPane;
|
||||
import javax.swing.JTabbedPane;
|
||||
|
||||
import com.samskivert.util.QuickSort;
|
||||
|
||||
import com.samskivert.swing.VGroupLayout;
|
||||
|
||||
import com.threerings.presents.util.PresentsContext;
|
||||
@@ -91,15 +93,14 @@ public class ConfigEditorPanel extends JPanel
|
||||
}
|
||||
|
||||
/**
|
||||
* Called in response to our getConfigInfo server-side service
|
||||
* request.
|
||||
* Called in response to our getConfigInfo server-side service request.
|
||||
*/
|
||||
public void gotConfigInfo (String[] keys, int[] oids)
|
||||
{
|
||||
QuickSort.sort(keys);
|
||||
// create object editor panels for each of the categories
|
||||
for (int ii = 0; ii < keys.length; ii++) {
|
||||
ObjectEditorPanel panel =
|
||||
new ObjectEditorPanel(_ctx, keys[ii], oids[ii]);
|
||||
ObjectEditorPanel panel = new ObjectEditorPanel(_ctx, keys[ii], oids[ii]);
|
||||
JScrollPane scrolly = new JScrollPane(panel);
|
||||
_oeditors.addTab(keys[ii], scrolly);
|
||||
if (keys[ii].equals(_defaultPane)) {
|
||||
|
||||
Reference in New Issue
Block a user