• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Do I get bonus points for this code?

EyeMWing

Banned
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.
 
Back
Top