Mercurial > hg > ltpda-connection-manager
diff 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 |
line wrap: on
line diff
--- a/ConnectionManager/src/connectionmanager/DatabaseDialog.java Wed Jun 02 17:29:18 2010 +0200 +++ b/ConnectionManager/src/connectionmanager/DatabaseDialog.java Wed Jun 02 18:02:25 2010 +0200 @@ -4,29 +4,29 @@ public class DatabaseDialog extends javax.swing.JDialog { - public boolean cancelled = true; - public String hostname; - public String database; + public boolean cancelled = true; + public String hostname; + public String database; - public DatabaseDialog(java.awt.Frame parent, boolean modal, String[] hostnames) { - super(parent, modal); - initComponents(); - hostnameCombo.setModel(new DefaultComboBoxModel(hostnames)); - } + public DatabaseDialog(java.awt.Frame parent, boolean modal, String[] hostnames) { + super(parent, modal); + initComponents(); + hostnameCombo.setModel(new DefaultComboBoxModel(hostnames)); + } - public DatabaseDialog(java.awt.Frame parent, boolean modal) { - super(new java.awt.Frame(), true); - initComponents(); - hostnameCombo.setModel(new DefaultComboBoxModel()); - } + public DatabaseDialog(java.awt.Frame parent, boolean modal) { + super(new java.awt.Frame(), true); + initComponents(); + hostnameCombo.setModel(new DefaultComboBoxModel()); + } - public DatabaseDialog() { - super(new java.awt.Frame(), true); - initComponents(); - hostnameCombo.setModel(new DefaultComboBoxModel()); - } + public DatabaseDialog() { + super(new java.awt.Frame(), true); + initComponents(); + hostnameCombo.setModel(new DefaultComboBoxModel()); + } - @SuppressWarnings("unchecked") + @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { @@ -122,23 +122,21 @@ }// </editor-fold>//GEN-END:initComponents private void cancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelButtonActionPerformed - cancelled = true; - doClose(); + cancelled = true; + doClose(); }//GEN-LAST:event_cancelButtonActionPerformed private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed cancelled = false; - hostname = (String)hostnameCombo.getSelectedItem(); - database = (String)databaseCombo.getSelectedItem(); + hostname = (String) hostnameCombo.getSelectedItem(); + database = (String) databaseCombo.getSelectedItem(); doClose(); }//GEN-LAST:event_okButtonActionPerformed private void databaseComboActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_databaseComboActionPerformed - }//GEN-LAST:event_databaseComboActionPerformed private void hostnameComboActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_hostnameComboActionPerformed - }//GEN-LAST:event_hostnameComboActionPerformed private void doClose() { @@ -154,5 +152,4 @@ private javax.swing.JLabel jLabel9; private javax.swing.JButton okButton; // End of variables declaration//GEN-END:variables - }