Re: Web Browser
Tim Boudreau <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.user-interface |
|---|---|
| Message-ID | <[email protected]> |
Patrick Nee wrote: > I currently have a JDIC web browser working in a Top Component parked in the > Explorer section of the windows. All appears well until opening a menu - the > drop down appears behind web browser instead of covering it. > > Any suggestions? This appears to be the problem (or a manifestation of it) > that Rich was referring to. For popup menus, there's JPopupMenu.setDefaultLightWeightPopupEnabled(false) - that should fix popups and submenus. You could probably fix it globally, either by hacking one field of javax.swing.PopupFactory by reflection (I once had to do this for a certain version of Apple's JDK with NetBeans), or by replacing the global instance with one that only produces heavyweight popups - see PopupFactory.setSharedInstance(). -Tim > > Patrick > patricknee@alum. Mit. edu > > -----Original Message----- > From: news [mailto:[email protected]] On Behalf Of Tim Boudreau > Sent: Saturday, February 19, 2005 9:10 AM > To: [email protected] > Subject: [nbui] Re: Web Browser > > Does it really not work to toss an AWT component into the winsys? I > think the ECSI Minex guys were doing that with their Java3D stuff for a > number of years now. Might have some problems with overpainting, but if > you run with the flag that makes the tab control actually remove > everything but the showing tab from the AWT hierarchy, it ought to solve > most of the problems; probably also necessary to force heavyweight > popups globally, but that's doable with either a line switch or hacking > javax.swing.PopupFactory by reflection... > > -Tim > > Rich Unger wrote: > >>Not for free, I think. There are commercial packages, however, like >>icebrowser. >>Rich >> >>Patrick Nee wrote: >> >> >>>Hello everyone, >>> >>> >>> >>>I am evaluating the possibility of building an application on top of >>>NetBeans IDE. >>> >>> >>>I need to create a window pane in the "explorer" or "properties" position >>>which includes a web browser, preferably one which will run flash >>>animations. As such, I have evaluated JDIC as it is used in the >>>Feedreader >>>example created by Rich Unger. However, when Feedreader uses JDIC to >>>open a >>>native browser such as IE, it doesn't use a TopComponent subclass. Rich's >>>in-line documentation seems to indicate it isn't possible because >>>TopComponent is Swing and JDIC is AWT based. >>> >>> >>> >>>Is Rich's evaluation correct? No possibility of using JDIC in an embedded >>>panel in NetBeans? >>> >>> >>> >>>Any other methods for getting a web browser in a panel, preferably a >>>fully >>>functional browser which will run Flash? >>> >>> >>> >>>Thanks, >>> >>> >>> >>>Patrick Nee >>> >>>[email protected] >>> >>> >>> >>> >> >> > > > >