r;
}
private void refreshBoxes () {
boolean state =! byUtilityBox. isSelected () ;. setEnabled (state) ;. setEnabled (state);
}
}. java
package gui;
import java. awtponent;
import java. awt. GridBagConstraints;
import java. awt. GridBagLayout;
import java. awt. Insets;
import java. awt. event. ActionEvent;
import java. awt. event. ActionListener;
import java. awt. event. ItemEvent;
import java. awt. event. ItemListener;
import java. text. DecimalFormat;
import java. text. DecimalFormatSymbols;
import java. util. ArrayList;
import java. util. HashSet;
import java. util. Hashtable;
import java. util. List;
import java. util. Set;
import java. util. SortedMap;
import javax. swingboBoxModel;
import javax. swing. ImageIcon;
import javax. swing. JButton;
import javax. swing. JComboBox;
import javax. swing. JLabel;
import javax. swing. JPanel;
import javax. swing. JScrollPane;
import javax. swing. JSplitPane;
import javax. swing. JTextPane;
import javax. swing. JTree;
import javax. swing. event. ListDataListener;
import javax. swing. tree. DefaultMutableTreeNode;
import javax. swing. tree. DefaultTreeCellRenderer;
import javax. swing. tree. DefaultTreeModel;
import javax. swing. tree. TreeCellRenderer;
import javax. swing. tree. TreePath;
import core. Boss;
import core. Container;
import core. Item;
import core. Packer;
import core. Store;
import core. Packer. ALGORYTHM;
class ResultViewer {
private class Resume {
private String algNameReport;
private String effectivityReport;
private String restReport;
private String packedReport;
private DecimalFormat format;
public Resume () {f= new DecimalFormatSymbols () ;. setDecimalSeparator ( laquo ;. );= new DecimalFormat ( #, ## 0.00 raquo ;, f);
}
/**
* @ param algNameReport the algNameReport to set
*/
public void setAlgNameReport (String algNameReport) {
this . algNameReport= lt; h2 gt; lt; font color= RED gt; Алгоритм: + AlgNameReport + lt;/text gt; lt;/h2 gt; lt; p gt; raquo ;;
}
/**
* @ param effectivityReport the effectivityReport to set
*/
public void setEffectivityReport (SortedMap lt; Container, List lt; Item gt ; gt; map) {header= lt; h3 gt; lt; font color= RED gt; Ефективність алгоритму lt;/font gt; lt;/h3 gt; raquo ;;
double occupiedSpacePercent=0;
double loadPercent=0;
double volumeAccumulator=0;
double weigh...