Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Java Callback mechanism

Java Callback mechanism

Java Callback mechanism

I am developing a user interface. Basically the user will have a scroll list from which they select gender and from there i have another frame which gives the user a further option. For example in this i want first the user to select their gender and then once selected another frame to provide a list in which they can select their size. I need it to run asynchronously.

When the user selects a gender from the list, the genderSelector (class name) is going to have to supply the corresponding object. Also i need to make sure the user can only select one item from the list hence i need to use SINGLE_SELECTION.  

I need to use something like callback but my java knowledge is limited would appreciate some help.

Can someone help provide me with a simple example of this method and i could expand on it?


RE: Java Callback mechanism

What kind of interface are you thinking on, Swing, AWT?
Why do you want to have all those frames?
What do you mean with "run asynchronously"?


RE: Java Callback mechanism

I am using Swing i was maybe thinking of using the split pan when i say asynchronously i want it to run in correspondence so once the gender is selected the sizes are displayed immanently.


RE: Java Callback mechanism

I'm not sure I fully understood your question. Do you mean something like this?


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close