Merge lp:~tapaal-contributor/tapaal/annotation-note-close-1849639 into lp:tapaal

Proposed by Peter Haahr Taankvist
Status: Merged
Approved by: Jiri Srba
Approved revision: 1028
Merged at revision: 1029
Proposed branch: lp:~tapaal-contributor/tapaal/annotation-note-close-1849639
Merge into: lp:tapaal
Diff against target: 26 lines (+9/-0)
1 file modified
src/pipe/gui/graphicElements/AnnotationNote.java (+9/-0)
To merge this branch: bzr merge lp:~tapaal-contributor/tapaal/annotation-note-close-1849639
Reviewer Review Type Date Requested Status
Jiri Srba Approve
Review via email: mp+375558@code.launchpad.net

Commit message

Closing annotation note panel with X now works as when pressing cancel

To post a comment you must log in.
Revision history for this message
Jiri Srba (srba) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/pipe/gui/graphicElements/AnnotationNote.java'
--- src/pipe/gui/graphicElements/AnnotationNote.java 2019-09-21 07:49:26 +0000
+++ src/pipe/gui/graphicElements/AnnotationNote.java 2019-11-14 15:52:56 +0000
@@ -8,6 +8,8 @@
8import java.awt.Rectangle;8import java.awt.Rectangle;
9import java.awt.RenderingHints;9import java.awt.RenderingHints;
10import java.awt.event.MouseEvent;10import java.awt.event.MouseEvent;
11import java.awt.event.WindowAdapter;
12import java.awt.event.WindowEvent;
11import java.awt.geom.AffineTransform;13import java.awt.geom.AffineTransform;
1214
13import javax.swing.JDialog;15import javax.swing.JDialog;
@@ -154,6 +156,13 @@
154 guiDialog.add(new AnnotationPanel(this));156 guiDialog.add(new AnnotationPanel(this));
155 guiDialog.setMinimumSize(new Dimension(300, 200));157 guiDialog.setMinimumSize(new Dimension(300, 200));
156 // Make window fit contents' preferred size158 // Make window fit contents' preferred size
159 guiDialog.addWindowListener(new WindowAdapter() {
160 public void windowClosing(WindowEvent e) {
161 if(isNew()) {
162 delete();
163 }
164 }
165 });
157 guiDialog.pack();166 guiDialog.pack();
158167
159 // Move window to the middle of the screen168 // Move window to the middle of the screen

Subscribers

People subscribed via source and target branches