You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bsf-dev@jakarta.apache.org by ro...@apache.org on 2006/09/16 18:16:02 UTC
svn commit: r446891 - /jakarta/bsf/trunk/src/org/apache/bsf/Main.java
Author: rony
Date: Sat Sep 16 09:15:55 2006
New Revision: 446891
URL: http://svn.apache.org/viewvc?view=rev&rev=446891
Log:
20060916 15:14 Changed code in 'org.apache.bsf.Main' to use 'setVisible(true)' instead of 'show()' to display the window/frame object. (Java 1.5 complains about this.)
Modified:
jakarta/bsf/trunk/src/org/apache/bsf/Main.java
Modified: jakarta/bsf/trunk/src/org/apache/bsf/Main.java
URL: http://svn.apache.org/viewvc/jakarta/bsf/trunk/src/org/apache/bsf/Main.java?view=diff&rev=446891&r1=446890&r2=446891
==============================================================================
--- jakarta/bsf/trunk/src/org/apache/bsf/Main.java (original)
+++ jakarta/bsf/trunk/src/org/apache/bsf/Main.java Sat Sep 16 09:15:55 2006
@@ -1,12 +1,12 @@
/*
* Copyright 2004,2004 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -33,7 +33,7 @@
/**
* This is the main driver for BSF to be run on the command line
* to eval/exec/compile scripts directly.
- *
+ *
* @author Sanjiva Weerawarana
* @author Matthew J. Duftler
* @author Sam Ruby
@@ -140,8 +140,8 @@
}
);
f.pack ();
- f.show ();
-
+ // f.show(); // javac 1.5 warns to use f.show(), Apache build scripts abort as a result :(
+ f.setVisible(true); // available since Java 1.1
} else {
System.err.println("Result: " + obj);
@@ -154,7 +154,7 @@
e.printStackTrace();
}
}
-
+
private static void printHelp() {
System.err.println("Usage:");
System.err.println();
---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-dev-help@jakarta.apache.org