deletes the specified note @param n note to be deleted
(Note n)
| 253 | * @param n note to be deleted |
| 254 | */ |
| 255 | public static void delete(Note n) { |
| 256 | synchronized (notes) { |
| 257 | notes.remove(n); |
| 258 | n.setVisible(false); |
| 259 | n.dispose(); |
| 260 | saveState(); |
| 261 | if (notes.isEmpty()) { |
| 262 | System.exit(0); |
| 263 | } |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | public static void bringToFront(Note n) { |
| 268 | synchronized (notes) { |
no test coverage detected