Changeset 4460
- Timestamp:
- 2003-06-03T14:06:50+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/msm/MSMPrompt.java
r4432 r4460 763 763 // Display 764 764 dialog.setLocation((screen_size.width - SELECT_ELEMENT_SIZE.width) / 2, (screen_size.height - SELECT_ELEMENT_SIZE.height) / 2); 765 System.err.println("Showing selection dialog. Block..."); 765 766 dialog.setVisible(true); 767 System.err.println("and release. Returning value."); 766 768 // Deallocate everything because JDK1.4 won't. 767 769 // Why, oh why did I do this? … … 872 874 // Display 873 875 dialog.setLocation((screen_size.width - SELECT_SET_SIZE.width) / 2, (screen_size.height - SELECT_SET_SIZE.height) / 2); 876 System.err.println("Showing selection dialog. Block..."); 874 877 dialog.setVisible(true); 878 System.err.println("and release. Returning value."); 875 879 Object value = set.getSelectedItem(); 876 880 if(value instanceof MetadataSet) { … … 919 923 n = null; 920 924 element = null; 921 dialog. dispose();925 dialog.setVisible(false); 922 926 } 923 927 } … … 958 962 public void actionPerformed(ActionEvent event) { 959 963 dialog_cancelled = true; 960 dialog. dispose();964 dialog.setVisible(false); 961 965 } 962 966 } … … 969 973 } 970 974 public void actionPerformed(ActionEvent event) { 971 dialog. dispose();975 dialog.setVisible(false); 972 976 } 973 977 } … … 984 988 // Return the currently selected element 985 989 result = (ElementWrapper)element.getSelectedItem(); 986 dialog. dispose();990 dialog.setVisible(false); 987 991 } 988 992 }
Note:
See TracChangeset
for help on using the changeset viewer.