Sorry, I mean Pivot ListView, not List. On Apr 27, 2010, at 8:50 AM, Greg Brown wrote:
> As I recall, the code was a bit ugly. I had originally hoped that we could > simply delegate UI events and paint() calls to the wrapped component, but it > seems like Swing components don't work well unless they are attached to an > AWT component hierarchy. That meant that we had to attach it to the > DisplayHost directly, which made it behave like a heavyweight AWT component > does in a Swing app - it basically sits on top of everything else. > > Maybe if you describe what you are trying to do, we can help identify a way > to do it with a Pivot List? > > > On Apr 27, 2010, at 8:43 AM, Rendell, Stephen / Kuehne + Nagel / Ntg CI wrote: > >> Is there some example code for this custom swing adapter knocking around? We >> are interested in the ability to include a JList in a pivot Frame (along >> with pivot components) >> >> Thanks again, >> Steve >> >> -----Original Message----- >> From: Todd Volkert >> >> I actually got a custom swing adapter working in a Pivot app of mine with >> handling of mouse and keyboard events, but the one thing I couldn't get >> around was how some Swing components paint directly to the AWT peer, thus >> bypassing Pivot's paint calls and messing with the z-order. If JEditorPane >> doesn't do this, then you may be ok. >> >> -T >> >> On Sun, Jan 17, 2010 at 2:43 PM, Greg Brown <[email protected]> wrote: >> >>> Hi LM, >>> >>> There is currently no way to include a Swing component in a Pivot app via >>> WTKX. We had experimental support for a SwingAdapter component a while back, >>> but there were some challenges in propagating mouse and keyboard input to >>> the Swing components. >>> >>> If you don't need to handle user input events, you should be able to write >>> a wrapper component that delegates paint() calls to an embedded JEditorPane. >>> Actually, you could still do this even if you do need to handle input >>> events, as long as you register the events on the wrapper component, not the >>> actual Swing component. >>> >>> Hope this helps, >>> Greg >>> >>> On Jan 17, 2010, at 2:28 PM, Luke Merolla wrote: >>> >>>> Hello everybody, >>>> >>>> I want to ask how it is possible to mix an application with Pivot and >>> Swing component. >>>> Basically what I'm trying to do is to have an application built with >>> Pivot, but I need to use JEditorPane to show some HTML pages. >>>> >>>> Is there a way to put Swing component into the wtkx file? >>>> >>>> Any other suggestion is very welcome. >>>> >>>> Thanks in advance, >>>> LM >> >> >> >> Kuehne + Nagel Ltd. ( the Company) trade solely upon the conditions of the >> British International Freight Association. Copies of these Conditions can be >> obtained on application to the Company or upon application to the Director >> General of the British International Freight Association at Redfern House, >> Browells Lane, Feltham, Middx, TW13 7EP >> >> This email and any attachments are confidential and solely for the use of >> the intended recipient. They may contain material protected by legal >> professional or other privilege. If you are not the intended recipient or >> the person responsible for delivering to the intended recipient, you are >> not authorised to and must not disclose, copy, distribute or retain this >> email or its attachments. Although this email and its attachments are >> believed to be free of any virus or other defect, it is the responsibility >> of the recipient to ensure that they are virus free and no responsibility >> is accepted by the company for any loss or damage arising from receipt or >> use thereof. >> >> Kuehne + Nagel Ltd. >> Registered in England and Wales number 01722216. >> VAT Registration Number GB 864 4409 10. >> Registered Office: 1 Union Business Park, Florence Way, Rockingham Road, >> Uxbridge, Middlesex. UB8 2LS >
