/************************************************************************** OmegaT - Computer Assisted Translation (CAT) tool with fuzzy matching, translation memory, keyword search, glossaries, and translation leveraging into updated projects. Copyright (C) 2014 Alex Buloichik 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.glossary.taas; import java.awt.Dimension; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import javax.swing.BoxLayout; import javax.swing.ButtonGroup; import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JRadioButton; import javax.swing.JScrollPane; import javax.swing.WindowConstants; import org.omegat.util.OStrings; import org.openide.awt.Mnemonics; /** * @author Alex Buloichik (alex73mail@gmail.com) */ @SuppressWarnings("serial") public class SelectDomainUI extends javax.swing.JDialog { /** * Creates new form SelectDomainUI */ public SelectDomainUI(java.awt.Frame parent, boolean modal) { super(parent, modal); 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() { GridBagConstraints gridBagConstraints; buttonGroup = new ButtonGroup(); btnSelect = new JButton(); scrollPane = new JScrollPane(); list = new JPanel(); rbAll = new JRadioButton(); labelStatus = new JLabel(); btnClose = new JButton(); jPanel1 = new JPanel(); setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); setTitle(OStrings.getString("TAAS_DOMAIN_SELECTION_TITLE")); // NOI18N setPreferredSize(new Dimension(450, 600)); getContentPane().setLayout(new GridBagLayout()); Mnemonics.setLocalizedText(btnSelect, OStrings.getString("TAAS_DOMAIN_SELECT")); // NOI18N gridBagConstraints = new GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; gridBagConstraints.insets = new Insets(5, 5, 5, 5); getContentPane().add(btnSelect, gridBagConstraints); list.setLayout(new BoxLayout(list, BoxLayout.PAGE_AXIS)); buttonGroup.add(rbAll); Mnemonics.setLocalizedText(rbAll, OStrings.getString("TAAS_DOMAINS_ALL")); // NOI18N list.add(rbAll); scrollPane.setViewportView(list); gridBagConstraints = new GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 3; gridBagConstraints.fill = GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; getContentPane().add(scrollPane, gridBagConstraints); Mnemonics.setLocalizedText(labelStatus, " "); gridBagConstraints = new GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 3; gridBagConstraints.insets = new Insets(5, 5, 5, 5); getContentPane().add(labelStatus, gridBagConstraints); Mnemonics.setLocalizedText(btnClose, OStrings.getString("BUTTON_CANCEL")); // NOI18N gridBagConstraints = new GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 2; gridBagConstraints.insets = new Insets(5, 5, 5, 5); getContentPane().add(btnClose, gridBagConstraints); gridBagConstraints = new GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.fill = GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; getContentPane().add(jPanel1, gridBagConstraints); pack(); }// </editor-fold>//GEN-END:initComponents // Variables declaration - do not modify//GEN-BEGIN:variables public JButton btnClose; public JButton btnSelect; public ButtonGroup buttonGroup; public JPanel jPanel1; public JLabel labelStatus; public JPanel list; public JRadioButton rbAll; public JScrollPane scrollPane; // End of variables declaration//GEN-END:variables }