Automatic Capital letter

Automatic Capital letter

Morning sir,

Can you help me, i want to make a automatic capital letter. I have a jTextfield1, if i type aaaaaa ,it will be automatic AAAAAA. can you help me give a source code. Thank you very much.

regards, Hendra

View Answers

July 9, 2012 at 4:00 PM

Here is an example that change the case of characters to uppercase as the user enters any character.

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;

class TextFieldExample extends JFrame{
JTextField text;
JLabel label;
JPanel p;
TextFieldExample(){
text=new JTextField(15);
label=new JLabel("Enter String:");
p=new JPanel();
p.add(label);
p.add(text);
text.addKeyListener(new KeyAdapter(){
            public void keyReleased(KeyEvent e){
                String st=text.getText();
                text.setText(st.toUpperCase());
            }
});
add(p);
setVisible(true);
setSize(300,100);
}
public static void main(String[]args){
TextFieldExample v=new TextFieldExample();
}
}

July 10, 2012 at 11:49 AM

ok thank you sir









Related Tutorials/Questions & Answers:
Automatic Capital letter
Automatic Capital letter  Morning sir, Can you help me, i want to make a automatic capital letter. I have a jTextfield1, if i type aaaaaa ,it will be automatic AAAAAA. can you help me give a source code. Thank you very much
automatic code
automatic code  how to call servlet automatically
Advertisements
ModuleNotFoundError: No module named 'letter'
ModuleNotFoundError: No module named 'letter'  Hi, My Python... 'letter' How to remove the ModuleNotFoundError: No module named 'letter'... to install padas library. You can install letter python with following command
ModuleNotFoundError: No module named 'letter'
ModuleNotFoundError: No module named 'letter'  Hi, My Python... 'letter' How to remove the ModuleNotFoundError: No module named 'letter'... to install padas library. You can install letter python with following command
how to delete a letter in a word?
how to delete a letter in a word?  how to delete a letter in a word? for example if i enter= roseindia, i want to delete 's', then output= roeindia
ModuleNotFoundError: No module named 'capital-gains'
ModuleNotFoundError: No module named 'capital-gains'  Hi, My... 'capital-gains' How to remove the ModuleNotFoundError: No module named 'capital-gains' error? Thanks   Hi, In your python
frequency of a letter in a string
frequency of a letter in a string  Could someone answer in netbeans please Write a program that takes in a string and a letter from the user and displays the number of appearances of the entered letter in the entered string
Automatic key press
Automatic key press  Hi Please any one help me is it possible automatic key press in j2me
ModuleNotFoundError: No module named 'automatic'
ModuleNotFoundError: No module named 'automatic'  Hi, My Python... 'automatic' How to remove the ModuleNotFoundError: No module named 'automatic' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'automatic'
ModuleNotFoundError: No module named 'automatic'  Hi, My Python... 'automatic' How to remove the ModuleNotFoundError: No module named 'automatic' error? Thanks   Hi, In your python environment you
letter counting for the smallest word
letter counting for the smallest word  How do I program my java program to only count the letters in the smallest of two words? this is what I have and it works EXCEPT that it counts all of the letters not just the smallest word
ModuleNotFoundError: No module named 'letter-list'
ModuleNotFoundError: No module named 'letter-list'  Hi, My Python... 'letter-list' How to remove the ModuleNotFoundError: No module named 'letter-list' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'phoenix-letter'
ModuleNotFoundError: No module named 'phoenix-letter'  Hi, My... named 'phoenix-letter' How to remove the ModuleNotFoundError: No module named 'phoenix-letter' error? Thanks   Hi, In your python
POI Word document (Letter Template)
POI Word document (Letter Template)  Dear Team, i need code for generating word document(letter format). i am unable to get the code for formats, font settings, letter type settings. please help me for the same. Thanks
ModuleNotFoundError: No module named 'odoo10-addon-partner-capital'
ModuleNotFoundError: No module named 'odoo10-addon-partner-capital'  ...: No module named 'odoo10-addon-partner-capital' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-partner-capital' error
ModuleNotFoundError: No module named 'odoo10-addon-partner-capital'
ModuleNotFoundError: No module named 'odoo10-addon-partner-capital'  ...: No module named 'odoo10-addon-partner-capital' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-partner-capital' error
ModuleNotFoundError: No module named 'odoo10-addon-partner-capital'
ModuleNotFoundError: No module named 'odoo10-addon-partner-capital'  ...: No module named 'odoo10-addon-partner-capital' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-partner-capital' error
ModuleNotFoundError: No module named 'odoo12-addon-partner-capital'
ModuleNotFoundError: No module named 'odoo12-addon-partner-capital'  ...: No module named 'odoo12-addon-partner-capital' How to remove the ModuleNotFoundError: No module named 'odoo12-addon-partner-capital' error
ModuleNotFoundError: No module named 'odoo12-addon-partner-capital'
ModuleNotFoundError: No module named 'odoo12-addon-partner-capital'  ...: No module named 'odoo12-addon-partner-capital' How to remove the ModuleNotFoundError: No module named 'odoo12-addon-partner-capital' error
ModuleNotFoundError: No module named 'odoo8-addon-partner-capital'
ModuleNotFoundError: No module named 'odoo8-addon-partner-capital'  ...: No module named 'odoo8-addon-partner-capital' How to remove the ModuleNotFoundError: No module named 'odoo8-addon-partner-capital' error? Thanks
ModuleNotFoundError: No module named 'odoo8-addon-partner-capital'
ModuleNotFoundError: No module named 'odoo8-addon-partner-capital'  ...: No module named 'odoo8-addon-partner-capital' How to remove the ModuleNotFoundError: No module named 'odoo8-addon-partner-capital' error? Thanks
ModuleNotFoundError: No module named 'personal-capital-plus'
ModuleNotFoundError: No module named 'personal-capital-plus'  Hi...: No module named 'personal-capital-plus' How to remove the ModuleNotFoundError: No module named 'personal-capital-plus' error? Thanks   Hi
letter count problem - Java Beginners
letter count problem  i have a problem in my java coding to count two characters of a string. eg to count the letter "ou" in the string "How do you feel today?". The answer should be 5. but i still have error compiling
sending automatic email - JavaMail
sending automatic email  Dear sir. In my project i need to send an automatic email to the clients when their accounts are going to expire in 30 days.i am using jsp,mysql and tomcat for my project.Expire information are stored
Welcome! to the News letter archive
News Letter Archive     ... letter sent our users.  ADS_TO_REPLACE_1 Newsletters are regularly... Letter Archive Date Subject
Check for character is letter or not.
Description: This tutorial demonstrate the use of Character.isLetter() method which checks whether the value stored in char data-type variable is letter or not. Code: public class CheckLetter 
ModuleNotFoundError: No module named 'tni-automatic'
ModuleNotFoundError: No module named 'tni-automatic'  Hi, My... 'tni-automatic' How to remove the ModuleNotFoundError: No module named 'tni-automatic' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'tni-automatic'
ModuleNotFoundError: No module named 'tni-automatic'  Hi, My... 'tni-automatic' How to remove the ModuleNotFoundError: No module named 'tni-automatic' error? Thanks   Hi, In your python
Check for character is letter or digit.
Description .style1 { background-color: #FFFFCC; } Description: This tutorial demonstrate how to check a character variable value is a digit or letter using isLetterOrDigit() method. Code:ADS_TO_REPLACE_1
ModuleNotFoundError: No module named 'odoo10-addon-mail-as-letter'
ModuleNotFoundError: No module named 'odoo10-addon-mail-as-letter'  ...: No module named 'odoo10-addon-mail-as-letter' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-mail-as-letter' error? Thanks
ModuleNotFoundError: No module named 'odoo9-addon-mail-as-letter'
ModuleNotFoundError: No module named 'odoo9-addon-mail-as-letter'  Hi...: No module named 'odoo9-addon-mail-as-letter' How to remove the ModuleNotFoundError: No module named 'odoo9-addon-mail-as-letter' error? Thanks
ModuleNotFoundError: No module named 'trytond-account-dunning-letter'
ModuleNotFoundError: No module named 'trytond-account-dunning-letter' ...: No module named 'trytond-account-dunning-letter' How to remove the ModuleNotFoundError: No module named 'trytond-account-dunning-letter' error
ModuleNotFoundError: No module named 'ascii-letter-classifier'
ModuleNotFoundError: No module named 'ascii-letter-classifier'  Hi...: No module named 'ascii-letter-classifier' How to remove the ModuleNotFoundError: No module named 'ascii-letter-classifier' error? Thanks   
Automatic primary Generation in Hibernate - Hibernate
Automatic primary Generation in Hibernate   Hi, Ow primary key is generated automatically in hibernate.give me sample code.Thank u
Want Automatic No with Date - Development process
Want Automatic No with Date   Hi, I want the jsp code. i want serial no with date and month.For example "240501" date is 24 and month is 05 and serial no 01 .Thanks Prakash
Automatic Vehicle Location Advantage,Automatic Vehicle Location,Vehicle Location
Automatic Vehicle Location Advantage     ... is It? Automatic Vehicle Location or AVL is a system primarily used in tracking vehicles... passenger services, for uses such as real-time passenger information, automatic
automatic updation of a form - JSP-Servlet
automatic updation of a form   Sir, I need the code for if we fill the details in one page(form) that details should be updated automatically in another table like page.Please provide the code for this problem in JSP or java
How to delete line starting with a letter in java Regex?
How to delete line starting with a letter in java Regex?  Hi, i 'm trying to code with regex and java. i want to know how it's possible to delete lines which starts with a letter like G or g in a text. i tried
ModuleNotFoundError: No module named 'automatic-behavior-analysis'
ModuleNotFoundError: No module named 'automatic-behavior-analysis'  ...: No module named 'automatic-behavior-analysis' How to remove the ModuleNotFoundError: No module named 'automatic-behavior-analysis' error? Thanks
ModuleNotFoundError: No module named 'automatic-behavior-analysis'
ModuleNotFoundError: No module named 'automatic-behavior-analysis'  ...: No module named 'automatic-behavior-analysis' How to remove the ModuleNotFoundError: No module named 'automatic-behavior-analysis' error? Thanks
ModuleNotFoundError: No module named 'automatic-speech-recognition'
ModuleNotFoundError: No module named 'automatic-speech-recognition'  ...: No module named 'automatic-speech-recognition' How to remove the ModuleNotFoundError: No module named 'automatic-speech-recognition' error
ModuleNotFoundError: No module named 'automatic-speech-recognition'
ModuleNotFoundError: No module named 'automatic-speech-recognition'  ...: No module named 'automatic-speech-recognition' How to remove the ModuleNotFoundError: No module named 'automatic-speech-recognition' error
ModuleNotFoundError: No module named 'automatic-test-tool'
ModuleNotFoundError: No module named 'automatic-test-tool'  Hi, My... named 'automatic-test-tool' How to remove the ModuleNotFoundError: No module named 'automatic-test-tool' error? Thanks   Hi
ModuleNotFoundError: No module named 'django-automatic-links'
ModuleNotFoundError: No module named 'django-automatic-links'  Hi...: No module named 'django-automatic-links' How to remove the ModuleNotFoundError: No module named 'django-automatic-links' error? Thanks   Hi
ModuleNotFoundError: No module named 'django-automatic-links'
ModuleNotFoundError: No module named 'django-automatic-links'  Hi...: No module named 'django-automatic-links' How to remove the ModuleNotFoundError: No module named 'django-automatic-links' error? Thanks   Hi
ModuleNotFoundError: No module named 'odoo11-addon-sale-automatic-workflow'
ModuleNotFoundError: No module named 'odoo11-addon-sale-automatic-workflow...: ModuleNotFoundError: No module named 'odoo11-addon-sale-automatic-workflow' How to remove the ModuleNotFoundError: No module named 'odoo11-addon-sale-automatic
ModuleNotFoundError: No module named 'odoo11-addon-sale-automatic-workflow'
ModuleNotFoundError: No module named 'odoo11-addon-sale-automatic-workflow...: ModuleNotFoundError: No module named 'odoo11-addon-sale-automatic-workflow' How to remove the ModuleNotFoundError: No module named 'odoo11-addon-sale-automatic
ModuleNotFoundError: No module named 'odoo11-addon-sale-automatic-workflow'
ModuleNotFoundError: No module named 'odoo11-addon-sale-automatic-workflow...: ModuleNotFoundError: No module named 'odoo11-addon-sale-automatic-workflow' How to remove the ModuleNotFoundError: No module named 'odoo11-addon-sale-automatic
ModuleNotFoundError: No module named 'odoo8-addon-sale-automatic-workflow'
ModuleNotFoundError: No module named 'odoo8-addon-sale-automatic-workflow' ...: ModuleNotFoundError: No module named 'odoo8-addon-sale-automatic-workflow' How to remove the ModuleNotFoundError: No module named 'odoo8-addon-sale-automatic
ModuleNotFoundError: No module named 'odoo9-addon-sale-automatic-workflow'
ModuleNotFoundError: No module named 'odoo9-addon-sale-automatic-workflow' ...: ModuleNotFoundError: No module named 'odoo9-addon-sale-automatic-workflow' How to remove the ModuleNotFoundError: No module named 'odoo9-addon-sale-automatic

Ads