Thursday, October 9, 2008

Java Swing - Set default window close operation

setDefaultCloseOperation(EXIT_ON_CLOSE)

Wednesday, October 8, 2008

Eclipse - Tabs to Spaces only

  • Window menu → Preferences...
  • Java → Code Style → Formatter → New... button
    • Enter any name → OK
  • Indentation tab → Under General settings, set Tab policy to Spaces only