mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
focus handling fix, improved "can insert" detection
This commit is contained in:
@@ -52,6 +52,8 @@ public class ComponentWithBrowseButton<Comp extends JComponent> extends JPanel i
|
||||
public ComponentWithBrowseButton(Comp component, @Nullable ActionListener browseActionListener) {
|
||||
super(new BorderLayout(SystemInfo.isMac? 0 : 2, 0));
|
||||
myComponent = component;
|
||||
// required! otherwise JPanel will occasionally gain focus instead of the component
|
||||
setFocusable(false);
|
||||
add(myComponent, BorderLayout.CENTER);
|
||||
|
||||
myBrowseButton=new FixedSizeButton(myComponent);
|
||||
|
||||
Reference in New Issue
Block a user