Need help on swapping JPanel that holds JTextField with new value.
Joined: Mar 03, 2011
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
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.