/** * Displays environment information. This is only called on the event * dispatch thread. */ private void showEnvironmentInfo() { textArea.setText(GeoTools.getEnvironmentInfo()); }
/** * Returns summary information about GeoTools and the current environment. * Calls {@linkplain #getEnvironmentInfo()} followed by {@linkplain #getGeoToolsJarInfo()} * and concatenates their results. * * @return requested information as a string */ public static String getAboutInfo() { final StringBuilder sb = new StringBuilder(); sb.append(getEnvironmentInfo()); sb.append(String.format("%n")); sb.append(getGeoToolsJarInfo()); return sb.toString(); }
/** * Displays all information combined. This is only called on the event * dispatch thread. */ private void showAllInfo() { final String newline = String.format("%n"); final StringBuilder sb = new StringBuilder(); if (hasApplicationInfo) { sb.append(applicationInfo).append(newline).append(newline); } sb.append(GeoTools.getEnvironmentInfo()).append(newline).append(newline); sb.append(GeoTools.getGeoToolsJarInfo()).append(newline).append(newline); sb.append("This is the licence info"); textArea.setText(sb.toString()); }