/**************************************************************************
OmegaT - Computer Assisted Translation (CAT) tool
with fuzzy matching, translation memory, keyword search,
glossaries, and translation leveraging into updated projects.
Copyright (C) 2016 Aaron Madlon-Kay
Home page: http://www.omegat.org/
Support center: http://groups.yahoo.com/group/OmegaT/
This file is part of OmegaT.
OmegaT is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OmegaT is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
**************************************************************************/
package org.omegat.gui.dialogs;
import org.omegat.util.OStrings;
/**
* @author Aaron Madlon-Kay
*/
@SuppressWarnings("serial")
public class PasswordSetPanel extends javax.swing.JPanel {
/**
* Creates new form PasswordSetPanel
*/
public PasswordSetPanel() {
initComponents();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
java.awt.GridBagConstraints gridBagConstraints;
messageTextArea = new javax.swing.JTextArea();
jPanel1 = new javax.swing.JPanel();
jLabel2 = new javax.swing.JLabel();
passwordField = new javax.swing.JPasswordField();
confirmLabel = new javax.swing.JLabel();
confirmPasswordField = new javax.swing.JPasswordField();
errorTextArea = new javax.swing.JTextArea();
jPanel2 = new javax.swing.JPanel();
jPanel4 = new javax.swing.JPanel();
doNotSetButton = new javax.swing.JButton();
jPanel3 = new javax.swing.JPanel();
okButton = new javax.swing.JButton();
cancelButton = new javax.swing.JButton();
setBorder(javax.swing.BorderFactory.createEmptyBorder(10, 10, 10, 10));
setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.PAGE_AXIS));
messageTextArea.setEditable(false);
messageTextArea.setFont(jLabel2.getFont());
messageTextArea.setLineWrap(true);
messageTextArea.setText(OStrings.getString("PASSWORD_SET_MESSAGE")); // NOI18N
messageTextArea.setWrapStyleWord(true);
messageTextArea.setAlignmentX(0.0F);
messageTextArea.setDragEnabled(false);
messageTextArea.setFocusable(false);
messageTextArea.setOpaque(false);
add(messageTextArea);
jPanel1.setBorder(javax.swing.BorderFactory.createEmptyBorder(10, 0, 0, 0));
jPanel1.setAlignmentX(0.0F);
jPanel1.setLayout(new java.awt.GridBagLayout());
jLabel2.setText(OStrings.getString("PASSWORD_INPUT_LABEL")); // NOI18N
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 0;
gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 5);
jPanel1.add(jLabel2, gridBagConstraints);
passwordField.setColumns(20);
passwordField.setAlignmentX(0.0F);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 0;
gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
jPanel1.add(passwordField, gridBagConstraints);
confirmLabel.setText(OStrings.getString("PASSWORD_CONFIRM_LABEL")); // NOI18N
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 1;
gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 5);
jPanel1.add(confirmLabel, gridBagConstraints);
confirmPasswordField.setColumns(20);
confirmPasswordField.setAlignmentX(0.0F);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 1;
gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
jPanel1.add(confirmPasswordField, gridBagConstraints);
add(jPanel1);
errorTextArea.setEditable(false);
errorTextArea.setForeground(java.awt.Color.red);
errorTextArea.setLineWrap(true);
errorTextArea.setWrapStyleWord(true);
errorTextArea.setAlignmentX(0.0F);
errorTextArea.setOpaque(false);
add(errorTextArea);
jPanel2.setBorder(javax.swing.BorderFactory.createEmptyBorder(10, 0, 0, 0));
jPanel2.setAlignmentX(0.0F);
jPanel2.setLayout(new java.awt.BorderLayout());
jPanel4.setLayout(new javax.swing.BoxLayout(jPanel4, javax.swing.BoxLayout.LINE_AXIS));
doNotSetButton.setText(OStrings.getString("PASSWORD_DO_NOT_SET_BUTTON")); // NOI18N
jPanel4.add(doNotSetButton);
jPanel2.add(jPanel4, java.awt.BorderLayout.WEST);
jPanel3.setLayout(new javax.swing.BoxLayout(jPanel3, javax.swing.BoxLayout.LINE_AXIS));
org.openide.awt.Mnemonics.setLocalizedText(okButton, OStrings.getString("BUTTON_OK")); // NOI18N
jPanel3.add(okButton);
org.openide.awt.Mnemonics.setLocalizedText(cancelButton, OStrings.getString("BUTTON_CANCEL")); // NOI18N
jPanel3.add(cancelButton);
jPanel2.add(jPanel3, java.awt.BorderLayout.EAST);
add(jPanel2);
}// </editor-fold>//GEN-END:initComponents
// Variables declaration - do not modify//GEN-BEGIN:variables
javax.swing.JButton cancelButton;
javax.swing.JLabel confirmLabel;
javax.swing.JPasswordField confirmPasswordField;
javax.swing.JButton doNotSetButton;
javax.swing.JTextArea errorTextArea;
private javax.swing.JLabel jLabel2;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JPanel jPanel3;
private javax.swing.JPanel jPanel4;
javax.swing.JTextArea messageTextArea;
javax.swing.JButton okButton;
javax.swing.JPasswordField passwordField;
// End of variables declaration//GEN-END:variables
}