Swig, wxWizard, and Java

Hi All,

Yes, I *do* know this is the wxPython dev list, but this seems to be
the most likely place where people would know what I am talking
about. :slight_smile:

For the last couple of days, I've been working on Java bindings to
wxWindows. I have taken a clue from wxPython and also decided to use
Swig to generate the glue. I've gotten the basics to work: wxFrame,
wxPanel, wxButton, wxMenu, wxMenuBar, initialization, and event
handling.

But then I decided to tackle wxWizard et al. I am seeing some strange
behavior when creating Java subclasses of wxWizardPageSimple.
Sometimes the widgets added to the wizard page are not drawn, and
sometimes the "Next" button is incorrectly labeled as "Finish".
Anyhow, I guess my questions is, did you guys find any gotchas with
either Swig or wxWindows on any of the wizard classes? I may need to
consult wx-dev, but at the moment I suspect this is a problem wrapping
wx with Swig.

Please note that I am new to both Swig and wxWindows.

Thanks,

-Dave

Dave Dribin wrote:

But then I decided to tackle wxWizard et al. I am seeing some strange
behavior when creating Java subclasses of wxWizardPageSimple.
Sometimes the widgets added to the wizard page are not drawn, and
sometimes the "Next" button is incorrectly labeled as "Finish".
Anyhow, I guess my questions is, did you guys find any gotchas with
either Swig or wxWindows on any of the wizard classes?

No, but you do need to provide a way for calls to virtual C++ methods to be reflected to methods in the derived Java class, if they are present in the derived class.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!