• Post Reply Bookmark Topic Watch Topic
  • New Topic

Trying to use JFileChooser in Eclipse in Linux

 
Ben Lee
Greenhorn
Posts: 3
Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to JFileChooser to open up a window. I'm just trying to learn how to use it for a school assignment this week. The problem is I can't get anything to show up. I can create a new window and print to the console without errors, but JFileChooser doesn't do anything. No errors either. My textbook has nothing for us Linux users, and nothing I've found so far online works. Please help!

I apologize if this question seems n00bish, but the class I'm in is Intro to Java (CS 1400)

 
Rob Camick
Ranch Hand
Posts: 2699
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Linux has nothing to do with using a file chooser. The code is the same on all platforms.

Creating a component is only half of the process. You still need to show the component.

I'm just trying to learn how to use it for a school assignment this week.


Then a good place to start is with the JFileChooser API. The API contains a link to the Swing tutorial on How to Use a File Chooser that should be helpful. The tutorial is full of basic information you need to write a Swing app so I suggest you bookmark the link to the Table of Contents for future reference.
 
Ben Lee
Greenhorn
Posts: 3
Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm an idiot. Thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!