Re: HIDDING MENUBAR AND TOOLBAR
Lutz Moeckl <[email protected]> Wed, 09 Apr 2008 10:59:26 +0200
| Newsgroups | gmane.comp.mozilla.jrex |
|---|---|
| Message-ID | <[email protected]> |
Hi,
if you are running it in a JPanel (for example), you can just add
this.remove(1);
this.remove(2);
to your code - where "this" is your panel object.
Here's what I did:
public class BrowserWindow extends JPanel{
public void init(){
try {
JRexFactory.getInstance().startEngine();
}
catch (Exception e){
System.err.println("Unable to start up JRex Engine.");
e.printStackTrace();
}
JRexWindowManager winManager=
(JRexWindowManager)JRexFactory.getInstance().getImplInstance(JRexFactory.WINDOW_MANAGER);
winManager.create(JRexWindowManager.SINGLE_WINDOW_MODE);
winManager.init(this);
int count = this.getComponentCount();
this.remove(2);
this.remove(1);
...
good luck!
Gopikumar A schrieb:
>
>
> hi,
>
> first thanks for spending ur time for reading this mail....
>
>
> i have a problem in jrex component... i.e am unable to hide the menubar
> and tool bar in the jrex browser component.
>
> can u please send me the code for hiding the menubar and toolbar.....
>
>
> its very urgent
>
>
> thanks
>
> from
>
> gopikumar,A
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> JRex mailing list
> [email protected]
> https://www.mozdev.org/mailman/listinfo/jrex