19 package org.sleuthkit.autopsy.casemodule;
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;
30 class SolrNotConfiguredDialog
extends javax.swing.JDialog {
32 private static final long serialVersionUID = 1L;
37 SolrNotConfiguredDialog() {
38 super((JFrame) WindowManager.getDefault().getMainWindow(),
true);
41 setLocationRelativeTo(WindowManager.getDefault().getMainWindow());
42 setIconImage(ImageUtilities.loadImage(
"org/sleuthkit/autopsy/images/warning16.png",
false));
50 @SuppressWarnings(
"unchecked")
52 private
void initComponents() {
54 okButton =
new javax.swing.JButton();
55 messageLabel =
new javax.swing.JLabel();
57 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
58 setTitle(
org.openide.util.NbBundle.getMessage(SolrNotConfiguredDialog.class,
"SolrNotConfiguredDialog.title"));
60 setName(
"toolsNotFound");
62 org.openide.awt.Mnemonics.setLocalizedText(okButton,
org.openide.util.NbBundle.getMessage(SolrNotConfiguredDialog.class,
"SolrNotConfiguredDialog.okButton.text"));
63 okButton.addActionListener(
new java.awt.event.ActionListener() {
64 public void actionPerformed(java.awt.event.ActionEvent evt) {
65 okButtonActionPerformed(evt);
69 org.openide.awt.Mnemonics.setLocalizedText(messageLabel,
org.openide.util.NbBundle.getMessage(SolrNotConfiguredDialog.class,
"SolrNotConfiguredDialog.messageLabel.text"));
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)))
86 layout.setVerticalGroup(
87 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
88 .addGroup(layout.createSequentialGroup()
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)
99 private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {
104 private javax.swing.JLabel messageLabel;
105 private javax.swing.JButton okButton;