jkcd
An xkcd viewer written in Java.
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).
- Using the pre-built executable-jar file:
a. Navigate to the
dist/jkcd
folder using a file explorer and double-click thejkcd.jar
file. b. Navigate to thedist/jkcd
folder using the terminal and run:java -jar jkcd.jar
. - 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