Skip to content

Commit c437b71

Browse files
Ralf WisserRalf Wisser
Ralf Wisser
authored and
Ralf Wisser
committed
open popup menu immediately (on mousePressed)
1 parent 5043304 commit c437b71

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

src/main/gui/net/sf/jailer/ui/databrowser/BrowserContentPane.java

+2
Original file line numberDiff line numberDiff line change
@@ -8582,8 +8582,10 @@ protected void onClick(MouseEvent e) {
85828582
if (UIUtil.plaf.isFlat) {
85838583
setBackground(UIUtil.BG_FLATSELECTED);
85848584
setBorder(new LineBorder(UIUtil.BG_FLATSELECTED, 2, true));
8585+
setOpaque(true);
85858586
on.setBackground(UIUtil.BG_FLATSELECTED);
85868587
on.setBorder(new LineBorder(UIUtil.BG_FLATSELECTED, 2, true));
8588+
on.setOpaque(true);
85878589
freezed = true;
85888590
popup.addPropertyChangeListener("visible", new PropertyChangeListener() {
85898591
@Override

src/main/gui/net/sf/jailer/ui/databrowser/whereconditioneditor/WhereConditionEditorPanel.java

+1
Original file line numberDiff line numberDiff line change
@@ -1081,6 +1081,7 @@ protected void onClick(MouseEvent evt) {
10811081
if (UIUtil.plaf.isFlat) {
10821082
setBackground(UIUtil.BG_FLATSELECTED);
10831083
setBorder(new LineBorder(UIUtil.BG_FLATSELECTED, 2, true));
1084+
setOpaque(true);
10841085
freezed = true;
10851086
popup.addPropertyChangeListener("visible", new PropertyChangeListener() {
10861087
@Override

src/main/gui/net/sf/jailer/ui/util/LightBorderSmallButton.java

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ protected boolean isReady() {
5555
return !reactImmediately || !freezed;
5656
}
5757

58+
@Override
5859
public void onMouseExited() {
5960
JComponent frame = getFrame();
6061
if (!UIUtil.plaf.isFlat) {
@@ -75,6 +76,7 @@ public void onMouseExited() {
7576
}
7677
}
7778

79+
@Override
7880
public void onMouseEntered() {
7981
if (isEnabled()) {
8082
JComponent frame = getFrame();

0 commit comments

Comments
 (0)