[ Web Proxy ]
URL:
Viewing: https://techous.github.io/rainbow/#github-java-package-use-hr [Back]  [Original]

Rainbow - Java library
Rainbow
Tutorial
v1.0.1
GitHub
logo.png [logo.png]
×

Rainbow

Best Java library to create colorful
User Interfaces for Linux terminals.

Getting Started Read Docs >

  RAINBOW JAVA PACKAGE


  Class Codes


This class contains all the color codes used for rainbow class.

Since

1.0

Field Details

Formats

Colors

Backgrounds


  Interface Procedures


This class contains all the methods implemented for rainbow class.

Since

1.0

Method Details


  Class Rainbow


This class contains the implementation of core methods for this library.

Since

1.0

Constructors

Method Details


Getting Started

Before getting started you need to have Linux OS installed in your machine for this library to work properly. The Rainbow is the java library to make good User Interfaces for Linux terminals. There are many ways through which can get a start use of this library. Below are the following type of uses you can start with:


Developer Use

So if you are a java developer you have to install these technologies in your machine.

1. JDK 8 / 11

So if don't have jdk in your machine you can install JDK 11 / JDK 8.

2. Git

The git should be in your machine if your are a developer if you don't have then you can install is here. Clone the repository using the below command:

3. A good Java IDE

You can install any of the good IDE's listed below

If you don't have any IDE listed above then you can install from below links:

For complete Developer Use click below

more

Library Jar Usage

So if you want to use this library jar as a dependency then you have to install these technologies in your machine

1. JDK 11

So if don't have jdk in your machine you can install JDK 11 from here because the jar only compatible with java 11 only.

2. A good Java IDE

You can install any of the good IDE's listed below

If you don't have any IDE listed above then you can install from below links:

3. Download

You have download the jar from this link or from below button.

Download

For complete Library Jar Usage click below

more

Github Package Registory Use

Follow the first 3 steps of the developer use then follow below steps.

4. Maven

For using Github Package Registory you have to install maven for using this library package. If you don't have maven then you can download from here.

For checking if maven is present or not you can check with below command:

After running this command in the terminal you will get output like this:

maven image [maven image]

For complete more Github Package Registory Use click on more

more

Developer Use

Before starting to use the library you have to follow above three steps. After following the steps follow below steps according to your IDE:


Intellij Idea


Using of App Class in Rainbow Package

  1. For using the local package Build the project.
  2. Open the path src/main/java/org.techous/rainbow
  3. You can see the below sample code is there is in App class.
  4. Run App class you will see the output in the console
  5. Here you can see the documentation of the Rainbow class and try different functions or we you want to add some custom functions in our library then you can see our next section.

Adding customization to Rainbow Library

  1. Create a new class filename Hello in java folder.
  2. Copy the below code in Hello.java file.
  3. Run the Hello.java file then you will see the output of the new method which we have created.

Exporting local Library Jar

  1. Right click org.techous.rainbow package and click on export.
  2. Then click on jar and select the jar path where you want to export.
  3. After finishing this process your jar will be created which you can use as project dependency jar.

VS Code


Using of App class in VS Code

  1. For using App class in VS Code you have to install java Extension pack from VS Code marketplace.
  2. Open the path src/main/java/org.techous/rainbow
  3. You can see the below sample code is there is in App class.
  4. Click on run and App class will get executed and you will see the output in the vscode terminal.
  5. Here you can see the documentation of the Rainbow class and try different functions or we you want to add some custom functions in our library then you can see our next section.

Customize with VS Code

  1. For doing customization in VS Code you have to install java Extension pack from VS Code marketplace.
  2. Create a new class filename Hello in java folder.
  3. Copy the below code in Hello.java file.

  4. Web Proxy Viewer  |  New URL  |  Original Page