comparison ConnectionManager/src/connectionmanager/DatabaseDialog.java @ 6:670905eb688a

Fix code indentation.
author Daniele Nicolodi <daniele@science.unitn.it>
date Wed, 02 Jun 2010 18:02:25 +0200
parents 35f1cfcaa5a9
children
comparison
equal deleted inserted replaced
5:35f1cfcaa5a9 6:670905eb688a
2 2
3 import javax.swing.DefaultComboBoxModel; 3 import javax.swing.DefaultComboBoxModel;
4 4
5 public class DatabaseDialog extends javax.swing.JDialog { 5 public class DatabaseDialog extends javax.swing.JDialog {
6 6
7 public boolean cancelled = true; 7 public boolean cancelled = true;
8 public String hostname; 8 public String hostname;
9 public String database; 9 public String database;
10 10
11 public DatabaseDialog(java.awt.Frame parent, boolean modal, String[] hostnames) { 11 public DatabaseDialog(java.awt.Frame parent, boolean modal, String[] hostnames) {
12 super(parent, modal); 12 super(parent, modal);
13 initComponents(); 13 initComponents();
14 hostnameCombo.setModel(new DefaultComboBoxModel(hostnames)); 14 hostnameCombo.setModel(new DefaultComboBoxModel(hostnames));
15 } 15 }
16 16
17 public DatabaseDialog(java.awt.Frame parent, boolean modal) { 17 public DatabaseDialog(java.awt.Frame parent, boolean modal) {
18 super(new java.awt.Frame(), true); 18 super(new java.awt.Frame(), true);
19 initComponents(); 19 initComponents();
20 hostnameCombo.setModel(new DefaultComboBoxModel()); 20 hostnameCombo.setModel(new DefaultComboBoxModel());
21 } 21 }
22 22
23 public DatabaseDialog() { 23 public DatabaseDialog() {
24 super(new java.awt.Frame(), true); 24 super(new java.awt.Frame(), true);
25 initComponents(); 25 initComponents();
26 hostnameCombo.setModel(new DefaultComboBoxModel()); 26 hostnameCombo.setModel(new DefaultComboBoxModel());
27 } 27 }
28 28
29 @SuppressWarnings("unchecked") 29 @SuppressWarnings("unchecked")
30 // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents 30 // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
31 private void initComponents() { 31 private void initComponents() {
32 32
33 jLabel10 = new javax.swing.JLabel(); 33 jLabel10 = new javax.swing.JLabel();
34 jLabel9 = new javax.swing.JLabel(); 34 jLabel9 = new javax.swing.JLabel();
120 120
121 pack(); 121 pack();
122 }// </editor-fold>//GEN-END:initComponents 122 }// </editor-fold>//GEN-END:initComponents
123 123
124 private void cancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelButtonActionPerformed 124 private void cancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelButtonActionPerformed
125 cancelled = true; 125 cancelled = true;
126 doClose(); 126 doClose();
127 }//GEN-LAST:event_cancelButtonActionPerformed 127 }//GEN-LAST:event_cancelButtonActionPerformed
128 128
129 private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed 129 private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed
130 cancelled = false; 130 cancelled = false;
131 hostname = (String)hostnameCombo.getSelectedItem(); 131 hostname = (String) hostnameCombo.getSelectedItem();
132 database = (String)databaseCombo.getSelectedItem(); 132 database = (String) databaseCombo.getSelectedItem();
133 doClose(); 133 doClose();
134 }//GEN-LAST:event_okButtonActionPerformed 134 }//GEN-LAST:event_okButtonActionPerformed
135 135
136 private void databaseComboActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_databaseComboActionPerformed 136 private void databaseComboActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_databaseComboActionPerformed
137
138 }//GEN-LAST:event_databaseComboActionPerformed 137 }//GEN-LAST:event_databaseComboActionPerformed
139 138
140 private void hostnameComboActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_hostnameComboActionPerformed 139 private void hostnameComboActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_hostnameComboActionPerformed
141
142 }//GEN-LAST:event_hostnameComboActionPerformed 140 }//GEN-LAST:event_hostnameComboActionPerformed
143 141
144 private void doClose() { 142 private void doClose() {
145 setVisible(false); 143 setVisible(false);
146 dispose(); 144 dispose();
152 private javax.swing.JComboBox hostnameCombo; 150 private javax.swing.JComboBox hostnameCombo;
153 private javax.swing.JLabel jLabel10; 151 private javax.swing.JLabel jLabel10;
154 private javax.swing.JLabel jLabel9; 152 private javax.swing.JLabel jLabel9;
155 private javax.swing.JButton okButton; 153 private javax.swing.JButton okButton;
156 // End of variables declaration//GEN-END:variables 154 // End of variables declaration//GEN-END:variables
157
158 } 155 }