i have a problem in logic of swapping in java. That is how to swap no. of buttons with mouse click i am not getting the proper code for that..,please, can anybody there 2 help me out..! thnks

Recommended Answers

All 3 Replies

not getting the proper code...
what do you have so far?

i have a problem in logic of swapping in java. That is how to swap no. of buttons with mouse click i am not getting the proper code for that..,please, can anybody there 2 help me out..! thnks

  • whats swapping in java

  • whats hidden in how to swap no. of buttons with mouse click

__________________________________________________________________

  1. use JToggleButton

  2. use CardLayout

thnks for reply sir..,i wish to tell you i took few buttons & i had applied actionlisteners to all of them..,but not getting the proper code to write in there.,how to save the previous value or text..,and count the no. of mouse click.then on second click how to save the text of that button again and then swap their positions ...,thnkxx

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.