Skip to content

everdro1d/dro1d-libs-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

424 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dro1d-libs-java

A collection of reusable Java libraries designed to simplify application development and improve productivity. These libraries provide utilities for command line (CLI) arguments, I/O operations, localization, and more.


View Post ->

View Javadocs ->

View DeepWiki ->


Features

  • Command Management: Simplify the creation and execution of CLI arguments.
  • I/O Utilities: Streamline input/output operations with easily reusable implementations.
  • Localization: Manage, create, and use locales with ease.
  • Extensibility: Designed to be modular and easy to integrate into your projects.

Getting Started

Dependencies

  • Java 21+
  • org.json:json:20240303
    • LocaleManager requires it to read and write locale files.
  • com.formdev:flatlaf:3.5
    • Some Swing GUI things will definitely break without it, but general things like smaller components or util methods should still work. Others will be hit-and-miss, try it if you like.

Test Dependencies:

  • org.junit.jupiter:junit-jupiter:5.12.1

Installation

Add the JAR file as a dependency in your project. If you use LocaleManager, you will also need to add the org.json library, and if you use the Swing GUI stuff, you should consider adding the flatlaf library to be safe.

I haven't made a release jar because of how frequently I update this library, but you can clone the repository and build it from source. To build successfully, you will need the pre-requisites mentioned above, and a Java 21+ JDK. I've compiled a build chain in intellij that should work well, run W7: Create Artifacts for Windows (powershell), and 7: Create Artifacts for Unix-based systems (MacOS and Linux).

Please note: when generating Javadocs, there should be 176 warnings. These are due to (private) locale fields not having comments. If this number changes, please check your Javadoc comments, 90% of the time the warning (or error) will be at the start of the output.

Usage

Please refer to the Javadocs for detailed documentation on each class and its methods.

Example: Command Management

CommandManager commandManager = new CommandManager();
commandManager.registerCommand(
        "example", new ExampleCommand()
);
commandManager.executeCommand("example");

Example: Localization

LocaleManager localeManager = new LocaleManager(
        Main.class, "dro1dDev"
);
localeManager.loadLocaleFromFile("eng");
String message = localeManager.getVariableInComponent(
        "MainWindow", "greetingLabel", "messageText"
);
System.out.println(message);

Contributing

Contributions are welcome. Please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Make your changes and create documentation (javadoc comments please "/**...*/").
  4. Create and run tests to ensure everything works as expected.
  5. Submit a pull request with a clear description of your changes.

Support

For issues or questions, please open an issue in the repository or contact the developer.

About

Libraries make life easier :)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages