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.

Bug 129745

Summary: Print to HTML dialog uses a wrong type of OpenDialog for "Browse..."
Product: editor Reporter: Petr Dvorak <joshis>
Component: Painting & PrintingAssignee: Max Sauer <msauer>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Attachments: MacOS open dialog does not contain a field to type the filename

Description Petr Dvorak 2008-03-11 10:39:18 UTC
Product Version: NetBeans IDE Dev (Build 200803110005)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.2 running on i386; MacCentralEurope; cs_CZ (nb)

I would not think about this either, as I am used to the dialogs for Windows, but there is a funny problem on MacOS.

Go to File > Print to HTML. A dialog appears. There is also a button "Browse..." - click it. Now, go to some path and... ooops... there is a problem - you 
cannot leave the dialog with "OK result" until you choose an EXISTING file. You cannot specify a new filename manually, so you cannot use the dialog to 
specify a new file destination. Your only option is to either overwrite some file, or click Cancel...

Possible fix: I would use SaveFileDialog instead of OpenFileDialog.

This problem do not arise under Ubuntu or Windows as there is a field for typing filename...
Comment 1 Petr Dvorak 2008-03-11 10:40:35 UTC
Created attachment 58128 [details]
MacOS open dialog does not contain a field to type the filename
Comment 2 Max Sauer 2008-03-11 14:42:13 UTC
Fixed.
---
http://hg.netbeans.org/main/rev/5f7674338134

Comment 3 Petr Dvorak 2008-04-14 11:53:50 UTC
Verified: 20080411