- Timestamp:
- 2005-03-09T14:14:50+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/ModalProgressPopup.java
r9096 r9340 41 41 42 42 private String message = null; 43 private JProgressBar progress_bar = null;44 43 45 44 46 /** Constructor */47 45 public ModalProgressPopup(String title, String message) 48 46 { 49 47 super(Gatherer.g_man, title); 50 51 48 this.message = message; 52 49 } 53 50 54 51 55 /** Method to display the popup on screen. 56 */ 52 /** Method to close the popup. */ 53 public void close() 54 { 55 setVisible(false); 56 Gatherer.g_man.wait(false); 57 } 58 59 60 /** Method to display the popup on screen. */ 57 61 public void display() 58 62 { 59 63 setDefaultCloseOperation(DO_NOTHING_ON_CLOSE); 60 setModal(true);61 64 setSize(SIZE); 62 65 63 66 // Create 64 progress_bar = new JProgressBar();67 JProgressBar progress_bar = new JProgressBar(); 65 68 progress_bar.setIndeterminate(true); 66 69 … … 75 78 setLocation((screen_size.width - SIZE.width) / 2, (screen_size.height - SIZE.height) / 2); 76 79 setVisible(true); 80 81 // Lock the rest of the GLI interface until close() is called 82 Gatherer.g_man.wait(true); 77 83 } 78 84 }
Note:
See TracChangeset
for help on using the changeset viewer.