|
@@ -30,6 +30,7 @@ public class FlexiblePane extends JScrollPane {
|
|
float gridCons = 0;
|
|
float gridCons = 0;
|
|
int counter = 1;
|
|
int counter = 1;
|
|
for(SubNet sn: controller.getSimManager().getSubNets()){
|
|
for(SubNet sn: controller.getSimManager().getSubNets()){
|
|
|
|
+ int index = flexPanel.getComponentCount();
|
|
float subProd = 0;
|
|
float subProd = 0;
|
|
float subCons = 0;
|
|
float subCons = 0;
|
|
for(HolonObject hl: sn.getObjects()){
|
|
for(HolonObject hl: sn.getObjects()){
|
|
@@ -40,7 +41,7 @@ public class FlexiblePane extends JScrollPane {
|
|
}
|
|
}
|
|
gridProd += subProd;
|
|
gridProd += subProd;
|
|
gridCons += subCons;
|
|
gridCons += subCons;
|
|
- flexPanel.add(new FlexibleData("Subnet "+ counter, subProd, subCons));
|
|
|
|
|
|
+ flexPanel.add(new FlexibleData("Subnet "+ counter, subProd, subCons), index);
|
|
counter++;
|
|
counter++;
|
|
}
|
|
}
|
|
if (flexPanel.getComponent(0) instanceof FlexibleData){
|
|
if (flexPanel.getComponent(0) instanceof FlexibleData){
|