Skip to content
Advertisement

Tag: jbutton

Java JFrame button organization

How do i create a jframe that organizes the text box and jbuttons, with the textbox on top and a 3 by 4 grid layout of buttons 1-10? This is what I have so far: But that’s where I’m stuck. Okay I should note that I need a for loop to populate 3 by 4 gridlayout. But I don’t know

Adding Buttons inside cell of JTable along with data?

Is it possible to add buttons inside the JTable cell along with data? What I am trying to do is to create a table with columns which display data(number) from the database, and two buttons to increase/decrease the number inside the same cell. |ID | Quantity| |06| 2 [+][-] | it would be something like above with [+][-] being buttons.

Advertisement