开发者

Java Preference Manager

开发者 https://www.devze.com 2023-02-21 08:18 出处:网络
I started implementing a solution for myself to manage user/开发者_如何学Pythonapplication preferences, but then thought to myself there has to be a solution out there already. I started looking and f

I started implementing a solution for myself to manage user/开发者_如何学Pythonapplication preferences, but then thought to myself there has to be a solution out there already. I started looking and found the JFace API. I got excited, but then noticed it is designed to work with SWT. My application is written using Swing. I tried looking for a similar solution for Swing, but have not had any luck.

I'm looking for the equivalent of JFace for Swing (if that exists).

Is there a solution out there for managing preferences like JFace in Swing?


I looked for a while, but was unable to find a preference manager similar to the JFace implementation. So, I ended up creating my own library that originally partially implemented interfaces in the JFace preferences library, but since has deviated.

The library is called jpreferences and is hosted on Github.

EDIT: Go figure, when I tried creating a SourceForge project named jpreferences there was a project already by that name. If only I had thought to search for jpreferences instead of preference manager. Oh well, now anyone looking for what I was looking for has more choices.


You would find here the two main "PreferenceDialog" implementation for big open-source projects.
One of them is much more complete... and is the org.eclipse.jface.preference.PreferenceDialog class, in SWT.

I don't know of a similar implementation in Swing, but should I develop one, I would consider using XWT as a more declarative approach to build it, since XWT isn't linked to eclipse (e4), and you can use it with Swing.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号