Changeset 38795 for main/trunk/greenstone3
- Timestamp:
- 2024-02-26T17:44:36+13:00 (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/applet/phind/JPhind.java
r38782 r38795 31 31 /********************************************************************* 32 32 33 To run this applet as an application, for which this class has a main(), run as:34 35 java -cp ./web/WEB-INF/lib/gsdl3.jar:./web/WEB-INF/lib/gutil.jar:./web/applet/phind.jar:./web/ WEB-INF/lib/log4j-1.2.8.jar:./web/WEB-INF/classes org.greenstone.applet.phind.JPhind "http://localhost:8383/greenstone3/library" --collection tudor --classifier 1 --phindcgi "?a=a&rt=r&s=PhindApplet&o=xml&ro=1" --library "gs2-library" --backdrop "interfaces/default/images/phindbg1.jpg"33 To run this applet as an application, for which purpose this class has a main() method, run as: 34 35 java -cp ./web/WEB-INF/lib/gsdl3.jar:./web/WEB-INF/lib/gutil.jar:./web/applet/phind.jar:./web/applet/xercesImpl.jar:./web/applet/xml-apis.jar:./web/WEB-INF/lib/log4j-1.2.8.jar:./web/WEB-INF/classes org.greenstone.applet.phind.JPhind "http://localhost:8383/greenstone3/library" --collection tudor --classifier 1 --phindcgi "?a=a&rt=r&s=PhindApplet&o=xml&ro=1" --library "gs2-library" --backdrop "interfaces/default/images/phindbg1.jpg" 36 36 37 37 To print very basic usage, run this as an application so: … … 128 128 // set only if JPhind object is run as an application 129 129 URL docBaseURL = null; 130 J TextField statusField= null;130 JLabel statusBar = null; 131 131 Map<String,String> appParams; 132 132 … … 311 311 // status bar that applet has, but we want one also if we run JPhind as application 312 312 if(!isRunAsApplet) { 313 JPanel statusBar = new JPanel(); 314 this.statusField = new JTextField(); 315 statusBar.add(statusField); 313 statusBar = new JLabel(); 316 314 this.add(statusBar, BorderLayout.SOUTH); 317 315 } … … 596 594 public void showStatus(String msg) { 597 595 if(!isRunAsApplet) { 598 this.status Field.setText(msg);596 this.statusBar.setText(msg); 599 597 } else { 600 598 super.showStatus(msg); … … 712 710 // we assume this is relative to the greenstone library 713 711 phindcgi_address = parameterValue("library")+parameterValue("phindcgi"); 712 phindcgi_address = phindcgi_address.replace("&", "&"); 714 713 phindcgi_address = tidy_URL(phindcgi_address, true); 715 714 System.out.println("Phind phindcgi: " + phindcgi_address);
Note:
See TracChangeset
for help on using the changeset viewer.