[Freecol-developers] Multiple windows

2013-03-16 Thread Michael Vehrs
There have been several complaints about the ability to open some panels or dialogs several times. In some cases, it makes sense, I think. In others, not so much. In the distant past, FreeCol had only a single instance of most panels, all of which were created when the game started, as far as I

Re: [Freecol-developers] Multiple windows

2013-03-16 Thread Paolo Bizzarri
Hi everyone, I would not go along the singleton road. I think a better idea would be to have a Panel/Dialog Factory, that is able to create Panels and Dialogs, keep track of them and enforce - if necessary - a single instance. Regards. PaoloB On Sat, Mar 16, 2013 at 8:07 AM, Michael Vehrs wrot

Re: [Freecol-developers] Multiple windows

2013-03-16 Thread Michael T. Pope
On Sat, 16 Mar 2013 08:07:12 AM Michael Vehrs wrote: > There have been several complaints about the ability to open some panels > or dialogs several times. Like BR#2141. > In some cases, it makes sense, I think. In > others, not so much. In the distant past, FreeCol had only a single > instance o

Re: [Freecol-developers] Multiple windows

2013-03-16 Thread Michael Vehrs
On 16.03.2013 10:08, Michael T. Pope wrote: > On Sat, 16 Mar 2013 08:07:12 AM Michael Vehrs wrote: > >> There have been several complaints about the ability to open some panels >> or dialogs several times. >> > Like BR#2141. > > >> In some cases, it makes sense, I think. In >> others,