/* * PlacePanel.java * * Created on 17. November 2005, 22:56 */ package at.lux.fotoannotation.dialogs; /** * @author Mathias */ public class PlacePanel extends javax.swing.JPanel { /** * Creates new form PlacePanel */ public PlacePanel() { initComponents(); } public String getAddress() { return address.getText(); } public String getDescription() { return description.getText(); } public String getLabel() { return label.getText(); } public void setAddress(String address) { this.address.setText(address); } public void setDescription(String description) { this.description.setText(description); } public void setLabel(String label) { this.label.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(); label = new javax.swing.JTextField(); jScrollPane1 = new javax.swing.JScrollPane(); address = new javax.swing.JTextArea(); jLabel3 = new javax.swing.JLabel(); jScrollPane2 = 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("Address:"); address.setColumns(20); address.setFont(new java.awt.Font("Tahoma", 0, 11)); address.setRows(3); jScrollPane1.setViewportView(address); jLabel3.setText("Description:"); description.setColumns(20); description.setFont(new java.awt.Font("Tahoma", 0, 11)); description.setRows(3); jScrollPane2.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.LEADING, layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE) .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() .add(jLabel1) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 18, Short.MAX_VALUE) .add(label, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 327, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .add(jLabel2) .add(jLabel3) .add(jScrollPane2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 380, 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(label, 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(jLabel2) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 71, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(14, 14, 14) .add(jLabel3) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(jScrollPane2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE) .addContainerGap()) ); }// </editor-fold>//GEN-END:initComponents // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JTextArea address; 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.JScrollPane jScrollPane2; private javax.swing.JTextField label; // End of variables declaration//GEN-END:variables }