This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I have added a JFileChooser to my application and changed its dialogType to SAVE_DIALOG and customized the approveButtonText property. Unfortunately, my customized approveButtonText never shows up because NetBeans positions the source code like this: fileChooser.setApproveButtonText("Save me"); fileChooser.setDialogType(javax.swing.JFileChooser.SAVE_DIALOG); If you look at the source of JFileChooser.setDialogType() you will notice the following code block: if(dialogType == OPEN_DIALOG || dialogType == SAVE_DIALOG) { setApproveButtonText(null); } This means that calling JFileChooser.setDialogType() nulls the customized approveButtonText. Therefore NetBeans must position setApproveButtonText() after setDialogType(), like this: fileChooser.setDialogType(javax.swing.JFileChooser.SAVE_DIALOG); fileChooser.setApproveButtonText("Save me");
Fixed. Modified file: http://hg.netbeans.org/jet-main/rev/a767879a5b85