Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #2395

Re: Problem with JMenuBar

From "John T. Dow" <john.t..dow@THRWHITE.remove-dii-this>
Subject Re: Problem with JMenuBar
Message-ID <Xns99A45820FBF5johnjohntdowcom@216.168.3.70> (permalink)
Newsgroups comp.lang.java.gui
References <1189071002.798251.186320@d55g2000hsg.googlegroups.com>
Date 2011-04-27 15:38 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
Chanchal <chanchal.jacob@gmail.com> wrote in news:1189071002.798251.186320
@d55g2000hsg.googlegroups.com:

> Hi ALL,
>  i'm facing a problem with JMenuBar. In an application, i need to pot
> a log out JMenuItem in the JMenuBar. But it seems not possible to
> place a JMenuItem directly on the. I do not want the logout menu to
> come as a dropdown when someother JMenu is clicked. Kindly advice on
> how can i implement this
> 

I have frequently added a JMenuItem to a JMenuBar. I'm using JBuilder and 
it creates the proper listener, same as if the menu item were on a menu 
instead of on the menu bar.

The only problem I have is that the horizontal spacing between the 
jmenuitem and any adjacent jmenus is too large, so the menu item is given a 
slightly wide berth and it doesn't look quite right. Still, none of my 
clients has complained. So I do it and don't mention the spacing.

It works fine for me. I do it all the time.

John

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Problem with JMenuBar "Chanchal" <chanchal@THRWHITE.remove-dii-this> - 2011-04-27 15:38 +0000
  Re: Problem with JMenuBar "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:38 +0000
  Re: Problem with JMenuBar "John T. Dow" <john.t..dow@THRWHITE.remove-dii-this> - 2011-04-27 15:38 +0000
    Re: Problem with JMenuBar "John T. Dow" <john.t..dow@THRWHITE.remove-dii-this> - 2011-04-27 15:38 +0000

csiph-web