On Tue, 17 Jan 2023 05:00:47 GMT, Tejesh R <[email protected]> wrote: >> test/jdk/javax/swing/JFileChooser/CustomApproveButtonTest.java line 71: >> >>> 69: frame.setVisible(true); >>> 70: >>> 71: JButton customApproveButton = >>> fileChooser.getUI().getDefaultButton(fileChooser); >> >> we should check the changes in getApproveButtonToolTipText and >> getApproveButtonMnemonic as well. > > For Mnemonic the default value is zero, so just have to check if its zero > right......?
The default value depends on L&F, yet it looks like no L&Fs that are part of JDK set a mnemonic, which makes perfect sense for the default button in a dialog box. This may call for an additional test which ensures the custom dialog has mnemonic of the Open button. ------------- PR: https://git.openjdk.org/jdk/pull/11901
