i am new here.im working on a program for using in our cafe.i cant solve a problem.
i have a mysql database and i getting products information from there.price,product name,quantity etc.
i want make a jframe form and i want add buttons for products.when i click a button of product,i will add product to customers bill.
i have to make button for mysql data.
i have these products.
i have to add button for each product.
and products can be change,and button will change with that.
I don't want to think about your design. If I do that then too many other questions will arise. Let's get the basic programming straightened out first.
So you don't know how to create a JButton and add it to your JFrame? Instead of getting tiny bits of knowledge by asking that sort of question on a forum, why don't you go through Oracle's tutorial? It contains examples of how to do that and explanations of how things work. Here's the link: How to Use Buttons, Check Boxes, and Radio Buttons. If you still have questions after going through that, then absolutely come back here and ask them.