/************************************************************************** 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.JButton; import javax.swing.JLabel; import javax.swing.JScrollPane; import javax.swing.JTable; import javax.swing.SwingConstants; import javax.swing.WindowConstants; import javax.swing.table.DefaultTableModel; import org.omegat.util.OStrings; import org.openide.awt.Mnemonics; /** * @author Alex Buloichik (alex73mail@gmail.com) */ @SuppressWarnings("serial") public class BrowseTaasCollectionsUI extends javax.swing.JDialog { /** * Creates new form BrowseTaasCollections */ public BrowseTaasCollectionsUI(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; labelStatus = new JLabel(); btnDownload = new JButton(); btnClose = new JButton(); jScrollPane1 = new JScrollPane(); tableCollections = new JTable(); setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); setTitle(OStrings.getString("TAAS_LIST_HEADER")); // NOI18N setPreferredSize(new Dimension(1000, 600)); getContentPane().setLayout(new GridBagLayout()); labelStatus.setHorizontalAlignment(SwingConstants.CENTER); Mnemonics.setLocalizedText(labelStatus, " "); gridBagConstraints = new GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 10; gridBagConstraints.fill = GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; getContentPane().add(labelStatus, gridBagConstraints); Mnemonics.setLocalizedText(btnDownload, OStrings.getString("TAAS_LIST_DOWNLOAD")); // NOI18N gridBagConstraints = new GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 10; gridBagConstraints.insets = new Insets(5, 5, 5, 5); getContentPane().add(btnDownload, gridBagConstraints); Mnemonics.setLocalizedText(btnClose, OStrings.getString("BUTTON_CLOSE")); // NOI18N gridBagConstraints = new GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 10; gridBagConstraints.anchor = GridBagConstraints.NORTH; gridBagConstraints.insets = new Insets(5, 5, 5, 5); getContentPane().add(btnClose, gridBagConstraints); tableCollections.setModel(new DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); jScrollPane1.setViewportView(tableCollections); 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(jScrollPane1, gridBagConstraints); pack(); }// </editor-fold>//GEN-END:initComponents // Variables declaration - do not modify//GEN-BEGIN:variables public JButton btnClose; public JButton btnDownload; public JScrollPane jScrollPane1; public JLabel labelStatus; public JTable tableCollections; // End of variables declaration//GEN-END:variables }