Skip to main content

JButton with JTable

1 reply [Last post]
Pajjo
Offline
Joined: 2006-02-17

i have a problem and i hope someone can help. I am creating a Pizzeria system and i have a JTable on the screen. When i click on a pizza button i want it to appear in the JTable. When i click on the next button i want it to appear on the second line on the Jtable and so on....

Also i have a REMOVE button and i want to know if i click on an item on the JTable and press the remove button,how will the item remove????

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
zander
Offline
Joined: 2003-06-13

Take a look at tutorial 3 which seems to do about the thing you want to do:
http://uic.sourceforge.net/tutorials/building.phtml

A quick-start (webstart) link: http://uic.sourceforge.net/tutorials/tut3.jnlp

Sources that you can use to read more:
http://uic.sourceforge.net/tutorials/t3.zip

Resources you need to compile the example:
http://prdownloads.sourceforge.net/uic/uic.tgz?download

Hope you can find what you are looking for!