Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-02-2008, 05:53 PM
Member
 
Join Date: Jan 2008
Posts: 1
BenNeiderlander is on a distinguished road
Drop down menu
I'm an 11th grade student taking a java class. What I have is a program that has the user input a file name, and what I want is for the user to pick a file name from a drop down list. Could someone point me in the right direction?

Thanks,
Ben
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-02-2008, 10:49 PM
CaptainMorgan's Avatar
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 840
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
Just wanted to let you know your thread has been moved to a more proper forum. Please review the FAQ before you post again. And welcome to the community. I hope you find a solution to your problem soon.

See you around!
-Capt
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
to our beloved Java Forums!
(closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
Got a little Capt'n in you? (drink responsibly)
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 02-04-2008, 08:59 AM
Member
 
Join Date: Feb 2008
Posts: 7
ramapple is on a distinguished road
Hi BenNeiderLander,

To pick your name from a drop-down menu, I'd suggest using JComboBoxes. More information can be found here and here.

A quick example of how it works is by making an array of Strings, and adding it to a JComboBox.

Code:
String[] names = {"Eugene", "James", "Sarah", "Katherine", "Shari", "Roger"} //declare the names JComboBox newBox = new JComboBox(names); //make a new combobox with the names as selections
Then just add the JComboBox to your panel, frame, etc. Hope this helps!
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 02-05-2008, 08:35 AM
Cnu Cnu is offline
Member
 
Join Date: Feb 2008
Posts: 13
Cnu is on a distinguished road
In struts FileupLoad concept is there. By Using FileUpload we can upload a file.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create Popup Menu with Sub Menu while right-clicking the JTree Node?? Kabiraa AWT / Swing 7 05-09-2008 08:54 AM
How to use a drop-down box in Struts piterskiy74 Web Frameworks 1 02-13-2008 12:42 PM
Drag and drop abhivenugopal JavaServer Pages (JSP) and JSTL 0 01-30-2008 03:10 PM
Need Help Creating a Java Drop-Down/ Collapsing Menu rudbls New To Java 3 12-16-2007 12:19 AM
help drag and drop in JTabbedPane RO86 AWT / Swing 0 08-14-2007 02:22 PM


All times are GMT +3. The time now is 12:39 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org