In my code I have GUI constructor which extends JDialog as below.
public OrdersGUI()
{
//code for adding SWING components to panels and JDialog.
}
Now how do I overload the constructor with parameters such as (String referenceNo) which will produce the same JDialog as the default constructor without copy/pasting everything from default constructor?