Skip to content

jlam55555/jkcd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jkcd

An xkcd viewer written in Java.

jkcd program in action

Inspiration

An rewrite of my previous program in Bash, xkcd-client.

Instructions

Here are two methods to run the program.

Both steps require that you have either the JDK8 or JVM8 (Java 8).

  1. Using the pre-built executable-jar file: a. Navigate to the dist/jkcd folder using a file explorer and double-click the jkcd.jar file. b. Navigate to the dist/jkcd folder using the terminal and run: java -jar jkcd.jar.
  2. Compiling the program yourself (requires JDK8) (use if you want more control or if step 1 does not work): a. Navigate to the bin folder, and run the following commands: javac ../src/jkcd.java -d ./;cp ../src/style.css ./;jar cfe ../dist/jkcd.jar jkcd *. Then, follow step 1 to run the executable-jar file.

Controls

Button Value Action
<< Previous comic** (goto comic with ID = currentId - 1)
|< First comic (goto comic with ID = 1)
<- Back* (goto last comic in history)
>> Next comic** (goto comic with ID = currentId + 1)
>| Last comic (goto comic with ID = lastId)
-> Forward* (goto next comic in history)
:? Get random comic (goto comic from c.xkcd.com/random/comic)
<> Toggle sizing (regular or fit size)
:# Get comic (goto comic with given ID from textfield)

* If there is one

** If reached the end, then loops around

About

An xkcd viewer written in Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published