secondhalf.addActionListener(
new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
try
{
if (true)
{
if(!secondhalf.getText().equals("null"));
{
ini.set("main","secondhalf",floppydrive+secondhalf.getText());
ini.save(tempsettings);
secondhalf.setText("OK! " + secondhalf.getText());
}
}
else throw new IOException();
}
catch (IOException err)
{
System.out.println("A quantum anomaly caused true to be false. The end of the world is coming. Quitting.");
System.exit(0);
}
}
}
);
I do this for a list of about 500 actionlisteners in a row.
