Skip to content

Commit

Permalink
Ajustando thread ao gerar GraphView
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianaPriscilaSantos committed Aug 21, 2021
1 parent 5ed5eb8 commit 9f4d308
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 56 deletions.
54 changes: 1 addition & 53 deletions TSVizzEvolution/src/tsvizzevolution/GraphView.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,16 @@
import java.util.logging.Level;
import java.util.logging.Logger;

public class GraphView extends JFrame implements WindowListener{
public class GraphView {
/**
*
*/
private static final long serialVersionUID = 1L;
public JProgressBar progress;

public GraphView () {
}

public Thread progressoT = new Thread() {
@Override
public void run(){
// addWindowListener(new WindowAdapter() {
//
// @Override
// public void windowClosing(WindowEvent e) {
// OneVersion.frame.setVisible(true);
// }
//
// });
progress.setValue(0);
for (int i = 0; i <= 50; i++) {
progress.setValue(i);
Expand Down Expand Up @@ -767,45 +756,4 @@ public void setVisible(boolean b) {
// TODO Auto-generated method stub

}

@Override
public void windowOpened(WindowEvent e) {
// TODO Auto-generated method stub

}

@Override
public void windowClosing(WindowEvent e) {
OneVersion.frame.setVisible(true);
}

@Override
public void windowClosed(WindowEvent e) {
// TODO Auto-generated method stub

}

@Override
public void windowIconified(WindowEvent e) {
// TODO Auto-generated method stub

}

@Override
public void windowDeiconified(WindowEvent e) {
// TODO Auto-generated method stub

}

@Override
public void windowActivated(WindowEvent e) {
// TODO Auto-generated method stub

}

@Override
public void windowDeactivated(WindowEvent e) {
// TODO Auto-generated method stub

}
}
5 changes: 2 additions & 3 deletions TSVizzEvolution/src/tsvizzevolution/OneVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,9 @@ public void btnGerarGrafoActionPerformed(java.awt.event.ActionEvent evt) {
pnlProgress.setVisible(true);
GraphView c = new GraphView();
c.iniciaProcessamento(txtFilePathDefault1.getText(),progress,pnlProgress,cbLevel,cbClass,cbTestSmells,cbAuthor,cbSelectMethod);
setVisible(false);
//setVisible(false);
//dispose();



}

public static List<Data> retornaDados(String file, String filtro) {
Expand Down

0 comments on commit 9f4d308

Please sign in to comment.