<AWT Dev> RFE: Windows awt FileDialog in JDK9

Semyon Sadetsky semyon.sadetsky at oracle.com
Wed Mar 9 07:49:28 UTC 2016


Hi Hendrik,

I'm finding this enhancement reasonable.
Not 100% sure that it may be included in the JDK9 first release since 
stabilization is the priority already.

--Semyon

On 3/7/2016 7:35 PM, Hendrik Schreiber wrote:
> Hey there,
>
> as far as I can tell, the Windows AWT FileDialog still uses the Win32 Common File Dialog (see awt_FileDialog.cpp), which has existed seemingly forever.
>
> Since we don’t support older Windows versions anymore in JDK9, wouldn’t it make sense to update the AWT FileDialog implementation to use the newer
> "Common Item Dialog” (https://msdn.microsoft.com/en-us/library/windows/desktop/bb776913(v=vs.85).aspx)?
>
> Common Item Dialog was introduced in Vista and therefore should be available on all targeted Windows versions (please correct me if I’m wrong). This would allow users to easily access a good-looking file dialog. Perhaps even fix HiDPI issues for free along the way.
>
> The current AWT FileDialog looks like it’s from the last century (I guess it is). An update would be much appreciated.
>
> I’d be happy to file a corresponding bug report, but figured it makes sense to float the idea here first.
>
> Cheers,
>
> -hendrik
>



More information about the awt-dev mailing list