i want to create a button called warehouse in a window called main such that when i click on it opens a new panel that has the following buttons addItem,check quantity. here is a sample of my main class. please help!
public class InventorySoftware
public static void main(Stringargs)
JFrame main= new JFrame();
JPanel p1= new JPanel();
JButton pos = new JButton("POINT OF SALE");
JButton warhse = new JButton("WAREHOUSE");
main.setTitle("INVENTORY CONTROL SYSTEM");