8300084: AquaFileChooserUI.getDefaultButton returns null
Reviewed-by: aivanov, serb
This commit is contained in:
parent
382fe51b6d
commit
8365c6775c
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -593,6 +593,11 @@ public class AquaFileChooserUI extends FileChooserUI {
|
||||
return fApproveButton;
|
||||
}
|
||||
|
||||
@Override
|
||||
public JButton getDefaultButton(JFileChooser fc) {
|
||||
return getApproveButton(fc);
|
||||
}
|
||||
|
||||
public int getApproveButtonMnemonic(final JFileChooser fc) {
|
||||
return fSubPanel.getApproveButtonMnemonic(fc);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user