Add 'src/jexer/' from commit 'cf01c92f5809a0732409e280fb0f32f27393618d'
[fanfix.git] / src / jexer / demos / Demo1.java
index 522baa14b232134be70c43eb794c9eb6083b1221..97088d215fcb7c228f6a065c1cb86cfec188f9b4 100644 (file)
@@ -3,7 +3,7 @@
  *
  * The MIT License (MIT)
  *
- * Copyright (C) 2016 Kevin Lamonte
+ * Copyright (C) 2019 Kevin Lamonte
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
@@ -35,6 +35,7 @@ import jexer.TApplication;
  * capabilities.
  */
 public class Demo1 {
+
     /**
      * Main entry point.
      *
@@ -48,6 +49,9 @@ public class Demo1 {
             if (System.getProperty("os.name").startsWith("Windows")) {
                 backendType = TApplication.BackendType.SWING;
             }
+            if (System.getProperty("os.name").startsWith("Mac")) {
+                backendType = TApplication.BackendType.SWING;
+            }
             if (System.getProperty("jexer.Swing") != null) {
                 if (System.getProperty("jexer.Swing", "false").equals("true")) {
                     backendType = TApplication.BackendType.SWING;