• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

controlling the return command

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have this minor problem of controlling the return command in my custom dialog that i created. What it does is that it takes in current values and returns values. Sort of an update window.

when using it in the main frame i call its showdialog, passing some variables and receving an arraylist called "rec".

The problem is that an empty array is returned as soon as the dialog box runs....therfore no updating takes place....So i thought that maybe if i put the arraylist intialisation (in the dialog) under my contol, i could control when the dialog would send back the arraylist. So i put it under the OK button. As soon as the user clicks the okay button, the new values should be returned. But that does not happen........

any idea how i could bring it under my control...

note: i have tried two actionlisteners for the okbutton
mthed 1 uses an inner class
methd 2 uses actionlistener implementation

Either way it didnt work.
 
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Post the code
 
reply
    Bookmark Topic Watch Topic
  • New Topic