Help!! I can't find how to get the enter key......

Hi...
I am information technology student. I am now first year second semester
I need help because I don't know how to catch the enter key in JTextField.
I want to submit the form when user press the enter key in JTextField....
I only can find KeyEvent.VK_ENTER ( actually that is not what I want)
Another thing is
"How to add a JMenuItem into a JMenuItem...."
I want to do like this.... When you click the "Tools bar" in View item.. another menu comes out...???"
He he... I hope you all can understand what I mean.. because I know my english is not so good... because I am from Myanmar.
for(int i=0;i<1;i--)
System.out.println("Thanks A lot");
Thu Rein Nyo...
You also can reply by e-mail.. thanks

Hi...
I am information technology student. I am now first
year second semester
I need help because I don't know how to catch the
enter key in JTextField.it can be done easily by adding an actionListener to the JTextField. So when u enter something in the field and press enter the event will be caught and the code which u write in that will get executed.
Eg:
JTextField.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Your code comes here.
Another thing is
"How to add a JMenuItem into a JMenuItem...."
I want to do like this.... When you click the "Tools
bar" in View item.. another menu comes out...???"I think you are gettin confused with JMenu and JMenuItem. What u need to do is create a JMenu add another JMenu to it and add JMenuItems to it.. and ur problem will be solved.
He he... I hope you all can understand what I mean..
because I know my english is not so good... because I
am from Myanmar.
for(int i=0;i<1;i--)
System.out.println("Thanks A lot");
Thu Rein Nyo...
You also can reply by e-mail.. thanks

