19 package org.sleuthkit.autopsy.corecomponents;
 
   21 import java.awt.Cursor;
 
   22 import java.awt.Image;
 
   23 import java.awt.Window;
 
   25 import java.net.MalformedURLException;
 
   27 import java.text.MessageFormat;
 
   28 import java.util.Locale;
 
   30 import javax.swing.Icon;
 
   31 import javax.swing.ImageIcon;
 
   32 import javax.swing.JPanel;
 
   33 import javax.swing.SwingUtilities;
 
   34 import javax.swing.event.HyperlinkEvent;
 
   35 import javax.swing.event.HyperlinkListener;
 
   36 import org.netbeans.core.actions.HTMLViewAction;
 
   37 import org.openide.awt.HtmlBrowser;
 
   38 import org.openide.modules.Places;
 
   39 import org.openide.util.ImageUtilities;
 
   40 import org.openide.util.NbBundle;
 
   51     private URL 
url = null;
 
   56         about = 
new ImageIcon(ImageUtilities.loadImage(
"org/sleuthkit/autopsy/images/splash.png"));
 
   61         about = 
new ImageIcon(ImageUtilities.loadImage(pathToBrandingImage));
 
   67         logoLabel.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
 
   69                 "LBL_Description", 
new Object[]{getProductVersionValue(), getJavaValue(), getVMValue(),
 
   70                     getOperatingSystemValue(), getEncodingValue(), getSystemLocaleValue(), getUserDirValue(), getSleuthKitVersionValue(), Version.getNetbeansBuild(), Version.getBuildType().toString()}));
 
   88         jButton2 = 
new javax.swing.JButton();
 
   90         setBackground(
new java.awt.Color(255, 255, 255));
 
   92         logoLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
 
   94         logoLabel.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
 
   95         logoLabel.addMouseListener(
new java.awt.event.MouseAdapter() {
 
   96             public void mouseClicked(java.awt.event.MouseEvent evt) {
 
  107         copyright.addMouseListener(
new java.awt.event.MouseAdapter() {
 
  108             public void mouseClicked(java.awt.event.MouseEvent evt) {
 
  119         verboseLoggingButton.setText(NbBundle.getMessage(
this.getClass(), 
"AboutWindowPanel.actVerboseLogging.text"));
 
  121             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
  126         jButton2.setBackground(
new java.awt.Color(255, 255, 255));
 
  128         jButton2.addActionListener(
new java.awt.event.ActionListener() {
 
  129             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
  134         javax.swing.GroupLayout layout = 
new javax.swing.GroupLayout(
this);
 
  135         this.setLayout(layout);
 
  136         layout.setHorizontalGroup(
 
  137             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  138             .addGroup(layout.createSequentialGroup()
 
  140                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  141                     .addComponent(
jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 486, Short.MAX_VALUE)
 
  142                     .addComponent(
jScrollPane3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 486, Short.MAX_VALUE)
 
  143                     .addComponent(
logoLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 486, Short.MAX_VALUE)
 
  144                     .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
 
  145                         .addGap(0, 0, Short.MAX_VALUE)
 
  146                         .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  148                             .addComponent(
jButton2, javax.swing.GroupLayout.Alignment.TRAILING))))
 
  151         layout.setVerticalGroup(
 
  152             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  153             .addGroup(layout.createSequentialGroup()
 
  156                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 
  157                 .addComponent(
jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
 
  158                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 
  159                 .addComponent(
jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE)
 
  160                 .addGap(18, 18, Short.MAX_VALUE)
 
  180     } 
catch (MalformedURLException ex) {
 
  203                 NbBundle.getMessage(
this.getClass(), 
"ProductInformationPanel.verbLoggingEnabled.text"));
 
  207         Window w = SwingUtilities.getWindowAncestor(
this);
 
  214             org.openide.awt.StatusDisplayer.getDefault().setStatusText(
 
  215                     NbBundle.getBundle(HTMLViewAction.class).getString(
"CTL_OpeningBrowser")); 
 
  216             HtmlBrowser.URLDisplayer.getDefault().showURL(url);
 
  221         return SleuthkitJNI.getVersion();
 
  225         return MessageFormat.format(
 
  226                 NbBundle.getBundle(
"org.netbeans.core.startup.Bundle").getString(
"currentVersion"), 
 
  227                 new Object[]{System.getProperty(
"netbeans.buildnumber")});
 
  231         return NbBundle.getMessage(
AboutWindowPanel.class, 
"Format_OperatingSystem_Value",
 
  232                 System.getProperty(
"os.name", 
 
  234                                 "ProductInformationPanel.propertyUnknown.text")),
 
  235                 System.getProperty(
"os.version", 
 
  237                                 "ProductInformationPanel.propertyUnknown.text")),
 
  238                 System.getProperty(
"os.arch", 
 
  240                                 "ProductInformationPanel.propertyUnknown.text")));
 
  244         return System.getProperty(
"java.version", 
 
  246                         "ProductInformationPanel.propertyUnknown.text"));
 
  251                 "ProductInformationPanel.getVMValue.text",
 
  252                 System.getProperty(
"java.vm.name", 
 
  254                                 "ProductInformationPanel.propertyUnknown.text")),
 
  255                 System.getProperty(
"java.vm.version", 
"")); 
 
  260         return Locale.getDefault().toString() + ((branding = NbBundle.getBranding()) == null ? 
"" : (
" (" + branding + 
")")); 
 
  264         return Places.getUserDirectory().getAbsolutePath();
 
  268         return System.getProperty(
"file.encoding", 
 
  269                 NbBundle.getMessage(
AboutWindowPanel.class, 
"ProductInformationPanel.propertyUnknown.text"));
 
  278         if (HyperlinkEvent.EventType.ENTERED == event.getEventType()) {
 
  279             url = 
event.getURL();
 
  280         } 
else if (HyperlinkEvent.EventType.EXITED == event.getEventType()) {
 
  289         verboseLogging = 
true;
 
  292         SleuthkitJNI.startVerboseLogging(logPath);
 
javax.swing.JTextPane copyright
static String getVMValue()
void disableVerboseLoggingButton()
static String getProductVersionValue()
static String getJavaValue()
AboutWindowPanel(String pathToBrandingImage)
static String getOperatingSystemValue()
void logoLabelMouseClicked(java.awt.event.MouseEvent evt)
javax.swing.JTextPane description
static String getEncodingValue()
boolean verboseLoggingIsSet()
javax.swing.JScrollPane jScrollPane2
void hyperlinkUpdate(HyperlinkEvent event)
javax.swing.JButton jButton2
void activateVerboseLogging(java.awt.event.ActionEvent evt)
javax.swing.JLabel logoLabel
static final long serialVersionUID
void copyrightMouseClicked(java.awt.event.MouseEvent evt)
javax.swing.JButton verboseLoggingButton
void jButton2ActionPerformed(java.awt.event.ActionEvent evt)
void startVerboseLogging()
static String getSleuthKitVersionValue()
javax.swing.JScrollPane jScrollPane3
void setCopyright(String text)
static String getSystemLocaleValue()