java.util.Properties myProps = System.getProperties();
java.util.Enumeration myPropsKeys = myProps.keys();
StringBuffer myResults = new StringBuffer();
while(myPropsKeys.hasMoreElements())
{
String currentKey = (String)myPropsKeys.nextElement();
myResults.append(currentKey);
myResults.append("=");
myResults.append(System.getProperty(currentKey));
myResults.append(System.getProperty("line.separator"));
}
frame.appendDocumentText(myResults.toString());