Skip to content

A simple Java program that renders a drawing of a clock tower with buildings and hills in the background. The drawing is comprised entirely of basic shapes.

License

Notifications You must be signed in to change notification settings

Andrew-EKrause/Java-Drawing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Java Art Project

Description

First Use of the Java Programming Language in College
A simple drawing that is generated when running the Java program. This was the first project I made using the Java programming language. I created this project in my "Software Design I" class during my freshman year at the University of Wisconsin - La Crosse. The Java Drawing program marked the beginning of my eventful journey with not only Java, but many other programming languages. Therefore, I decided to post this freshman year project to GitHub. When run, the program opens a separate window with a drawing of a clock tower. The drawing is based on the university clock tower on my campus. The drawing was created by using Java classes, such as the Oval and Rectangle class, to generate basic shapes. The basic shapes were organized on the screen to form the drawing that is generated upon running this program.

Resources for Project:

  • Java
  • Eclipse (IDE)

Running / Viewing the Project

Eclipse (IDE)

  1. First, make sure that you have the Eclipse IDE to run the program. If you need to download Eclipse, the link is provided below.
    -Eclipse (IDE) Download: https://www.eclipse.org/downloads/
  2. Next, make sure that you have Java installed in your system. Go to your settings/system preferences and search for Java in your system. If you do not already have Java installed, follow the link below. The link will bring you to a website for downloading Java. The website will give you the option to download Java for Mac or Windows.
    -Java Download: https://java.com/en/download/help/download_options.html
  3. On this repository page, go to the "Code" button and click the "Download Zip" option.
  4. Go to your "Downloads" section on your computer and place the zip file in a folder/location other than "Downloads".
  5. Double click on the zip file to open or "unzip" it so you can access the file contents.
  6. Open up Eclipse, and type "Drawing" as the name of the workspace. Then click the "launch" button.
  7. If any settings options appear, click the "Hide" option located in the upper righthand corner of the screen.
  8. You should now see a workspace. You will probably NOT see any files. To get the actual file content into the workspace, click on the "Import projects" option.
  9. Click the "General" dropdown arrow option. Then click "Projects from Folder or Archive". This should open a separate Eclipse window.
  10. In the separate Eclipse window, select the "Directory..." button. This should open your file system window. In the file system window, navigate to the location where the "KrauseFirstDrawing" folder is stored. It should be stored within the folder you downloaded from this repository, which is called "Java-Drawing-master".
  11. Select the "KrauseFirstDrawing" folder. Click "Open". This will add the path the the directory in the separate Eclipse window you have opened.
  12. Then in the separate Eclipse window, click "Finish".
  13. Open the project folder that should now be in your workspace by double clicking it. Then open the "(default package)" folder by double clicking it.
  14. Next, open the "Building.java" file by clicking it. Hit the green run icon, which is a green circle with a white triangle inside of it. The program should open a separate window with the drawing image.

Command Line

  1. First, make sure that you have your terminal open. Information about your terminal can be found here:
    -Mac: https://support.apple.com/guide/terminal/open-or-quit-terminal-apd5265185d-f365-44cb-8b09-71a064a42125/mac
    -Windows: https://docs.microsoft.com/en-us/windows/terminal/
  2. Next, make sure that you have Java installed in your system. Go to your settings/system preferences (do this on your computer and not in your terminal) and search for Java in your system. If you do not already have Java installed, follow the link below. You will be brought to a website for downloading Java. The website will give you the option to download Java for Mac or Windows.
    -Java Download: https://java.com/en/download/help/download_options.html
  3. On this repository page, go to the "Code" button and click the "Download Zip" option.
  4. Go to your "Downloads" section on your computer and place the zip file in a folder/location other than "Downloads".
  5. Double click on the zip file to open or "unzip" it so you can access the file contents.
  6. In your opened terminal, navigate to the location where you opened the downloaded zip file and make sure you are first inside of the "Java-Drawing-master" folder and then inside of the "KrauseFirstDrawing" folder. (If you are unsure of command line commands, see the resources provided bellow.)
    -Linux and Max: http://mally.stanford.edu/~sr/computing/basic-unix.html
    -Windows: https://blogs.umass.edu/Techbytes/2014/11/14/file-navigation-with-windows-command-prompt/
  7. Inside the "KrauseFirstDrawing" folder on your terminal, type the following command: java Building.java.
  8. After running the command in the previous step, a new window should open with the drawing image displayed.

Drawing Image Created in Java

FirstJavaDrawing_Image

 

@Author: Andrew Krause
LinkedIn: https://www.linkedin.com/in/andrew-krause-b6aa21179/
Portfolio: https://andrewkrause.dev/
Instagram: https://www.instagram.com/aek.krause/
Facebook: https://www.facebook.com/andrew.krause.35325

About

A simple Java program that renders a drawing of a clock tower with buildings and hills in the background. The drawing is comprised entirely of basic shapes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages