diff --git a/src/main/java/it/unimib/disco/bimib/cyTRON/controller/DatasetController.java b/src/main/java/it/unimib/disco/bimib/cyTRON/controller/DatasetController.java index b8ea9ed..fe1feda 100644 --- a/src/main/java/it/unimib/disco/bimib/cyTRON/controller/DatasetController.java +++ b/src/main/java/it/unimib/disco/bimib/cyTRON/controller/DatasetController.java @@ -11,8 +11,6 @@ import java.io.FileNotFoundException; import java.io.IOException; import java.util.List; -import java.util.logging.Level; -import java.util.logging.Logger; import javax.swing.DefaultListModel; public class DatasetController { @@ -60,8 +58,8 @@ public void importDataset(String name, String path, String type) throws FileNotF // add it to the list datasetsListModel.addElement(dataset); } - } catch (IOException ex) { - Logger.getLogger(DatasetController.class.getName()).log(Level.SEVERE, null, ex); + } catch (IOException e) { + e.printStackTrace(); } } diff --git a/src/main/java/it/unimib/disco/bimib/cyTRON/view/ExternalToolsPanel.java b/src/main/java/it/unimib/disco/bimib/cyTRON/view/ExternalToolsPanel.java index d75aada..6dc45ef 100644 --- a/src/main/java/it/unimib/disco/bimib/cyTRON/view/ExternalToolsPanel.java +++ b/src/main/java/it/unimib/disco/bimib/cyTRON/view/ExternalToolsPanel.java @@ -8,8 +8,6 @@ import java.awt.Color; import java.io.IOException; import java.util.List; -import java.util.logging.Level; -import java.util.logging.Logger; import javax.swing.DefaultComboBoxModel; import javax.swing.JFileChooser; @@ -469,8 +467,8 @@ private void filePathTextField1MouseClicked(java.awt.event.MouseEvent evt) {//GE try { // update the text field filePathTextField1.setText(fileChooser.getSelectedFile().getCanonicalPath()); - } catch (IOException ex) { - Logger.getLogger(ImportDatasetFrame.class.getName()).log(Level.SEVERE, null, ex); + } catch (IOException e) { + e.printStackTrace(); } } }//GEN-LAST:event_filePathTextField1MouseClicked @@ -485,8 +483,8 @@ private void mappingTextFieldMouseClicked(java.awt.event.MouseEvent evt) {//GEN- try { // update the text field mappingTextField.setText(fileChooser.getSelectedFile().getCanonicalPath()); - } catch (IOException ex) { - Logger.getLogger(ImportDatasetFrame.class.getName()).log(Level.SEVERE, null, ex); + } catch (IOException e) { + e.printStackTrace(); } } }//GEN-LAST:event_mappingTextFieldMouseClicked @@ -502,8 +500,8 @@ private void filePathTextField2MouseClicked(java.awt.event.MouseEvent evt) {//GE try { // update the text field filePathTextField2.setText(fileChooser.getSelectedFile().getCanonicalPath()); - } catch (IOException ex) { - Logger.getLogger(ImportDatasetFrame.class.getName()).log(Level.SEVERE, null, ex); + } catch (IOException e) { + e.printStackTrace(); } } }//GEN-LAST:event_filePathTextField2MouseClicked @@ -518,8 +516,8 @@ private void fileTextFieldMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIR try { // update the text field fileTextField.setText(fileChooser.getSelectedFile().getCanonicalPath()); - } catch (IOException ex) { - Logger.getLogger(ImportDatasetFrame.class.getName()).log(Level.SEVERE, null, ex); + } catch (IOException e) { + e.printStackTrace(); } } }//GEN-LAST:event_fileTextFieldMouseClicked diff --git a/src/main/java/it/unimib/disco/bimib/cyTRON/view/ImportDatasetFrame.java b/src/main/java/it/unimib/disco/bimib/cyTRON/view/ImportDatasetFrame.java index a3276ad..ab876c4 100644 --- a/src/main/java/it/unimib/disco/bimib/cyTRON/view/ImportDatasetFrame.java +++ b/src/main/java/it/unimib/disco/bimib/cyTRON/view/ImportDatasetFrame.java @@ -6,8 +6,6 @@ import java.awt.Color; import java.io.FileNotFoundException; import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; import javax.swing.JFileChooser; import javax.swing.JOptionPane; @@ -214,8 +212,8 @@ private void pathTextFieldMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIR try { // update the text field pathTextField.setText(fileChooser.getSelectedFile().getCanonicalPath()); - } catch (IOException ex) { - Logger.getLogger(ImportDatasetFrame.class.getName()).log(Level.SEVERE, null, ex); + } catch (IOException e) { + e.printStackTrace(); } } }//GEN-LAST:event_pathTextFieldMouseClicked diff --git a/src/main/java/it/unimib/disco/bimib/cyTRON/view/SaveDatasetFrame.java b/src/main/java/it/unimib/disco/bimib/cyTRON/view/SaveDatasetFrame.java index 4575830..2cacf9c 100644 --- a/src/main/java/it/unimib/disco/bimib/cyTRON/view/SaveDatasetFrame.java +++ b/src/main/java/it/unimib/disco/bimib/cyTRON/view/SaveDatasetFrame.java @@ -5,8 +5,6 @@ import java.awt.Color; import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; import javax.swing.JFileChooser; import javax.swing.JOptionPane; @@ -138,8 +136,8 @@ private void pathTextFieldMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIR try { // update the text field pathTextField.setText(fileChooser.getSelectedFile().getCanonicalPath()); - } catch (IOException ex) { - Logger.getLogger(SaveDatasetFrame.class.getName()).log(Level.SEVERE, null, ex); + } catch (IOException e) { + e.printStackTrace(); } } }//GEN-LAST:event_pathTextFieldMouseClicked diff --git a/src/main/java/it/unimib/disco/bimib/cyTRON/view/VisualizationPanel.java b/src/main/java/it/unimib/disco/bimib/cyTRON/view/VisualizationPanel.java index d224c4b..17fede6 100644 --- a/src/main/java/it/unimib/disco/bimib/cyTRON/view/VisualizationPanel.java +++ b/src/main/java/it/unimib/disco/bimib/cyTRON/view/VisualizationPanel.java @@ -10,8 +10,6 @@ import java.awt.Color; import java.io.IOException; import java.util.List; -import java.util.logging.Level; -import java.util.logging.Logger; import javax.swing.JFileChooser; import javax.swing.JOptionPane; @@ -447,8 +445,8 @@ private void annotateStageTextFieldMouseClicked(java.awt.event.MouseEvent evt) { try { // update the text field annotateStageTextField.setText(fileChooser.getSelectedFile().getCanonicalPath()); - } catch (IOException ex) { - Logger.getLogger(ImportDatasetFrame.class.getName()).log(Level.SEVERE, null, ex); + } catch (IOException e) { + e.printStackTrace(); } } }//GEN-LAST:event_annotateStageTextFieldMouseClicked @@ -463,8 +461,8 @@ private void samplesGroupTextFieldMouseClicked(java.awt.event.MouseEvent evt) {/ try { // update the text field samplesGroupTextField.setText(fileChooser.getSelectedFile().getCanonicalPath()); - } catch (IOException ex) { - Logger.getLogger(ImportDatasetFrame.class.getName()).log(Level.SEVERE, null, ex); + } catch (IOException e) { + e.printStackTrace(); } } }//GEN-LAST:event_samplesGroupTextFieldMouseClicked @@ -577,7 +575,7 @@ private void showPlotButtonActionPerformed(java.awt.event.ActionEvent evt) {//GE JOptionPane.showConfirmDialog(this, RConnectionManager.getTextConsole().getLastConsoleMessage(), RConnectionManager.ERROR, JOptionPane.PLAIN_MESSAGE); } } catch (IOException e) { - Logger.getLogger(ImportDatasetFrame.class.getName()).log(Level.SEVERE, null, e); + e.printStackTrace(); } }//GEN-LAST:event_showPlotButtonActionPerformed diff --git a/src/main/java/it/unimib/disco/bimib/cyTRON/view/WizardFrame.java b/src/main/java/it/unimib/disco/bimib/cyTRON/view/WizardFrame.java index 3e65a3e..9897eea 100644 --- a/src/main/java/it/unimib/disco/bimib/cyTRON/view/WizardFrame.java +++ b/src/main/java/it/unimib/disco/bimib/cyTRON/view/WizardFrame.java @@ -3,8 +3,6 @@ import it.unimib.disco.bimib.cyTRON.controller.WizardController; import it.unimib.disco.bimib.cyTRON.cytoscape.CommandExecutor; import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; import javax.swing.JFileChooser; import javax.swing.JOptionPane; @@ -534,8 +532,8 @@ private void jriFromTextFieldMouseClicked(java.awt.event.MouseEvent evt) {//GEN- try { // update the text field jriFromTextField.setText(fileChooser.getSelectedFile().getCanonicalPath()); - } catch (IOException ex) { - Logger.getLogger(ImportDatasetFrame.class.getName()).log(Level.SEVERE, null, ex); + } catch (IOException e) { + e.printStackTrace(); } } }//GEN-LAST:event_jriFromTextFieldMouseClicked @@ -557,8 +555,8 @@ private void jriToTextFieldMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FI try { // update the text field jriToTextField.setText(fileChooser.getSelectedFile().getCanonicalPath()); - } catch (IOException ex) { - Logger.getLogger(ImportDatasetFrame.class.getName()).log(Level.SEVERE, null, ex); + } catch (IOException e) { + e.printStackTrace(); } } }//GEN-LAST:event_jriToTextFieldMouseClicked @@ -580,8 +578,8 @@ private void rLibraryFromTextFieldMouseClicked(java.awt.event.MouseEvent evt) {/ try { // update the text field rLibraryFromTextField.setText(fileChooser.getSelectedFile().getCanonicalPath()); - } catch (IOException ex) { - Logger.getLogger(ImportDatasetFrame.class.getName()).log(Level.SEVERE, null, ex); + } catch (IOException e) { + e.printStackTrace(); } } }//GEN-LAST:event_rLibraryFromTextFieldMouseClicked @@ -603,8 +601,8 @@ private void rLibraryToTextFieldMouseClicked(java.awt.event.MouseEvent evt) {//G try { // update the text field rLibraryToTextField.setText(fileChooser.getSelectedFile().getCanonicalPath()); - } catch (IOException ex) { - Logger.getLogger(ImportDatasetFrame.class.getName()).log(Level.SEVERE, null, ex); + } catch (IOException e) { + e.printStackTrace(); } } }//GEN-LAST:event_rLibraryToTextFieldMouseClicked