File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -83,14 +83,17 @@ public void mouseClicked(MouseEvent e) {
8383 public void mouseClicked (MouseEvent e ) {
8484 String matchResult = getTestRegexMatch ();
8585 JPopupMenu popup = new JPopupMenu ();
86+ JPanel menuPanel = new JPanel ();
8687 JLabel contents = new JLabel ();
8788 if (matchResult == null ) {
8889 contents .setText ("Did not find a match for the defined start and end regex!" );
8990 } else {
9091 contents .setText ("Found match: " + matchResult );
9192 }
92- contents .setBorder (BorderFactory .createEmptyBorder (4 ,4 ,4 ,4 ));
93- popup .add (contents );
93+ contents .setBorder (BorderFactory .createEmptyBorder (0 ,4 ,0 ,4 ));
94+ menuPanel .setOpaque (false );
95+ menuPanel .add (contents );
96+ popup .add (menuPanel );
9497 popup .show (testRegexButton , 0 , testRegexButton .getHeight ());
9598 }
9699 });
You can’t perform that action at this time.
0 commit comments