Scala - Passing an anonymous function to SwingUtilities.invokeLater Code Example

The code for Passing an anonymous function to SwingUtilities.invokeLater

SwingUtilities.invokeLater(() => {
    // your gui-updating code here, such as:
    for (c <- newsControllers) c.updateContent()
})
Code by IncludeHelp, on August 10, 2022 22:19
Reference: alvinalexander.com

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.