View Javadoc

1   package com.explosion.utilities;
2   
3   /*
4    * =============================================================================
5    * 
6    * Copyright 2004 Stephen Cowx
7    * 
8    * Licensed under the Apache License, Version 2.0 (the "License"); you may not
9    * use this file except in compliance with the License. You may obtain a copy of
10   * the License at
11   * 
12   * http://www.apache.org/licenses/LICENSE-2.0
13   * 
14   * Unless required by applicable law or agreed to in writing, software
15   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
17   * License for the specific language governing permissions and limitations under
18   * the License.
19   * 
20   * =============================================================================
21   */
22  
23  import java.awt.Font;
24  
25  /***
26   * Author: Stephen Cowx Date: Nov 30, 2002 Time: 6:34:11 PM
27   */
28  public class GeneralConstants
29  {
30  	
31  	public static Font DEFAULT_WINDOW_FONT = new Font("Tahoma", Font.PLAIN, 13);
32  
33      public static Font DEFAULT_TEXTAREA_FONT = new Font("Tahoma", Font.PLAIN, 14);
34  	
35      static
36  	{
37      	//if not windows, use Monospaced
38      	if (System.getProperty("os.name").toLowerCase().indexOf("windows") < 0)
39      	{
40      		DEFAULT_WINDOW_FONT = new Font("Monospaced", Font.PLAIN, 13);
41              DEFAULT_TEXTAREA_FONT = new Font("Monospaced", Font.PLAIN, 13);
42      	}
43  	}
44  	
45      public static final String UNAVAILABLE_IMAGE = "com/explosion/utilities/resources/images/utils_cantfindimage_icon.gif";
46  
47      public static final String TRUE = "true";
48  
49      public static final String FALSE = "false";
50  
51      public static final String DEFAULT_FILE = "<Not defined>";
52      
53      public static final String LS = System.getProperty("line.separator");
54  }