Giter VIP home page Giter VIP logo

java-project-library's Introduction

Java Project Library

GitHub release (latest by date) GitHub

GitHub Release Date GitHub last commit

The Java-Project-Library is a library for making small Coding-Projects of any kind really * fast*.

Introduction

  • 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 & Folders
    • PDataStorage(similar to json): store/read basic attributes from/to files
    • PCustomProtocol: Manage communication between different programs/devices
    • PSerialConnection: 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

Why should I use this Library?

  • Graphics:

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

  • IO-Functionality:

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 **

Projects built with JPL:

Usage

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>

Alternatively using jar

  1. Download / Build the latest Version
  2. Include the library into your project
    • IntelliJ: File > Project Structure > Libraries > +
    • Eclipse: Right-Click Project > Properties > Java Build Path > Add External JARs
  3. Start with your project

Troubleshooting

  • 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 **

Credit & Status

The Library jSerialComm is used for USB/Serial communication.

It is fully functional and Maintenance by Paulsen

Build

Codestyle

  • Using Maven
  • Using Google-Codestyle
  • Max-Line-Length 100
  • Reformat & Optimize Imports before Commit (on Save)

java-project-library's People

Contributors

paulsenik avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.