This repository has been archived by the owner on Mar 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jacob van Mourik
committed
Jan 4, 2017
1 parent
44e7f69
commit 73f57e1
Showing
5 changed files
with
57 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.jvms.i18neditor; | ||
|
||
import javax.swing.SwingUtilities; | ||
import javax.swing.UIManager; | ||
|
||
import org.apache.commons.lang3.SystemUtils; | ||
|
||
public class Main { | ||
|
||
public static void main(String[] args) { | ||
if (SystemUtils.IS_OS_MAC) { | ||
System.setProperty("apple.laf.useScreenMenuBar", "true"); | ||
} | ||
// Only use native look an feel when not running Linux, Linux might cause visual issues | ||
if (!SystemUtils.IS_OS_LINUX) { | ||
try { | ||
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); | ||
} catch (Exception e) { | ||
// | ||
} | ||
} | ||
SwingUtilities.invokeLater(() -> { | ||
new Editor().launch(); | ||
}); | ||
} | ||
} |
Binary file not shown.