Re: Re: Web Browser

Rich Unger <[email protected]>
Newsgroups gmane.comp.java.netbeans.user-interface
Message-ID <[email protected]>
I did indeed have trouble with the menus.  I didn't work too hard to fix 
that, though, because the native component in my TC tended to go off to 
never-never land after moving the TC around do different modes, or when 
changing focus between different instances in the editor mode (and, yes, 
I played with that tab control flag).

In my ideal future world, we could make this work, have a jdic module in 
the netbeans platform, and rewrite the webbrowser module in the IDE to 
use it.

Even without the browser components, I think jdic should be part of the 
base netbeans platform.  System tray icons, OS mime type associations, 
etc.  It'd be pretty cool if the DefaultDataObject had an action to open 
the file with the associated external app.

Rich

Tim Boudreau wrote:

> 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]
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>>
>
>
> ** CRM114 Whitelisted by: mit.edu **
>
> ** ACCEPT: CRM114 Whitelisted by: mit.edu **
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.