problem to write two constructor in a file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vikassawant
    New Member
    • Mar 2009
    • 27

    problem to write two constructor in a file

    hi,
    I create one file with only one constructor which contain one Frame with GUI.When I create object of that file for getting some values in another file then that GUI is executed.
    I want to divide this in two constructor due to which when I called another constructor for getting values,GUI is not displayed.

    Please help me, I am unable to make this change.

    Thanks,
    Vikas Sawant.
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by vikassawant
    hi,
    I create one file with only one constructor which contain one Frame with GUI.When I create object of that file for getting some values in another file then that GUI is executed.
    I want to divide this in two constructor due to which when I called another constructor for getting values,GUI is not displayed.
    Please show us the relevant code; and the relevant code only. A class can have as many constructors as you want as long as the types of the parameters are different; the names of the parameters don't matter.

    kind regards,

    Jos

    Comment

    Working...