This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Array Persistance in GUIs  RSS feed

 
Thomas Paul Bigbee
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings
I�m totally stumped, of course the first place you go blind is in your eyes.

I have two Classes, MainWindowGUI, which displays a list of records and
allows the user to Add, Edit, Update, Search and Delete records.

My second class AddUpdateFindGUI, is just a dumb (Modal) Dialog that allows the user to enter New Data, Change Data or enter Search Criteria.

I figured that I that could pass a (row of data array) between the two GUIs (running in the same JVM). and assign values to the elements in one GUI, kill that GUI and have the results seen in the other GUI, however, even though, I see that the addresses for the arrays are the same before and after the AddUpdateFindGUI form is called, the original array does not have its elements values changed.

Could someone be kind enough to tell me, what I am doing wrong

Thanks, Tom

 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try this
(I stripped most of the stuff not related to the dialog changing rowOfData)

enter something in the textfield of the dialog, and it should change rowOfData[0]

 
Thomas Paul Bigbee
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, so much, I will
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!