I am developing a desktop java application with GUI implemented through swings. I have made a JFrame and have added three buttons on it - Add, Edit, Delete.
Now I want that whenever a user clicks on any of the button, the content specific to that button appears besides those three buttons.
So how to implement this. Should I need to add a JPanel besides those three buttons and then add the content specific to the button to that JPanel.
So far, I have taken a JFrame and have added 3 buttons on it. That's it.
For Add button, I want to add some buttons and textfields to add info to the database.
For Delete button, I want to add some buttons to find records in the database based on the info entered through the user in the textfield that appears when the user clicks on the Delete button.
Similar type of content for Edit button.