Skip to content

Commit 8365c67

Browse files
author
Tejesh R
committed
8300084: AquaFileChooserUI.getDefaultButton returns null
Reviewed-by: aivanov, serb
1 parent 382fe51 commit 8365c67

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/java.desktop/macosx/classes/com/apple/laf/AquaFileChooserUI.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -593,6 +593,11 @@ protected JButton getApproveButton(final JFileChooser fc) {
593593
return fApproveButton;
594594
}
595595

596+
@Override
597+
public JButton getDefaultButton(JFileChooser fc) {
598+
return getApproveButton(fc);
599+
}
600+
596601
public int getApproveButtonMnemonic(final JFileChooser fc) {
597602
return fSubPanel.getApproveButtonMnemonic(fc);
598603
}

0 commit comments

Comments
 (0)