Re: Problem in JMenu with no JMenu Item

2002-03-19 Thread Greg Munt
What is the point of a menu with no menu items in it? - Original Message - From: Senaka Suriyaarachchi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 18, 2002 11:28 AM Subject: Problem in JMenu with no JMenu Item Hi All When I created the JBenuBar with JMenu having

Problem in JMenu with no JMenu Item

2002-03-18 Thread Senaka Suriyaarachchi
Hi All When I created the JBenuBar with JMenu having no JMenuItem it shows tiny pixel when I select the JMenu. Please explain me how can I avoid this. THank you in advance. BR Senaka /* Sample Code */ import java.awt.*; import java.awt.event.*; import javax.swing.*; public class MenuTester

Re: Problem in JMenu with no JMenu Item

2002-03-18 Thread Andrey E. Pikalev
This is a bug in the JMenu.setPopupMenuVisible() Here is the workaround: class MyMenu extends JMenu { public MyMenu(String s) { super(s); } public void setPopupMenuVisible(boolean b) { if ( getMenuComponentCount()0 ) {