# Thoughts on my GUI library for using swing

**URL:** <https://discourse.processing.org/t/thoughts-on-my-gui-library-for-using-swing/37268>\
**Category:** Development\
**Created:** [June 1, 2022, 6:18pm UTC](https://discourse.processing.org/t/thoughts-on-my-gui-library-for-using-swing/37268 "2022-06-01T18:18:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NumericPrime](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/numericprime/32/16318_2.png) [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Post date:** [June 1, 2022, 6:18pm UTC](https://discourse.processing.org/t/thoughts-on-my-gui-library-for-using-swing/37268/1 "2022-06-01T18:18:05Z")

</div>

My first library (Swing Helper) is available on the contributions manager now! It is supposed to help with using swing components in processing.  
Since this is the first time for me to publish a library I don’t know how user-friendly it is and I can only judge it to some extend.

I’d be thankful if I could have some feedback on how to improve my library! If you have any suggestions on other features to add feel free to ask! I’ll do my best to implement them!

---

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [June 9, 2022, 9:33pm UTC](https://discourse.processing.org/t/thoughts-on-my-gui-library-for-using-swing/37268/2 "2022-06-09T21:33:49Z")

</div>

Hi @NumericPrime,

I just downloaded your library from the Contribution manager. I have a few thoughts and suggestions:

- Add additional details in your [README.md](https://github.com/NumericPrime/SwingHelperProcessing) on GitHub, code snippets? more information about what it does. (you can use [this template](https://www.makeareadme.com/))

- Is it intentional to use the word `swing` [without a capital letter](https://en.wikipedia.org/wiki/Swing_(Java))? Because without `GUI` or a related word in any description it’s not obvious at first glance that it is supposed to be used for that…

- Just a dev question for curiosity: why are you using annotations specifically? Is it usually used to define properties like that? (I didn’t know you could define your own… 😀 )

---

<div class="post-metadata">

**Author:** ![NumericPrime](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/numericprime/32/16318_2.png) [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Post date:** [June 10, 2022, 12:34pm UTC](https://discourse.processing.org/t/thoughts-on-my-gui-library-for-using-swing/37268/3 "2022-06-10T12:34:35Z")

</div>

Yes I should probably expand my readme file. Until now I focused on my examples that are downloaded with the library and my javadoc. I will look into it.

I used annotations because they are an easy way to add settings to fields and methods. Annotations also allow setting default settings wich is also useful. The reason I started using annotations to be honest is because I saw a this youtube video on how to use them

[![](https://img.youtube.com/vi/DkZr7_c9ry8/maxresdefault.jpg "Annotations In Java Tutorial - How To Create And Use Your Own Custom Annotations") ](https://www.youtube.com/watch?v=DkZr7_c9ry8)

And I they fitted perfectly in my other methods and allow making things more easy for the user.

In the next days I will update my readme.md file on my repository. (note that the code in the repository is not up-to-date the one in the src folder in the library itself is)

---

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [June 11, 2022, 4:23pm UTC](https://discourse.processing.org/t/thoughts-on-my-gui-library-for-using-swing/37268/4 "2022-06-11T16:23:50Z")

</div>

No problem thanks for the link! 😉
