Skip to content
Mark Grant edited this page Mar 15, 2019 · 7 revisions

Java Swing AlarmClock Application


Contents

1 ... Project Description

2 ... This Repository

3 ... Project Structure

4 ... Just Using The JAR


1 ... Project Description

This is a GUI AlarmClock application implementing two independent alarms. Each alarm can be set to 'Alarm At', eg 13:15, or 'Alarm In', eg 1 hour 10 mins. Each alarm also incorporates a 'Snooze' button that will pause a ringing alarm for 5 minutes.


2 ... This Repository

AlarmClock is written in Java using NetBeans as an IDE. The project must be maintained via NetBeans to preserve it's support files, (*.form, build.xml, etc) which are tracked in git. The repository is also configured for Autotools. The AutoTools files exist in parallel to the NetBeans files and do not conflict.


3 ... Project Structure

The NetBeans part of the project is expected to be used for development only. Once development is complete AutoTools takes over to provide basic build and packaging which downstream can be turned into debian, rpm etc packages. AutoTools will build an end-user application consisting of:-

The main application jar file.
A bash start-up script.
A manual page for the start-up script.
A desktop file for a GUI start-up of the application. (It invokes the
bash script).

4 ... Just using the jar

As a Java application it can run on many operating systems.

The easiest way to use a jar file is to compile and build within NetBeans. This produces the application in the dist subdirectory. The application can then be run using:-

java -jar "dist/AlarmClock.jar"
	with the path modified as necessary.

N.B. If you wish to move the application to another location you must move the relative subdirectory 'lib' with it. i.e. the jar and the lib directory must maintain their relative relationship.

Clone this wiki locally