|
|
|
@ -19,21 +19,21 @@ import com.evolute.utils.ui.*;
|
|
|
|
public class DataChooserWindow extends CustomJDialog
|
|
|
|
public class DataChooserWindow extends CustomJDialog
|
|
|
|
{
|
|
|
|
{
|
|
|
|
private final String labels[];
|
|
|
|
private final String labels[];
|
|
|
|
private final String items[];
|
|
|
|
private final Object items[];
|
|
|
|
private final String empty[];
|
|
|
|
private final Object empty[];
|
|
|
|
private final String allItems[][];
|
|
|
|
private final Object allItems[][];
|
|
|
|
private final JComboBox combos[];
|
|
|
|
private final JComboBox combos[];
|
|
|
|
private final int preselected[];
|
|
|
|
private final int preselected[];
|
|
|
|
|
|
|
|
|
|
|
|
private boolean canceled = false;
|
|
|
|
private boolean canceled = false;
|
|
|
|
|
|
|
|
|
|
|
|
/** Creates a new instance of DataChooserWindow */
|
|
|
|
/** Creates a new instance of DataChooserWindow */
|
|
|
|
public DataChooserWindow( JFrame modalFrame, String names[], String data[][] )
|
|
|
|
public DataChooserWindow( JFrame modalFrame, String names[], Object data[][] )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this( modalFrame, names, data, null );
|
|
|
|
this( modalFrame, names, data, null );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public DataChooserWindow( JFrame modalFrame, String names[], String data[][], int selected[] )
|
|
|
|
public DataChooserWindow( JFrame modalFrame, String names[], Object data[][], int selected[] )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
super( modalFrame, true );
|
|
|
|
super( modalFrame, true );
|
|
|
|
labels = names;
|
|
|
|
labels = names;
|
|
|
|
@ -161,7 +161,8 @@ public class DataChooserWindow extends CustomJDialog
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Hashtable hash[] = new Hashtable[ allItems[ 0 ].length ];
|
|
|
|
Hashtable hash[] = new Hashtable[ allItems.length ];
|
|
|
|
|
|
|
|
System.out.println( "Hash[] size: " + hash.length );
|
|
|
|
for( int j = 0; j < hash.length; ++j )
|
|
|
|
for( int j = 0; j < hash.length; ++j )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
hash[ j ] = new Hashtable();
|
|
|
|
hash[ j ] = new Hashtable();
|
|
|
|
|