From 971db5d89c80731da36b1d04fe7d797d060f2b1a Mon Sep 17 00:00:00 2001 From: Laura Radaelli Date: Thu, 8 Dec 2016 13:13:07 +0200 Subject: [PATCH] barcode window always on top --- .../panels/vote_have_been_cast/VoteHaveBeenCastController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/voting-booth-gui/src/main/java/meerkat/voting/gui/panels/vote_have_been_cast/VoteHaveBeenCastController.java b/voting-booth-gui/src/main/java/meerkat/voting/gui/panels/vote_have_been_cast/VoteHaveBeenCastController.java index 7ef85a6..ffc457e 100644 --- a/voting-booth-gui/src/main/java/meerkat/voting/gui/panels/vote_have_been_cast/VoteHaveBeenCastController.java +++ b/voting-booth-gui/src/main/java/meerkat/voting/gui/panels/vote_have_been_cast/VoteHaveBeenCastController.java @@ -63,6 +63,7 @@ public class VoteHaveBeenCastController extends TwoWayNode { BufferedImage bi = ImageIO.read(new File(filename)); frame.add(new JLabel(new ImageIcon(bi))); frame.pack(); + frame.setAlwaysOnTop(true); frame.setLocationRelativeTo(null); frame.setVisible(true); }