Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help on swapping JPanel that holds JTextField with new value.  RSS feed

 
Patty Zapata
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!