Skip to main content

How can i write methods for components?

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
akar2007
Offline
Joined: 2013-04-07

Hi i'm beginner in Java

I want to use components variables as parameter for function

like :

public void mycomponent function(Comboboxtype myComboboxVar)
{
  myComboboxVar.addItem(myobject);
}

how can i write methods for components?

Thank you..