-
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
-
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.
~evlich
Similar Threads
-
By MacataQ in forum VB Classic
Replies: 4
Last Post: 07-26-2005, 02:24 PM
-
By KevinV in forum Database
Replies: 2
Last Post: 03-27-2002, 08:13 AM
-
By ilse in forum VB Classic
Replies: 1
Last Post: 03-21-2002, 11:41 AM
-
By Ram in forum VB Classic
Replies: 0
Last Post: 11-14-2001, 12:02 PM
-
By Ram in forum VB Classic
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks