- 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/CreateShortcutPrompt.java
r11612 r12119 56 56 setModal(true); 57 57 setSize(DIALOG_SIZE); 58 Dictionary.setText(this, "MappingPrompt.Title");59 58 setTitle(Dictionary.get("MappingPrompt.Title")); 59 60 60 // Creation 61 61 JPanel content_pane = (JPanel) getContentPane(); … … 64 64 JPanel fields_pane = new JPanel(); 65 65 66 JLabel file_label = new JLabel(); 67 Dictionary.setText(file_label, "MappingPrompt.File"); 66 JLabel file_label = new JLabel(Dictionary.get("MappingPrompt.File")); 68 67 JLabel file_field = new JLabel(file.getAbsolutePath()); 69 68 70 JLabel name_label = new JLabel(); 71 Dictionary.setText(name_label, "MappingPrompt.Name"); 69 JLabel name_label = new JLabel(Dictionary.get("MappingPrompt.Name")); 72 70 name_field = new JTextField(file.getName()); 73 71 74 72 JPanel button_pane = new JPanel(); 75 ok_button = new GLIButton( );73 ok_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("General.OK_Tooltip")); 76 74 ok_button.setEnabled(name_field.getText().length() > 0); 77 ok_button.setMnemonic(KeyEvent.VK_O); 78 Dictionary.setBoth(ok_button, "General.OK", "General.OK_Tooltip"); 79 cancel_button = new GLIButton(); 80 cancel_button.setMnemonic(KeyEvent.VK_C); 81 Dictionary.setBoth(cancel_button, "General.Cancel", "General.Cancel_Tooltip"); 82 75 cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Cancel_Tooltip")); 76 83 77 // Connection 84 78 cancel_button.addActionListener(this);
Note:
See TracChangeset
for help on using the changeset viewer.