Changeset 69
- Timestamp:
- 05/20/07 01:45:30 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/org/lastpod/UI.java
r66 r69 19 19 package org.lastpod; 20 20 21 import org.lastpod.action.DeletePlayCounts; 21 22 import org.lastpod.action.ExitApplication; 22 23 import org.lastpod.action.OpenPreferencesEditor; … … 88 89 89 90 /** 91 * The action that deletes the iPod's play counts file. 92 */ 93 private final Action actionDeletePlayCounts; 94 95 /** 90 96 * The action that exits the application. 91 97 */ … … 107 113 ImageIcon iconSubmitTracks = 108 114 SwingUtils.createImageIcon(UI.class, "images/applications-system.png"); 115 ImageIcon iconDeletePlayCounts = 116 SwingUtils.createImageIcon(UI.class, "images/stock_data-delete-table.png"); 109 117 ImageIcon iconExit = SwingUtils.createImageIcon(UI.class, "images/application-exit.png"); 110 118 … … 115 123 actionSubmitTracks = new SubmitTracks(statusAnimationLabel, "Submit Tracks", 116 124 iconSubmitTracks, "Submits the selected tracks to Last.fm", KeyEvent.VK_S); 125 actionDeletePlayCounts = new DeletePlayCounts(frame, "Delete Play Counts", 126 iconDeletePlayCounts, "Removes the play counts file from the iPod.", KeyEvent.VK_D); 117 127 actionExit = new ExitApplication(frame, "Exit", iconExit, 118 128 "Exits the application. May launch iTunes", KeyEvent.VK_X); … … 166 176 167 177 editMenu.add(new JMenuItem(actionUnselectAll)); 178 editMenu.addSeparator(); 179 editMenu.add(new JMenuItem(actionDeletePlayCounts)); 168 180 169 181 menuBar.add(optionsMenu); … … 188 200 189 201 button = new JButton(actionSubmitTracks); 202 layout.setConstraints(button, c); 203 toolBar.add(button); 204 205 toolBar.addSeparator(); 206 207 button = new JButton(actionDeletePlayCounts); 190 208 layout.setConstraints(button, c); 191 209 toolBar.add(button);
