A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
Setting to the default element
Joined: Oct 18, 2004
Nov 18, 2004 02:19:00
If the user enters a emty
then set the combo selection to the string that was previously selected.
Please give a way out of this problem.
Joined: May 18, 2004
Nov 18, 2004 05:31:00
the length of the string or see if the string is all space characters, or use trim to remove white space and then test the length. If the string is in one of these conditions, then don't add it to the box.
I agree. Here's the link:
subject: Setting to the default element
Default value in dropdown list after submitting page
how to make multiple combo boxes with same data
Column value is getting reset to zero automatically in Jtable
How to connect multiple combo boxes?
JComboBox - Set the selection programatically at runtime
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015