mainWindow.resize(298, 100);
mainWindow.setSize(298, 100);
    private void showInfo(int i)    {        if (i < 0) return;                if (cType != entries[i].getType())        {            cType = entries[i].getType();       		tf.setVisible(false); listBox.setVisible(false); textBox.setVisible(false);    		colorBox.setVisible(false); actionBox.setVisible(false);            switch(cType)			{	        	case 1:	           		listBox.setVisible(true);	        		listBox.removeAllItems();	        		for (int j = 0; j< musicNames.length; j++)	        		{	        			listBox.addItem(musicNames[j]);	        		}	                mainWindow.resize(298, 100);	        		break;	        	case 2:	           		listBox.setVisible(true);	        		listBox.removeAllItems();	        		for (int j = 0; j< soundEffects.length; j++)	        		{	        			listBox.addItem(soundEffects[j]);	        		}//	        		listBox.removeItemAt(0);	                mainWindow.resize(400, 100);	        		break;	        	case 3:	        		textBox.setVisible(true);	        		mainWindow.resize(400,100);	        		break;	        	case 4: case 6:	        		tf.setVisible(true); 	        		mainWindow.resize(400, 100);	        		break;	        	case 5:	        		actionBox.setVisible(true);	                mainWindow.resize(400, 100);	        		break;	        	case 7:	        		colorBox.setVisible(true);	                mainWindow.resize(430, 520);	        		break;			}        }        mainWindow.repaint();        if (cType == 7) //color        	colorBox.setColor(entries[i].getColor());        else if (cType == 4 || cType == 6) //number        	tf.setText(new Integer(entries[i].getData()).toString());        else if (cType == 5)//action        	actionBox.setSelectedIndex(entries[i].getData());        else if (entries[i].getType() == 3)        	textBox.setOffset(entries[i].getData());        else        	listBox.setSelectedIndex(entries[i].getData());    }