Mercurial > cgi-bin > hgweb.cgi > ImagePrep
comparison src/name/blackcap/imageprep/Menus.kt @ 17:d71523cde521 prestd
Should be private. Make it so.
author | David Barts <n5jrn@me.com> |
---|---|
date | Sun, 26 Jul 2020 15:17:27 -0700 |
parents | fad32eda667f |
children | 5fa5d15b4a7b |
comparison
equal
deleted
inserted
replaced
16:2bb46da74667 | 17:d71523cde521 |
---|---|
26 /** | 26 /** |
27 * Our menu bar. What we display depends somewhat on the system type, as | 27 * Our menu bar. What we display depends somewhat on the system type, as |
28 * the Mac gives us a gratuitous menu bar entry for handling some stuff. | 28 * the Mac gives us a gratuitous menu bar entry for handling some stuff. |
29 */ | 29 */ |
30 class MyMenuBar: JMenuBar() { | 30 class MyMenuBar: JMenuBar() { |
31 var currentInputDirectory = File(System.getProperty("user.dir")) | 31 private var currentInputDirectory = File(System.getProperty("user.dir")) |
32 var currentOutputDirectory = File(Settings.outputTo) | 32 private var currentOutputDirectory = File(Settings.outputTo) |
33 | 33 |
34 init { | 34 init { |
35 add(JMenu("File").apply { | 35 add(JMenu("File").apply { |
36 add(JMenuItem("Open & Scale…").apply { | 36 add(JMenuItem("Open & Scale…").apply { |
37 addActionListener(ActionListener { doOpen() }) | 37 addActionListener(ActionListener { doOpen() }) |