java - multiple Jpanel with same functionality buttons -


i want create jframe multiple panel each panel displaying information database (say product_id , description ) , each frame have button(add cart) add information panel cart table in database how implement this?

i try things using jtable display such data, each column displaying database field. i'd add column, boolean column displays check box, , assess state of column when needing decide add cart.


edit ask:

how know how quantity of product selected,

then add quantity field well, perhaps 1 uses jspinner editor.

and thinking add image of product can in jtables

absolutely. knows how display imageicons instance. please have @ my answer question example.


Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -

PHPMotion implementation - URL based videos (Hosted on separate location) -