MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / main

Method main

Astronomy_/src/main/java/astroj/JSkyCalc.java:4594–4617  ·  view source on GitHub ↗
(String [] args)

Source from the content-addressed store, hash-verified

4592
4593public class JSkyCalc {
4594 public static void main(String [] args) {
4595 // Locale locale = Locale.getDefault(); ... fixes the problems with German locale,
4596 // Locale.setDefault(Locale.ENGLISH); ... but, breaks the webstart!!
4597
4598 try {
4599 // Set cross-platform Java L&F (also called "Metal")
4600 UIManager.setLookAndFeel(
4601 UIManager.getCrossPlatformLookAndFeelClassName());
4602 }
4603 catch (UnsupportedLookAndFeelException e) {
4604 System.out.printf("UnsupportedLookAndFeelException ... \n");
4605 }
4606 catch (ClassNotFoundException e) {
4607 System.out.printf("Class not found while trying to set look-and-feel ...\n");
4608 }
4609 catch (InstantiationException e) {
4610 System.out.printf("Instantiation exception while trying to set look-and-feel ...\n");
4611 }
4612 catch (IllegalAccessException e) {
4613 System.out.printf("Illegal access exception while trying to set look-and-feel ...\n");
4614 }
4615
4616 JSkyCalcWindow MainWin = new JSkyCalcWindow() ;
4617 }
4618}
4619
4620//class JSkyCalcWindow extends JPanel implements MouseListener {

Callers

nothing calls this directly

Calls 1

setLookAndFeelMethod · 0.45

Tested by

no test coverage detected