DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2006

    Post a bit of help needed

    hello people

    I am trying to create a java applet that loads a specific file and with the use of a combo box and a text field we can add staff in it.

    Up until now I have created the Gui and the commands for the open button but have you got any example that can help with the combo box and the text field?

    thank you in advance

  2. #2
    Join Date
    Aug 2003
    I'm a little confused by exactly what you are trying to do. Do you want to load the file after the element in the combo box is selected? That seems logical, you should be able to add a handler for when the selection changes, here's a tutorial about using Combo boxes: http://java.sun.com/docs/books/tutor...html#listeners
    As far as the text field, I would assume that you would want to try to load the file when the user hits ENTER or the textfield loses focus. You can do the focus one with a focus listener. As far as listening for ENTER, check out the KeyListener class.

    Hope this helps.

Similar Threads

  1. bad syntax?
    By MacataQ in forum VB Classic
    Replies: 4
    Last Post: 07-26-2005, 02:24 PM
  2. Replies: 2
    Last Post: 03-27-2002, 08:13 AM
  3. Win2000 & 16 bit applications
    By ilse in forum VB Classic
    Replies: 1
    Last Post: 03-21-2002, 11:41 AM
  4. Replies: 0
    Last Post: 11-14-2001, 12:02 PM
  5. Replies: 0
    Last Post: 11-14-2001, 12:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.