Re: [api-dev] Modal Swing JDialog

2007-09-25 Thread Mathias Bauer
Andreas Schneider wrote: > Thanks Mathias for that hint. It's at least a good point to start from :-) s/hint/hack :-) Ciao, Mathias -- Mathias Bauer (mba) - Project Lead OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't reply to "[EMAIL PROTECTE

Re: [api-dev] Modal Swing JDialog

2007-09-24 Thread Andreas Schneider
Christian Andersson wrote: I'm interested a bit in how to do this, are there any examples on the net you can point to? I just implemented it that way: public void showModal(javax.swing.JDialog dialog) { try { Object tempDialogModel = multiComponentFactory.createInsta

Re: [api-dev] Modal Swing JDialog

2007-09-24 Thread Christian Andersson
Mathias Bauer skrev: > Andreas Schneider wrote: > >> So I have two questions: does OOo somehow provide a java.awt.Frame I can >> use as parent? If not: is there a (prefered) way I can manually lock OOo >> and implement its main loop? That way I could lock it, show the JDialog >> modal in its

Re: [api-dev] Modal Swing JDialog

2007-09-24 Thread Mathias Bauer
Andreas Schneider wrote: > So I have two questions: does OOo somehow provide a java.awt.Frame I can > use as parent? If not: is there a (prefered) way I can manually lock OOo > and implement its main loop? That way I could lock it, show the JDialog > modal in its own thread and while the thread

Re: [api-dev] Modal Swing JDialog

2007-09-23 Thread Ariel Constenla-Haile
Andreas Schneider escribió: Hi, my extension displays a dialog when certain Calc cells are double-clicked (which now works, thanks to the great support here :)). There should be no other interaction with the spreadsheet during this dialog is shown, so a modal JDialog comes to mind. That would

Re: [api-dev] Modal Swing JDialog

2007-09-22 Thread Andreas Schneider
Wouter van Reeven wrote: Hi Andreas, I don't have an answer to your questions. But here is another approach that may work for you. The Java API contains a class called javax.swing.PopupFactory which allows you to register and show JPanels as popups. Basically you request an instance of the curre

Re: [api-dev] Modal Swing JDialog

2007-09-22 Thread Wouter van Reeven
Hi Andreas, On Sat, Sep 22, 2007 at 10:12:50PM +0200, Andreas Schneider wrote: > my extension displays a dialog when certain Calc cells are > double-clicked (which now works, thanks to the great support here :)). > There should be no other interaction with the spreadsheet during this > dialog i

[api-dev] Modal Swing JDialog

2007-09-22 Thread Andreas Schneider
Hi, my extension displays a dialog when certain Calc cells are double-clicked (which now works, thanks to the great support here :)). There should be no other interaction with the spreadsheet during this dialog is shown, so a modal JDialog comes to mind. That would require me to provide a jav