Similar Messages

  • I can not find how to use the basic Mac air keyboard. where do i find it or do a tutorial board

    I am new to the Mac worls and hardly used a PC . I used a Blackberry. How can i find how to use the macair key board. I can not get the plus sign or the brackets on my leyboard to work. The option key is called the atl key.. There is no easy guide for how to use all the Buttons on the Key board. where do i find them

    Hello Sanjit_Das:
    sorry for my english again !.
    My purpose is almost the same as this:
    https://forums.adobe.com/message/6137964#6137964#6137964
    But I do not know which  path must specify when the video is uploaded to assets:
    Sorry to ask something so absurd.
    I tried putting all
    <source src = "assets / Myvideo.mp4" />
    not working
    <source src = "C: \ Users \ Angel \ Downloads \ NEW \ pruebamusevideo \ assets/Myvideo.mp4">
    not work.
    etc
    Presenting want to work from any computer, DVD, memory stick ...
    I'm going crazy.
    I know it's something about the route.
    From muse Vimeo links to work, but when I export them to HTML not working. I guess it's a problem related to the same.
    Thank you very much again.

  • After upgrading to the latest Firefox, my icon disappeared from my start up screen and I can't find how to get it back

    After upgrading to the latest Firefox, my icon disappeared from my start up screen and I can't find how to get it back.

    Go to START then ALL PROGRAMS then find MOZILLA FIREFOX, right click on it, select SEND TO, and select DESKTOP(CREATE SHORTCUT).
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • 140063685933 this is the receipt no Apart of two purchase there all rest I never received was a problem with the system they couldn't be download and naw you are charging me  Haw unprofessional is that and more than an hour can't find how to get to custom

    140063685933 this is the receipt no
    Apart of two purchase there all rest I never received was a problem with the system they couldn't be download and naw you are charging me
    Haw unprofessional is that and more than an hour can't find how to get to customer service to correct the mistake
    Just so fed up will never ever pitches anything waiting of time and money  

    Apple is not here. Apple does not answer questions here. There are only volunteer users here.
    The charge to your credit card takes place before you download the app.
    If you are having problems downloading the apps that you bought, you will need to explain the issue in detail if you wish someone to help you.

  • I have read the help info, but I can't find how to change the default email address, to the one that is my adobe I'd?

    I have read the help info, but I can't find how to change the default email address, to the one that is my adobe I'd?

    Adobe Reader for iOS doesn't set the default email address when you email a PDF.
    It's found in the Settings app:
    Settings > Mail, Contacts, Calendars > Mail > Default Account

  • I'm trying to transfer data (docs, emails) from G4 iMac running os 10.3.9 to brand new iMac on 10.8.1  I'm stuck, any help greatly appreciated.  (Ethernet or wifi networking are both options if I can figure out how to get the machines to communicate.)

    I'm trying to transfer data (docs, emails) from an old G4 iMac running OS 10.3.9 to brand new iMac on 10.8.1  I'm stuck, any help greatly appreciated.  (Ethernet or wifi networking are both options if I can figure out how to get the machines to communicate.)

    AMoriyama wrote:
    I have the old machine backed up onto an external firewire disk but can't hook that up to the new imac as I'm waiting for delivery of a firewire 400/800 adaptor - therefore starting the old machine up as a slave is also subject to the same delay.
    I was hoping there might be some way to create a network between the 2 machines (and 2 different versions of the OS) to be able to transfer data across immediately but perhaps I'll just have to wait for my firewire adaptor to arrive.
    I don't understand why you're buying a Firewire adaptor, since AFAIK both of your computers have Firewire already built in.
    All you need is a firewire cable. Connect the Firewire socket on the old machine to the Firewire socket on your new iMac.
    Then start the old machine in Target Mode (i.e. by holding down the T key on its keyboard, while it's starting up, until you see the three-legged T icon hopping around the screen of the old machine.)
    At that point you will also see a new icon on the screen of your new iMac. This is the hard drive of your old machine.  By clicking on it you can navigate through it any way you like, just as you would normally.
    Just drag across whatever you want from the old computer to the new one. This will leave everything on the old computer untouched.
    - or use Migration Assistant but in my experience, Migration Assistant isn't very reliable and fails to migrate large amounts of stuff.

  • I can´t find how to use the "at" sign

    I can´t find how to use the "at" sign on my new Mac book??

    Go to system preferences/keyboard/input sources and make sure that only US is there.
    http://support.apple.com/kb/PH13835

  • Is list of custom headers and footers. I can't find how to change the footer to print the Long Date

    '''There should be a list of custom headers and footers.''' I can't find how to change the footer to print the '''Long Date'''. It took awhile just to find Page &PT. So I would appreciate if someone could post a list. Also if someone can answer how to print the Long Date.
    Thank you

    When you're on a call, use the volume buttons on the left side of the device.  This will then adjust the In-Call Volume.

  • How to get the Primary key from  Synonym

    Hi ,
    I want to get the Primary Keys for my tables . I used
    java.sql.DatabaseMetaData databasemetadata = connection.getMetaData();
        ResultSet rs = databasemetadata.getTables(null, null, "%", null);
    rs.next();
        System.out.println(" TABLE_CAT "+ rs.getString(1));
        System.out.println(" TABLE_SCHEM  "+rs.getString(2));
        System.out.println(" TABLE_NAME "+rs.getString(3));
        System.out.println(" TABLE_TYPE  "+rs.getString(4));
        System.out.println(" REMARKS "+rs.getString(5)); gives :
    TABLE_CAT null
    TABLE_SCHEM PROGRESS
    TABLE_NAME ApplicConv
    TABLE_TYPE SYNONYM
    REMARKS null
    Now if I use :
      rs = databasemetadata.getPrimaryKeys(null,"PROGRESS","Applicconv");
      System.out.println("Is result set Non empty "+rs.next()); gives :
    Is ResultSet non empty false .
    Can you tell me why this result is empty? Is it because of my table is a Synonym?
    If it is Synonym how to get the primary key ?

    You can use DatabaseMetaData#getPrimaryKeys.

  • I create a mobile game. How to get the signing key?

    I create a mobile game. How to get the signing key? Is the certificate is payable? Sorry if the topic is in the wrong section.

    You need to be an iOS/Mac OS X developer.
    https://developer.apple.com/devcenter/

  • HOW to simulate the enter key???

    Hi , I have a jTable ,and i want that by leaving a specific
    cell ,to perform the same action that the enter key does!
    when im leaving my specific cell the following function is being called:
    public void editingStopped(ChangeEvent e) {
    //here I want to simulate the enter-key's action
    HOW to simulate the enter key???
    10x in advance
    Nir.
    p.s. My initial problem was that when i left my specific
    cell (the cell is editable combo box), an edited words
    which were written by me vanished , and when i get back to that cell the edited word showed again!!!
    when i pressed the enter key the edited word were stable in the cell!!!
    when I chose a word from the combo evrything was ok!!
    so if any one can solve me that problem ill be appreciate.
    thanks Nir

    yourActionListener.actionPerformed(new ActionEvent(yourCell))
    I am not sure about the constructor of actionevent.
    you could try if setText(getText()) produces a good result

  • How to press the enter key then execution Form?

    Using:SAP B1 UI Form for C#
    How to press the enter key then execution Form?
    thanks
    Edited by: JackyChang on Jul 5, 2010 5:35 AM

    Hi JackyChang,
    Use the SendKeys method.
    VB Sample
    oApplication.SendKeys("{ENTER}")
    Regards,
    Vítor Vieira

  • I bought a gift card, but it hasn't shown up in my e-mail after 1 hour.  How can I find it and get the credit on my account?

    I bought an iTune gift card for myself and sent it to my e-mail address.  I have waited over an hour and the e-mail showing the gift card has not arrived.  How do I find it and get the credit put into my iTunes account so that I can buy some music?

    Oh hold on - sudden development!
    I panicked and force-shut down my computer because it froze after I clicked on the 'Reset Cache' option, then I logged back on and noticed the Cloud symbol next to the missing song. I clicked it, and it's finally downloaded properly! <3
    Mate, thank you so much for helping me out! xxx

  • Somehow i/o playing the songs from my library in scrambled fashion...it keeps playing the SAME song...I can't find how to scramble the playing.

    When I listen to ITunes now...the playlist isn't scrambled anymore....it plays the SAME song over and over. I can't find how to change it.

    Are you also restoring from your backup? That sounds like what is happening or someone else has your Apple ID.
    A backup to iCloud would have no way to add UK holidays to your calendar. Open Calendar, tap on Calendars at the bottom middle of the page and untick the ones you don't want.

  • How to get the UDDI Key to publish a service provider system in SR?

    Hi,
    I am following instruction in appendix 1 & 2 of the white paper at https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/1079b1af-dcb7-2b10-9ebb-eafcaa3cbbea?overridelayout=true
    trying to publish a service provider system into the service registry. One thing not clear to me is how to get the uddikey as needed in step 6 in appendix 1.
    My service registry is in a PI 7.1 SP4 system. I followed the instruction in appendix 2 but there is no uddi key displayed in the General tab. Please help.
    Regards,
    Jiannan
    Paragraph extracted from the whitepaper:
    There may be cases in which the NWA logical settings do not match the Services Repository
    settings when Visual Composer is trying to locate the enterprise services. Such cases can occur
    when there is no SLD ID definition of the physical system in the Services Repository.
    Currently, Visual Composer cannot search for services on a physical system with an empty SLD ID
    (which is not a valid one).
    To obtain this capability, the following steps should be performed to generate the necessary data
    for each system with a non-valid SLD ID, so that Visual Composer can search for services over it.
    1.Log on to http://<serverName>:<serverPort>/WSNavigator.
    2.Select the Services Registry radio button.
    3.In the Find field, enter sr and choose Go.
    4.Select the ServicesRegistrySi line and choose Next.
    5.Under the Operation Name, search for the publishPhysicalSystems operation, select it and choose Next.
    6.Fill the service information parameters with the following (see Appendix 2 for details on how to get this information) :
      6.1.Click the + icon in the physical system[].
      6.2.Deselect the Classifications checkbox.
      6.3.Click the + icon in the classificationReferenceGroups[].
      6.4.Click the + icon in the classificationReferences[].
      6.5.Deselect the classificationSystemKey checkbox.
      6.6.Deselect the uddiKey checkbox and enter the value <localUddiKey>.
      6.7.Deselect the value checkbox and enter the value <localSystemHostName>.
      6.8.Deselect the host checkbox and enter the value <localHostName>.
      6.9.Deselect the physicalSystemKey checkbox.
      6.10.Deselect the logical key checkbox and enter the value <System name>.<SystemHome>.<host name>.
      6.11.Deselect the systemName checkbox and enter the value <system name>.
      6.12.Deselect the type checkbox and enter the value 2.

    Hi Jiannan,
    No worries, you can go to UDDI client from the main page of PI  i.e. http://<serverName>:<serverPort>/
    And you use the search function for  the TModel for your Physical System. Search parameters can use the % wildcard.
    Hit the search and you find the UDDI Key for the Physical System.
    Cheers.
    Hemant Chahal

Maybe you are looking for

  • Help! iTunes is making my iMac act like a Windows machine!

    Here is the basic problem: Some songs will not play properly in iTunes, pausing often and causing the spinning beach ball of death to freeze my iMac for 5 to 10 minutes at a time, sometimes longer. I am also having problems ripping those songs to a C

  • Wrong apple ID for family sharing purchases

    I use one email address for iCloud and one for iTunes purchases. I have signed up to family sharing using my iTunes account, but when a family member requests approval for an app purchase, it defaults to my iCloud email address (the address is greyed

  • I get an error -3259 when trying to download an app. (And ONLY certain apps!)

    Ok, this is really weird. At first I thought it was my firewall, because I just installed it, and now iTunes wasn't downloadinf anything. But i've come to realise that there is nothing wrong with my firewall, or router...it's iTunes! You see, I didn'

  • Refreshing included JSP file

    Hi, I've created a simple word-verification login system to stop robots from trying out various password combo's on a user's account. I've created a separate JSP page that randomly chooses an image from a database, sets a session variable to the word

  • How to get REGUP-ZFBDT

    Hi! I am working on a sapscript form whose standard print program uses tables regup, reguh and regud. As much as possible, I would not like to modify te standard print program to I am working on the fields available. However, one of the information t