/*
* Copyright 2012 Anchialas.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.kenai.redminenb.options;
import javax.swing.GroupLayout;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.LayoutStyle;
import org.openide.util.NbBundle;
/**
* RedmineOptionsPanel
*
* @author Anchialas <anchialas@gmail.com>
*/
public class RedmineOptionsPanel extends javax.swing.JPanel {
/**
* Creates new form RedmineOptionsPanel
*/
public RedmineOptionsPanel() {
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.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel2 = new JLabel();
jLabel1 = new JLabel();
jLabel3 = new JLabel();
jLabel4 = new JLabel();
jLabel2.setText(NbBundle.getMessage(RedmineOptionsPanel.class, "RedmineOptionsPanel.jLabel2.text")); // NOI18N
issuesTextField.setText(NbBundle.getMessage(RedmineOptionsPanel.class, "RedmineOptionsPanel.issuesTextField.text")); // NOI18N
jLabel1.setText(NbBundle.getMessage(RedmineOptionsPanel.class, "RedmineOptionsPanel.jLabel1.text")); // NOI18N
jLabel3.setText(NbBundle.getMessage(RedmineOptionsPanel.class, "RedmineOptionsPanel.jLabel3.text")); // NOI18N
queriesTextField.setText(NbBundle.getMessage(RedmineOptionsPanel.class, "RedmineOptionsPanel.queriesTextField.text")); // NOI18N
jLabel4.setText(NbBundle.getMessage(RedmineOptionsPanel.class, "RedmineOptionsPanel.jLabel4.text")); // NOI18N
errorLabel.setText(NbBundle.getMessage(RedmineOptionsPanel.class, "RedmineOptionsPanel.errorLabel.text")); // NOI18N
GroupLayout layout = new GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(errorLabel)
.addContainerGap(406, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addComponent(jLabel1)
.addComponent(jLabel3))
.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(issuesTextField, GroupLayout.PREFERRED_SIZE, 46, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel2))
.addGroup(layout.createSequentialGroup()
.addComponent(queriesTextField, GroupLayout.PREFERRED_SIZE, 46, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel4)))
.addGap(0, 117, Short.MAX_VALUE))
);
layout.setVerticalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1)
.addComponent(issuesTextField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel2))
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(queriesTextField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel4))
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 157, Short.MAX_VALUE)
.addComponent(errorLabel)
.addGap(12, 12, 12))
);
}// </editor-fold>//GEN-END:initComponents
// Variables declaration - do not modify//GEN-BEGIN:variables
final JLabel errorLabel = new JLabel();
final JTextField issuesTextField = new JTextField();
private JLabel jLabel1;
private JLabel jLabel2;
private JLabel jLabel3;
private JLabel jLabel4;
final JTextField queriesTextField = new JTextField();
// End of variables declaration//GEN-END:variables
}