R
ri.johnson
Just starting out in Java and I have a few questions that someone could
help me resolve I would be most appreciative.
- Is there a way to control the case of text typed into a JTextField
and JComboBox components? If I wanted to force only uppercase is that
possible? I realize that I can convert the string afterwards but I
want the user to only see uppercase. Or is there another component
that has the same functionality that does the same thing?
- Is there a way to only allow numieric characters in a JTextField
component? In addition is there a way to apply masks for both input
and output of the data?
- Is there a way to programatically clear the check from a JCheckBox
component?
- How do you close an object by using a JButton or Check box similar to
the JFrame.EXIT_ON_CLOSE functionality?
- Is there a way to not opaque a JTextField and JComboBox text when the
fields are not enabled?
- When working with menu items how can I determine easily within the
actionPerformed meathod what menu item was selected. After calling the
getSource() method for buttons one can programmatically check for what
button was called by checking the object against the list of button
object names. Unfortunatly I have not been successfull with this on
menu items. The compiler fails and indicates that the submenu item is
not defined. Any suggestions?
Thank you in advance for your assistance on the above.
Russell
help me resolve I would be most appreciative.
- Is there a way to control the case of text typed into a JTextField
and JComboBox components? If I wanted to force only uppercase is that
possible? I realize that I can convert the string afterwards but I
want the user to only see uppercase. Or is there another component
that has the same functionality that does the same thing?
- Is there a way to only allow numieric characters in a JTextField
component? In addition is there a way to apply masks for both input
and output of the data?
- Is there a way to programatically clear the check from a JCheckBox
component?
- How do you close an object by using a JButton or Check box similar to
the JFrame.EXIT_ON_CLOSE functionality?
- Is there a way to not opaque a JTextField and JComboBox text when the
fields are not enabled?
- When working with menu items how can I determine easily within the
actionPerformed meathod what menu item was selected. After calling the
getSource() method for buttons one can programmatically check for what
button was called by checking the object against the list of button
object names. Unfortunatly I have not been successfull with this on
menu items. The compiler fails and indicates that the submenu item is
not defined. Any suggestions?
Thank you in advance for your assistance on the above.
Russell