Autopsy  4.21.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
SolrNotConfiguredDialog.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2020 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.casemodule;
20 
21 import java.awt.Dimension;
22 import java.awt.Toolkit;
23 import javax.swing.JFrame;
24 import org.openide.util.ImageUtilities;
25 import org.openide.windows.WindowManager;
26 
30 class SolrNotConfiguredDialog extends javax.swing.JDialog {
31 
32  private static final long serialVersionUID = 1L;
33 
37  SolrNotConfiguredDialog() {
38  super((JFrame) WindowManager.getDefault().getMainWindow(), true);
39  // Center the startup window.
40  initComponents();
41  setLocationRelativeTo(WindowManager.getDefault().getMainWindow());
42  setIconImage(ImageUtilities.loadImage("org/sleuthkit/autopsy/images/warning16.png", false));
43  }
44 
50  @SuppressWarnings("unchecked")
51  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
52  private void initComponents() {
53 
54  okButton = new javax.swing.JButton();
55  messageLabel = new javax.swing.JLabel();
56 
57  setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
58  setTitle(org.openide.util.NbBundle.getMessage(SolrNotConfiguredDialog.class, "SolrNotConfiguredDialog.title")); // NOI18N
59  setModal(true);
60  setName("toolsNotFound"); // NOI18N
61 
62  org.openide.awt.Mnemonics.setLocalizedText(okButton, org.openide.util.NbBundle.getMessage(SolrNotConfiguredDialog.class, "SolrNotConfiguredDialog.okButton.text")); // NOI18N
63  okButton.addActionListener(new java.awt.event.ActionListener() {
64  public void actionPerformed(java.awt.event.ActionEvent evt) {
65  okButtonActionPerformed(evt);
66  }
67  });
68 
69  org.openide.awt.Mnemonics.setLocalizedText(messageLabel, org.openide.util.NbBundle.getMessage(SolrNotConfiguredDialog.class, "SolrNotConfiguredDialog.messageLabel.text")); // NOI18N
70 
71  javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
72  getContentPane().setLayout(layout);
73  layout.setHorizontalGroup(
74  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
75  .addGroup(layout.createSequentialGroup()
76  .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
77  .addGroup(layout.createSequentialGroup()
78  .addGap(0, 15, Short.MAX_VALUE)
79  .addComponent(messageLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 420, javax.swing.GroupLayout.PREFERRED_SIZE))
80  .addGroup(layout.createSequentialGroup()
81  .addGap(189, 189, 189)
82  .addComponent(okButton)
83  .addGap(0, 193, Short.MAX_VALUE)))
84  .addContainerGap())
85  );
86  layout.setVerticalGroup(
87  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
88  .addGroup(layout.createSequentialGroup()
89  .addContainerGap()
90  .addComponent(messageLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
91  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
92  .addComponent(okButton)
93  .addContainerGap())
94  );
95 
96  pack();
97  }// </editor-fold>//GEN-END:initComponents
98 
99  private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed
100  this.dispose();
101  }//GEN-LAST:event_okButtonActionPerformed
102 
103  // Variables declaration - do not modify//GEN-BEGIN:variables
104  private javax.swing.JLabel messageLabel;
105  private javax.swing.JButton okButton;
106  // End of variables declaration//GEN-END:variables
107 }

Copyright © 2012-2022 Basis Technology. Generated on: Tue Feb 6 2024
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.