Jbutton to select and display an array item
Hey guys I have a real simple program I want to make.
One button that when开发者_高级运维 clicked will display an item from an array list. What is the easiest way to achieve this?
Create a jButton. Add a Actionlistener to the button. In the actionlistener method create a loop that will go through all the data in array list and print it in screen or wherever you want.
精彩评论