Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPopupMenu comes up really small over JTable

 
laila NiHai
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have a JTable and is bringing up a JPopupMenu upon right-click. However, the popupmenu comes up extremely small... so small that the menuitems do not show up, but they are there... each item gets highlighted as i mouse over and the action event does get caught?

i'm using GridBagLayout for the entire GUI. wondering if the layout has anything to do with it...

does anyone know if this is a known issue and are there any work around?
 
Rob Camick
Ranch Hand
Posts: 2675
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
does anyone know if this is a known issue and are there any work around?


I would guess the issue is with your code. The solution would be to fix your code.

If you need more help then post a SSCCE that demonstrates the problem.
 
Darryl Burke
Bartender
Posts: 5149
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem.

Don't forget to use the code tags so that your code retains its formatting.

edit Did I really have this page open so long? Hi Rob!
 
laila NiHai
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the tip. The nature of my work does not allow me to easily copy/paste code...that's why i tried to explain the problem as best as i could.

Anyway, I fixed this, some how Netbeans recognized and displayed properly after I rebuild the project. weird...


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic