<Swing Dev> Gtkjfilechooser: new release 1.4

Anthony Petrov Anthony.Petrov at Sun.COM
Mon Jan 11 15:00:41 UTC 2010


Hi Costantino,

The fix actually belongs to the AWT, so I'm CC'ing the awt-dev@ mailing 
list where we can continue to discuss the topic.

On 1/5/2010 4:59 PM Costantino Cerbo wrote:
>> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6913179, which we would
> 
> I would follow this steps:
> 1. Write some C code to call the desired functions in GtkFileChooserDialog
> 2. Generate the JNI interface
> 3. Rewriting sun.awt.X11.XFileDialogPeer to call the native code through JNI
> 
> What do you think about? Do you have further suggestions?

Generally we tend to avoid using loads of native code in the XToolkit. 
You can notice it by looking at the src/solaris/native/sun/xawt/ 
directory: there are just four files.

Would that be possible to take a similar approach with the enhanced file 
dialog fix?

Also, please have a look at 6757222 which is linked from the original 
bug report. It seems that both Swing and AWT could benefit if the 
interface to the GTK were shared among the libraries. Though that looks 
like a slightly bigger project.

--
best regards,
Anthony



More information about the swing-dev mailing list