last bits of 58, dealing with compiler, etc

This commit is contained in:
benfry
2003-08-06 02:33:48 +00:00
parent 5bbad77897
commit f1f50c659a
3 changed files with 62 additions and 9 deletions

View File

@@ -118,12 +118,6 @@ public class PdeBase extends Frame
static public void main(String args[]) {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) {
e.printStackTrace();
}
//System.getProperties().list(System.out);
//System.out.println(System.getProperty("java.class.path"));
@@ -152,6 +146,20 @@ public class PdeBase extends Frame
}
}
try {
//if (platform == LINUX) {
// linux is by default (motif?) even uglier than metal
// actually, i'm using native menus, so they're ugly and
// motif-looking. ick. need to fix this.
//System.out.println("setting to metal");
//UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
//} else {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
//}
} catch (Exception e) {
e.printStackTrace();
}
//try {
PdeBase app = new PdeBase();
// people attempting to use p5 in headless mode are
@@ -214,13 +222,35 @@ public class PdeBase extends Frame
}
//properties.list(System.out);
} catch (Exception e) {
System.err.println("Error reading pde.properties");
e.printStackTrace();
//System.exit(1);
}
// check to see if quicktime for java is installed on windows
// since it's temporarily required for 0058
if (platform == WINDOWS) {
// location for 95/98/ME/XP
File qt1 = new File("C:\\WINDOWS\\system32\\QTJava.zip");
// location for win2k
File qt2 = new File("C:\\WINNT\\system32\\QTJava.zip");
if (!qt1.exists() && !qt2.exists()) {
final String message =
"QuickTime for Java could not be found.\n" +
"Please download QuickTime from Apple at:\n" +
"http://www.apple.com/quicktime/download\n" +
"and use the 'Custom' install to make sure\n" +
"that QuickTime for Java is included.";
JOptionPane.showMessageDialog(this, message,
"Could not find QuickTime for Java",
JOptionPane.WARNING_MESSAGE);
System.exit(1);
}
}
// read in the keywords for the reference