Homework 4 Task 3 Eclipse Debugger - lauri0/POS GitHub Wiki

1.Name at least one method, where a breakpoint will stop the application execution right after pressing the "New purchase" button.
Adding a breakpoint to the method newPurchaseButtonClicked() will stop the application execution right after pressing the "New purchase" button.

2. Name a method, where a breakpoint will stop the application execution right after pressing the "Confirm" button (during confirming the order).
Adding a breakpoint to the method submitPurchaseButtonClicked() will stop the application execution right after pressing the "Confirm" button.

3.List the subclasses of the java.awt.Container class, which regularly call doLayout() method (if you randomly use the application, Hint: put the breakpoint to the method Container#doLayout())
JTextField, JTabbedPanel, JPanel, PurchaseItemPanel, JScrollPanel, JViewPort, JRootPane, JLayeredPane, JTabbedPane.

4.How many times the constructor new String() (without argument) in the class java.lang.String is used after pressing the New purchase button? Zero.

5.How many times the constructor new JPanel() (without argument) in the class javax.swing.JPanel is used after pressing the New purchase button? Zero.