JavaRanch » Java Forums »
Java »
Swing / AWT / SWT
| Author |
Need help on swapping JPanel that holds JTextField with new value.
|
Patty Zapata
Greenhorn
Joined: Mar 03, 2011
Posts: 7
|
|
The problem that I have is passing a bean from one class to another. I'm supposed to subtract the number of books (quantityPurchaseTextField entered by the user) with the current inventory which will show in the Inventory Details tab but unfortunately it doesn't work for me. I may need to swap the JPanel held in the Inventory class with a new one that carries the JTextField with the new value inventory. I don't know the syntax for that. Please help
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8433
|
|
Welcome to the Ranch.
In future, while posting code, please UseCodeTags . I have edited your post to incorporate them. As you can see, the code is much more readable and easier to understand.
We have a forum dedicated UI forum. I will move this thread there for you.
|
[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
|
 |
 |
|
|
subject: Need help on swapping JPanel that holds JTextField with new value.
|
|
|
|