wood burning stoves 2.0
The moose likes Beginning Java and the fly likes Copying a multifile program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Copying a multifile program" Watch "Copying a multifile program" New topic

Copying a multifile program

John Burville

Joined: Jul 17, 2011
Posts: 2
I am learning Java, and a program on the web has a lot of stuff I want to use. The program has several files which are .java files. I am using Netbeans IDE 7.0, and cannot figure out how to bring the group of files into the program. The site where I am getting the sample program from is: http://www.neiljohan.com/java/ and the program is patience with the following files:

Patience Game, Uses a generic Playing Card and Pack object to create a simple card game. The ADT is designed to be as generic as possible so any card game could be created using it. Uses List Array Structure, shows how to create a simple to use generic ADT.

Can you help, as I feel this will help me leap forward with Java. NB I have done the sample programs which are all a single class.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15083

Welcome to the Ranch!

You can just create a new project using NetBeans (choose File / New Project, and then Java / Java Application), and copy all the source files for the program in the source folder of the project.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Manoj Kumar M

Joined: Jul 16, 2011
Posts: 5

better you mark the folder having the java files as source folder for your project in your IDE.
John Burville

Joined: Jul 17, 2011
Posts: 2
Thanks, something worked, though I had expected it to be more graphical rather than a small amount of script. I did have to choose which program had the main "main" in it. My next challenge which I will work on is to make the program display a playing card and then a surface for the playing card.

My programming days was well before OOP. So I am slowly understanding it.

I agree. Here's the link: http://aspose.com/file-tools
subject: Copying a multifile program
It's not a secret anymore!