• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Bolded buttons, unbolding themselves..?

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI

I have a really strange problem and I don't know where to look in my code for it so hopefully someone out there can help me

I have a GUI with some buttons on it - all of which have the text as bold.

Its an odd problem which I haven't quite managed to track down to a certain action as yet but here goes:

The buttons all appear bold when the applet is first run up. however, sometimes if you hover the mouse over a button they start unbolding themselves. To get them to go bold again I click on one button and once it has actioned something the buttons start to bold again...?

I am completely lost as to go about sorting this problem. Does anyone have any ideas what I have or haven't set to make this happen?

I initially created this GUI in netbeans and then moved it into Eclipse to change it to an applet(as netbeans only created a frame).

Hope someone can help.

Thanks in advance

below is an extract of my code, as I have quite a bit for the GUI so didn't want to post more than is needed. Is there anyway I can attach my code to a post as this would make it easier for you to see what I mean? or I can e-mail it to anyone willing to help with this



[ July 30, 2005: Message edited by: son dunckley ]
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
> Is there anyway I can attach my code to a post as this would make it easier
> for you to see what I mean?

the easiest way is to create a small sample program that demonstrates the problem.

in this case an applet with only one button.
the button does nothing except display the behaviour you mention.

quite often the solution is 'found' during the building of the sample program
 
son dunckley
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

Thanks for the response but I'm not sure what you are saying I should do?

I have a program running, which is made up of three classes - hence not wanting to attach 'ALL' my code. I just wondered if there was anyway I could zip up my full program and attach to the forum?

Or if anyone could point me in the direction of where I might look for this problem?

Thanks
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What Michael is saying is that you should create a minimal program that still exhibits the problem: just one class that shows one button. That should have a size that's suitable to post here.
 
son dunckley
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
oh OK - Thank you

Will have a go at this and if I still cannot see the problem, will post the smaller code here.

Cheers
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic