ign="justify">
public class IntegerDiapason {
private int begin;
private int end;
public IntegerDiapason ( int begin, int end) {
super ();
this . begin=begin;
this . end=end;
}
/**
* @ return the begin
*/
public int getBegin () {
return begin;
}
/**
* @ return the end
*/
public int getEnd () {
return end;
}
}. java
package util;
public class ItemTemplate {
private IntegerDiapason weight;
private IntegerDiapason volume;
private IntegerDiapason rate1;
private IntegerDiapason rate2;
private IntegerDiapason rate3;
private IntegerDiapason rate4;
private IntegerDiapason rate5;
public ItemTemplate (IntegerDiapason weight, IntegerDiapason volume, rate1, IntegerDiapason rate2, IntegerDiapason rate3, IntegerDiapason rate4, IntegerDiapason rate5) {
super ();
this . weight=weight;
this . volume=volume;
this . rate1=rate1;
this . rate2=rate2;
this . rate3=rate3;
this . rate4=rate4;
this . rate5=rate5;
}
/**
* @ return the weight
*/
public IntegerDiapason getWeight () {
return weight;
}
/**
* @ return the volume
*/
public IntegerDiapason getVolume () {
return volume;
}
/**
* @ return the rate1
*/
public IntegerDiapason getRate1 () {
return rate1;
}
/**
* @ return the rate2
*/
public IntegerDiapason getRate2 () {
return rate2;
}
/**
* @ return the rate3
*/
public IntegerDiapason getRate3 () {
return rate3;
}
/**
* @ return the rate4
*/
public IntegerDiapason getRate4 () {
return rate4;
}
/**
* @ return the rate5
*/
public IntegerDiapason getRate5 () {
return rate5;
}
}
Пакет gui .. java
package gui;
import javax. swing. JFrame;
import javax. swing. JTabbedPane;
import util. ContainerTemplate;