I am wondering if it is possible to access the windows explorer in Java. For selecting files to open, or a destination to save something (a picture for example).

You can use JFileChooser for those things.

Thanks. Is there any other cool/important Java components/tricks I should know about?

There are a wealth of them. Just look through the other tutorials listed to the left in that one I linked to you. Explore other parts of that site and the API docs as well.

Ok. I found a couple interesting ones. Also I am having trouble positioning the text it the top left corner of the screen. this is the part of the code that is causing me grief.

web = new JLabel ("Test Text"); web.setHorizontalTextPosition(JLabel.LEFT); web.setVerticalTextPosition(JLabel.TOP);
		
		JPanel panel = new JPanel (); panel.setAlignmentX(0); panel.setAlignmentY(0);
		panel.add(web);
		JScrollPane result = new JScrollPane(panel);

Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.