/* * TimePanel.java * * Created on 17. November 2005, 22:49 */ package at.lux.fotoannotation.dialogs; /** * @author Mathias */ public class TimePanel extends javax.swing.JPanel { /** * Creates new form TimePanel */ public TimePanel() { initComponents(); } public String getDate() { return date.getText(); } public String getDescription() { return description.getText(); } public String getLabel() { return name.getText(); } public void setDate(String date) { this.date.setText(date); } public void setDescription(String description) { this.description.setText(description); } public void setLabel(String label) { this.name.setText(label); } /** * 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() { jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); name = new javax.swing.JTextField(); date = new javax.swing.JTextField(); jScrollPane1 = new javax.swing.JScrollPane(); description = new javax.swing.JTextArea(); jLabel1.setFont(new java.awt.Font("Tahoma", 1, 11)); jLabel1.setText("Name:"); jLabel1.setToolTipText("Bold fields are mandatory."); jLabel2.setText("Date:"); jLabel3.setText("Description:"); name.setToolTipText("Fill in the name or label of the time object."); description.setColumns(20); description.setFont(new java.awt.Font("Tahoma", 0, 11)); description.setRows(5); jScrollPane1.setViewportView(description); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(org.jdesktop.layout.GroupLayout.LEADING, jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, jLabel3) .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jLabel1) .add(jLabel2)) .add(14, 14, 14) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(name, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 331, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, date, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 331, Short.MAX_VALUE)))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(jLabel1) .add(name, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(jLabel2) .add(date, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jLabel3) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JTextField date; private javax.swing.JTextArea description; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel2; private javax.swing.JLabel jLabel3; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JTextField name; // End of variables declaration//GEN-END:variables }