MCPcopy Index your code
hub / github.com/benfry/processing4 / checkLookAndFeel

Method checkLookAndFeel

core/src/processing/awt/ShimAWT.java:917–928  ·  view source on GitHub ↗

Initialize the Look & Feel if it hasn't been already. Call this before using any Swing-related code in PApplet methods.

()

Source from the content-addressed store, hash-verified

915 * Call this before using any Swing-related code in PApplet methods.
916 */
917 static private void checkLookAndFeel() {
918 if (!lookAndFeelCheck) {
919 if (PApplet.platform == PConstants.WINDOWS) {
920 // Windows is defaulting to Metal or something else awful.
921 // Which also is not scaled properly with HiDPI interfaces.
922 try {
923 UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
924 } catch (Exception ignored) { }
925 }
926 lookAndFeelCheck = true;
927 }
928 }
929
930
931 // TODO maybe call this with reflection from inside PApplet?

Callers 1

selectFolderImplMethod · 0.95

Calls 1

setLookAndFeelMethod · 0.45

Tested by

no test coverage detected