1 package thinlet.drafts; 2 3 import java.awt.*; 4 5 8 public class Utilities { 9 10 private static Utilities utilities; 11 12 15 public static Utilities getUtilities() { 16 if (utilities == null) { 17 try { 18 Class.forName("java.awt.GraphicsEnvironment"); 19 utilities = (Utilities) Class.forName("thinlet.drafts.Utilities2").newInstance(); 20 } catch (Exception exc) { 21 utilities = new Utilities(); 22 } 23 } 24 return utilities; 25 } 26 27 30 public String [] getFontList() { 31 return Toolkit.getDefaultToolkit().getFontList(); 32 } 33 34 37 public Object getDesktopProperty(String key) { 38 return null; 39 } 40 41 44 public void initGraphics(Graphics g) { 45 } 46 } | Popular Tags |