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 ]
Joined: Jun 09, 2003
> 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
Joined: Jul 27, 2005
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?
Joined: Mar 22, 2005
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.