All help will be appreciated

Hello friends
Inside a frame I am having a button and a label. On first button click I want to show the label where as on second button click I do not again on third click I want to show. like wise the label should get displayed on alternative button click.
All help will be appreciated

Just off the top of my head try using a variable that counts up ie
int buttonPush = 0;
in your actionPerformed method
if(buttonPush%2 == 0)turn on the label
else turn off the label;
buttonPush++;
This should allow for alternating because anything that is not divisble by 2 will fail

Similar Messages

Maybe you are looking for

  • Calling a view in a separate window to print it

    Hello BSP with MVC: In my main view there is a print button, which should call another view, which I want to print with standard print functionality. How is the syntax to call a view which is part of the same BSP-Application in a Separate window? Tha

  • The Answer Everyone Has Been Waiting for...

    Well, Here's the answer everyone wants!!!!!! I took my brand-spanking new unibody MacBook Pro 17" machine into Apple. This is what came back: "Ran Battery diagnostic and both the battery and AC adapter tested fine. Did a bit of digging and there are

  • Cannot import in lightroom 5

    I'm having difficulty importing "some" files into Lightroom 5.  These are files located on my computer.  They were originally in my external drive, so I copied them to the desktop. Still can't import.  The program goes through the motion, then an err

  • PMS - 360 Appraisals

    Hi, I have created a 360 degree appraisal template with Template mode as " Make Anonymous When closing with registration". However, am unable to register the participants via phap_prepare_pa as the 360 degree appraisal template name is not visible in

  • Zen Micro: changing volume through programmi

    Does anyone know a way to change the volume of a Zen Micro other than using the scroll bar? Can it be done through Creative Media Explorer or some other computer program rather than through the Zen itself? As I said in a previous post, I'm having scr