Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

JPopupMenu disappears on mouseEntered

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I've a swing structure : JPopupMenu contains JPanel which contains JCheckBoxMenuItem. The problem is, I cannot use it because JPopupMenu disappears when mouse enters to any MenuItems.
I added JCheckBoxMenuItem to JPanel(because to make it scrollable, as there are large number of menu-items) and then JPanel to JPopupMenu.
I'm using NetBeans IDE.
Here is the code, done so far.



Please help. Thanks in advance.
 
Rancher
Posts: 3073
24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Quit cross posting: http://www.java-forums.org/awt-swing/85954-jpopupmenu-disappears-mouseentered-how-prevent.html

You got help yesterday when you posted the same question. You have not listened or replied to any of the advice you got yesterday.
 
Tempex Palton
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Rob Camick: Actually I did not get any solution from that post, and also I dont know what's wrong with the code. That's why I posted it here. Could you please help me out ?
 
Rob Camick
Rancher
Posts: 3073
24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I did not get any solution from that post,



You were asked to post a SSCCE. You didn't so we can't help.
 
Tempex Palton
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a single piece of code of my entire project. I'm stuck in this portion. That's why I've posted this portion. Please check this code & inform what's wrong with this.
 
Rob Camick
Rancher
Posts: 3073
24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Please check this code & inform what's wrong with this



What is wrong is that the code you posted is not in the form of a SSCCE. I can't test your code. Read the link!!!

Also, read the Swing tutorial How to Use Menus for working examples.
 
Tempex Palton
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Rob Camick : I've posted SSCCE. Could you please test it ?
 
Marshal
Posts: 67289
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post the SSCCE here on CodeRanch.
 
Tempex Palton
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Bear Bibeault : I've already posted(edited) the code above. Please check it.
 
The harder you work, the luckier you get. This tiny ad brings luck - just not good luck or bad luck.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!