KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have built many many GUI:s and I don't like to have dependencies to libraries so I end up doing much of the basics myself. One thing that I end up doing over and over again is mapping primitives to GUI components. For example if it is a boolean I often use JCombobox with two options ( "true" , "false" ) and if it is int I use a JTextField . Much of the work is to go from and to text... Some example mappings: int or Integer => JTextField or JSpinner boolean => JTextField , JComboBox or JCheckBox int[] => JList (with "add" field and "remove" buttons) Set<Byte> => probably the same as arrays So, to the questions: Is there already a library that have mappings like this or do I need to "invent" it again? I have seen jfg that uses refection and SWT as frontend (you can implement a new frontend using swing but that is exactly what I'm trying to avoid). Is there a simular library that uses swing and refection?
Tags (comma-separated)
Save Edits
Cancel