Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to use jfile chooser button ??  RSS feed

 
bharani priya
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a browse button to get input file from user and when this browse button clicked it should select d file needed, how to apply this with file chooser ???

i have doubt that to apply like method1 or method2:

method 1:
input file [-----------------] [browse]
a open window opens you to select

method 2:
directly having a file chooser in the main page?

if the above methods are wrong , please help me out with a right code.
i want get input a file and once selected its name is shown in window and used for processing.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!