I'm new to Java (I know VB.Net) and I'm wondering if Java will accept a swing control as a parameter in a method. I have a method in a separate class that does some calculations and I'd like to pass a textarea control to it in order to populate it. I tried doing the following but it didn't seem to recognize the type:
public int AmortTable(float mortPymt_, JTextArea txtArea)
{
}
is this a valid method?
public int AmortTable(float mortPymt_, JTextArea txtArea)
{
}
is this a valid method?