java - How can I write the contents of AbstrDoubleList into TextArea? -


i have little problem when trying write contents of abstrdoublelist textarea.

i have class autopujcovna.class

public class autopujcovna implements iautopujcovna {     public abstrdoublelist<iauto> listvypujcenychaut = new abstrdoublelist();    public abstrdoublelist<ipobocka> listpobocek = new abstrdoublelist();     @override    public string tostring() {        return "seznam poboček: \n " + this.listpobocek; }  @override public void vlozpobocku(ipobocka paramipobocka, enumpozice paramenumpozice)    {     switch (paramenumpozice) {         case prvni:             listpobocek.vlozprvni(paramipobocka);             break;         case predchudce:             listpobocek.vlozpredchudce(paramipobocka);             break;         case naslednik:             listpobocek.vloznaslednika(paramipobocka);             break;         case posledni:             listpobocek.vlozposledni(paramipobocka);             break;      } } . . . 

than have gui button , button calling

autopujcovna.vlozpobocku("enterprise", enumpozice.prvni); textarea.append(autopujcovna.tostring()); 

but when trying read doublelist

"pobočky: classes.autopujcovna@10d47c7" 

don't know can mistake?

update:

when trying add new pobocka combobox jcombobox3.additem(autopujcovna.zpristupnipobocku(enumpozice.aktualni).tostring()); working , see need, still can't see in textarea

you have override tostring() in abstrdoublelist , ipobocka

public abstrdoublelist<ipobocka> listpobocek = new abstrdoublelist(); 

or define getter/setter , access using specifically.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -