Changeset 5036
- Timestamp:
- 01/20/08 13:42:31 (5 years ago)
- Location:
- lang/java/lib2chj/trunk/lib2chj/src/main
- Files:
-
- 1 added
- 1 modified
-
java/lib2chj/SimpleGUI.java (modified) (2 diffs)
-
resources/lib2chj/velocity.properties (added)
Legend:
- Unmodified
- Added
- Removed
-
lang/java/lib2chj/trunk/lib2chj/src/main/java/lib2chj/SimpleGUI.java
r4917 r5036 25 25 import java.awt.event.MouseEvent; 26 26 import java.awt.event.MouseListener; 27 import java.io.File;28 27 import java.io.IOException; 29 28 import java.io.StringWriter; … … 81 80 try { 82 81 Properties p = new Properties(); 83 p.load( this.getClass().getClassLoader().getResourceAsStream( "org/apache/velocity/runtime/defaults/velocity.properties" ) ); 84 p.setProperty( "file.resource.loader.path", "., " + 85 new File(this.getClass().getClassLoader().getResource( "lib2chj/thread_layout.vm" ).getPath()).getParent() ); 82 p.load( this.getClass().getClassLoader().getResourceAsStream( "lib2chj/velocity.properties" ) ); 86 83 Velocity.init( p ); 87 template = Velocity.getTemplate( " thread_layout.vm", "SJIS" );84 template = Velocity.getTemplate( "lib2chj/thread_layout.vm", "SJIS" ); 88 85 context.put( "util", new ParseUtil() ); 89 86 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)