comparison src/name/blackcap/exifwasher/Main.kt @ 6:aafc9c127c7b

Fix many bugs; get settings (apparently) working.
author David Barts <n5jrn@me.com>
date Thu, 09 Apr 2020 22:29:48 -0700
parents dc1f4359659d
children 965435b85a69
comparison
equal deleted inserted replaced
5:dc1f4359659d 6:aafc9c127c7b
16 var settingsDialog: SettingsDialog by SetOnce<SettingsDialog>() 16 var settingsDialog: SettingsDialog by SetOnce<SettingsDialog>()
17 17
18 fun initialize() { 18 fun initialize() {
19 UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); 19 UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
20 mainFrame = MainFrame() /* must be created first */ 20 mainFrame = MainFrame() /* must be created first */
21 mainFrame.jMenuBar = MyMenuBar()
22 setMacMenus() /* always safe to call; no-op if not a Mac */
21 settingsDialog = SettingsDialog() 23 settingsDialog = SettingsDialog()
22 mainFrame.setVisible(true) 24 mainFrame.setVisible(true)
23 } 25 }
24 } 26 }
25 27