The Java-Project-Library
is a library for making small Coding-Projects of any kind really *
fast*.
- PUI-Engine
PUIFrame
(based on JFrame): simplifies creation of UI and manages all Elements- Custom UI-Elements (e.g.
RotaryControl
: Digital Knob the user can rotate) - Gives pixel-control over Window
- Automatic scaling
- IO
PFile
&PFolder
: Advanced controls over Files & FoldersPDataStorage
(similar to json): store/read basic attributes from/to filesPCustomProtocol
: Manage communication between different programs/devicesPSerialConnection
: Connect to an Arduino, RaspberryPi or other USB-Devices and communicate with them
- Utility
PSystem
: Provides System-Information and functions (e.g. find out the OS-Type)PConsole
: Run a given Command in the Terminal/Console (Linux/Windows) and get the response
This library solves the problem for people, who are not experienced enough with Graphics in Java or who don't want to invest too much time in creating a simple window with buttons, dialogues, user-inputs & graphics.
This Library is beginner-friendly and allows programmers to create a new Window and add
a Button
to it with two lines and still have the possibility to draw other stuff with PUICanvas
on
the frame on a
pixel-level
This library solves the problem of writing a lot of code to read and write files. It also provides functions to get the content in a specific format.
With PFile
you can get a File as a One big String
,Array of Lines
or Array of Words/Paragraphs
You can also store basic attributes to files and later read them (similar to json) by
using PDataStorage
.
USB-Communication with an Arduino, RaspberryPi, etc. is simplified in PSerialConnection
.
Developers can
simply connect()
and disConnect()
a device and attach a PSerialListener
to read Data from the
USB-Attached Device.
Use write(data)
to send data to the device.
**For more see my included Demo **
This library can be loaded using JitPack
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Include the dependency (change version version if needed)
<dependencies>
<dependency>
<groupId>com.github.paulsenik</groupId>
<artifactId>java-project-library</artifactId>
<version>1.1.6</version>
</dependency>
</dependencies>
- Download / Build the latest Version
- Include the library into your project
- IntelliJ:
File > Project Structure > Libraries > +
- Eclipse:
Right-Click Project > Properties > Java Build Path > Add External JARs
- IntelliJ:
- Start with your project
- Problems when using
PSerialConnection
on Linux:- Either run your program as
root
- Or add your User to some of those 4 Groups:
uucp
dialout
lock
tty
(Some might not exist on your distro) - Still got problems or have issues adding yourself to the Groups:
Look up the * * jSerialComm-Troubleshooting-Wiki **
- Either run your program as
The Library jSerialComm is used for USB/Serial communication.
It is fully functional and
by Paulsen
- Using Maven
- Using Google-Codestyle
- Max-Line-Length 100
- Reformat & Optimize Imports before Commit (on Save)