root / src / gZFS / guiProgress.java @ 60
Historique | Voir | Annoter | Télécharger (1,16 ko)
1 |
/*******************************************************************
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2013 Kevin Reverchon
|
4 |
* This file/program is part of gZFS free software
|
5 |
* See COPYING file for details
|
6 |
*
|
7 |
*******************************************************************/
|
8 |
package gZFS; |
9 |
|
10 |
import org.eclipse.swt.SWT; |
11 |
import org.eclipse.swt.widgets.Display; |
12 |
import org.eclipse.swt.widgets.ProgressBar; |
13 |
import org.eclipse.swt.widgets.Shell; |
14 |
import org.eclipse.swt.layout.FillLayout; |
15 |
|
16 |
public class guiProgress { |
17 |
|
18 |
protected static Shell s; |
19 |
private ProgressBar progressBar;
|
20 |
private Boolean checker; |
21 |
|
22 |
//Display d = new Display();
|
23 |
|
24 |
guiProgress(Display d, int sx, int sy) { |
25 |
s = new Shell(d, SWT.SYSTEM_MODAL|SWT.ON_TOP);
|
26 |
s.setLocation(d.getCursorLocation().x,d.getCursorLocation().y); |
27 |
s.setSize(50, 10); |
28 |
s.setLayout(new FillLayout(SWT.HORIZONTAL));
|
29 |
ProgressBar progressBar_1 = new ProgressBar(s, SWT.Activate);
|
30 |
|
31 |
} |
32 |
public static void main(Display d, int sx, int sy){ |
33 |
new guiProgress(d, sx, sy);
|
34 |
} |
35 |
|
36 |
public void open(){ |
37 |
s.open(); |
38 |
// s.setVisible(false);
|
39 |
} |
40 |
|
41 |
public void close(){ |
42 |
s.dispose(); |
43 |
} |
44 |
} |