comparison src/name/blackcap/exifwasher/Main.kt @ 50:fb407182ba76

Add help menu item, UNTESTED.
author David Barts <davidb@stashtea.com>
date Thu, 07 May 2020 08:29:58 -0700
parents ee580450d45a
children
comparison
equal deleted inserted replaced
48:35fb8de77c7d 50:fb407182ba76
12 val MYNAME = "JpegWasher" 12 val MYNAME = "JpegWasher"
13 13
14 /* global UI objects */ 14 /* global UI objects */
15 var mainFrame: MainFrame by setOnce() 15 var mainFrame: MainFrame by setOnce()
16 var settingsDialog: SettingsDialog by setOnce() 16 var settingsDialog: SettingsDialog by setOnce()
17 var helpDialog: HelpDialog by setOnce()
17 18
18 fun initialize() { 19 fun initialize() {
19 UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); 20 UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
20 mainFrame = MainFrame() /* must be created first */ 21 mainFrame = MainFrame() /* must be created first */
21 mainFrame.jMenuBar = MyMenuBar() 22 mainFrame.jMenuBar = MyMenuBar()
22 setMacMenus() /* always safe to call; no-op if not a Mac */ 23 setMacMenus() /* always safe to call; no-op if not a Mac */
23 settingsDialog = SettingsDialog() 24 settingsDialog = SettingsDialog()
25 helpDialog = HelpDialog()
24 mainFrame.setVisible(true) 26 mainFrame.setVisible(true)
25 } 27 }
26 } 28 }
27 29
28 fun main(args: Array<String>) { 30 fun main(args: Array<String>) {