This sets the OS Start Menu. Each time this is run, it overwrites the last input. @param function This is the Runnable that is executed to close the startmenu.
(Runnable function)
| 168 | * @param function This is the Runnable that is executed to close the startmenu. |
| 169 | */ |
| 170 | public static void setStartMenuClose(Runnable function) { |
| 171 | Desktop.startMenuClose = function; |
| 172 | } |
| 173 | |
| 174 | public static void addNewApp(String appName, Runnable function) { |
| 175 | Apps.appButtons.putIfAbsent(appName, function); |