• Post Reply Bookmark Topic Watch Topic
  • New Topic

Runtime exceptions with JBorderlessButton on BorderPanel  RSS feed

 
Its Just Me
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have added several JBorderlessButtons to a BorderPanel. I get no compiler-errors when building the application. But during runtime, I sometimes get exceptions when I move my mouse over the buttons. The exceptions don't come the first few time I "mouseOver", but after a while. The buttons no longer rollOver (change visually) when this happens. What can I do to prevent this? I have tried using the same ImageIcon for all events and I have tried using no ImageIcons at all. Both in vain.
Please help...
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JBorderlessButtons?!?! JBorderPanel?!?! What API are these from?

I don't really see any way to help unless you post some of the code that is giving you problems... especially when using non-standard classes... and post exactly what exceptions are being thrown...

It sounds like it could be a problem with the way one of the components is being rendered ( i.e. one component referring to an icon or another component that has become null ), but there's no way to tell without specific information...

-Nate
 
Its Just Me
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the excptions that are thrown are nullpointerexceptions and the API is "com.symantec.itools.swing.JBorderlessButton" and "com.symantec.itools.swing.BorderPanel". Sorry, I thought these were standard API's, but now I see they are Symantec proprietory.
I recently discovered that my problem has something to do with the ToolTipText of the buttons. Therefore I posted a new topic called "ToolTipText on JBorderlessButton generates exceptions?". More info can be found here goto related topic. I hope someone can help me on the other topic. Please continue on this related topic.
Thanks.
[ February 15, 2002: Message edited by: Allard van Hooff ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!