Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

calling custom dialog  RSS feed

 
Raj kalaria
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have one frame and it contains labels and text boxes to create a new user
one of my label field is to select a group.I want to provide a functionality where the user will click on button (say search next to the label) and a new dialog will
open and user can search on his criteria and then select the group. Once he selects the group and close the dialog, i want text box in the calling component(frame) to be filled up with the selected value.

can some one help me out and provide some example code
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it really sounds like you'd be better off using a comboBox
instead of a 'group search' dialog (to return a single line
of text for your label).

default behavior is to go to the letter typed e.g type J and
it will go to the first group name starting with J.

you can build in additional functionality to then go the the 2nd letter etc
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!