- Timestamp:
- 2006-07-10T14:57:04+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/DeleteCollectionPrompt.java
r10726 r12119 92 92 public DeleteCollectionPrompt() { 93 93 super(Gatherer.g_man); 94 close_button = new GLIButton(); 95 close_button.setMnemonic(KeyEvent.VK_C); 96 Dictionary.setBoth(close_button, "General.Close", "General.Close_Tooltip"); 97 confirmation = new JCheckBox(); 98 Dictionary.setText(confirmation, "DeleteCollectionPrompt.Confirm_Delete"); 99 details = new JTextArea(); 94 close_button = new GLIButton(Dictionary.get("General.Close"), Dictionary.get("General.Close_Tooltip")); 95 96 confirmation = new JCheckBox(Dictionary.get("DeleteCollectionPrompt.Confirm_Delete")); 97 details = new JTextArea(Dictionary.get("DeleteCollectionPrompt.No_Collection")); 100 98 details.setEditable(false); 101 Dictionary.setText(details, "DeleteCollectionPrompt.No_Collection"); 102 details_label = new JLabel(); 103 Dictionary.setText(details_label, "DeleteCollectionPrompt.Collection_Details"); 99 details_label = new JLabel(Dictionary.get("DeleteCollectionPrompt.Collection_Details")); 100 104 101 list = new JList(); 105 list_label = new JLabel( );106 Dictionary.setText(list_label, "DeleteCollectionPrompt.Collection_List");102 list_label = new JLabel(Dictionary.get("DeleteCollectionPrompt.Collection_List")); 103 107 104 list_model = new DefaultListModel(); 108 ok_button = new GLIButton(); 109 ok_button.setMnemonic(KeyEvent.VK_D); 110 Dictionary.setBoth(ok_button, "DeleteCollectionPrompt.Delete", "DeleteCollectionPrompt.Delete_Tooltip"); 105 ok_button = new GLIButton(Dictionary.get("DeleteCollectionPrompt.Delete"), Dictionary.get("DeleteCollectionPrompt.Delete_Tooltip")); 106 111 107 prompt = this; 112 108 setModal(true); 113 109 setSize(SIZE); 114 Dictionary.setText(this, "DeleteCollectionPrompt.Title");115 110 setTitle(Dictionary.get("DeleteCollectionPrompt.Title")); 111 116 112 setJMenuBar(new SimpleMenuBar("0")); // need to find an appropriate help page to open at 117 113 close_button.addActionListener(new CloseButtonListener()); … … 261 257 args[1] = collection.getMaintainer(); 262 258 args[2] = collection.getDescription(); 263 Dictionary.setText(details, "DeleteCollectionPrompt.Details", args);259 details.setText(Dictionary.get("DeleteCollectionPrompt.Details", args)); 264 260 details.setCaretPosition(0); 265 261 } 266 262 else { 267 263 confirmation.setEnabled(false); 268 Dictionary.setText(details, "DeleteCollectionPrompt.No_Collection");264 details.setText(Dictionary.get("DeleteCollectionPrompt.No_Collection")); 269 265 } 270 266 } … … 315 311 316 312 resultPrompt(true); 317 Dictionary.setText(details, "DeleteCollectionPrompt.No_Collection");313 details.setText(Dictionary.get("DeleteCollectionPrompt.No_Collection")); 318 314 confirmation.setEnabled(false); 319 315 confirmation.setSelected(false);
Note:
See TracChangeset
for help on using the changeset viewer.