An xkcd viewer written in Java.
An rewrite of my previous program in Bash, xkcd-client.
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/jkcdfolder using a file explorer and double-click thejkcd.jarfile. b. Navigate to thedist/jkcdfolder 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
binfolder, 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.
| 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
