• Post Reply Bookmark Topic Watch Topic
  • New Topic

Customized SWING API

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that Javaranch has a common package with some reusable components.
I was wondering if anyone was interested in Creating a Custom SWING API to make SWING even easier than it is.
I know that I have a custom JButton class that I use all the time because of get tired of writing the same code over and over and over for every JButton. I know a lot of people do this.
But what about JTable, JTree, JComboBoxes..etc.
I see questions all the time in the SWING forum for the same component requests. Everyone wants to make a JTable do this, or a JTree do this. And helping these people learn how to do this is good.
But why not get a group of people together to encompouss a lot of these ideas into a Custom SWING API.
Kind of like the KIWI Toolit but better.
If anyone else has thought about this, let me know. Maybe we can get together and come up with something.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd be interested in working on it...
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was hoping you would be Nate. If we can gather up a couple more people, maybe we should start a project on SourceForge and work on it in our spare time.
 
Garandi Garandi
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gregg and Nate,
I would love to join you.
Garandi
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what are some of the improvements or modifications that you are all looking at implementing.
I know that one thing I would like to see one almost all components is the ability to pass a JPanel, or ContentPane to the constructor and have the component added to it that way instead of a seperate add() command from the panel component. I have this in my custom JButton already. But it would be nice to have that on almost all top level components like, textfields, textareas, scrollpanes, combo, etc.
I would just like to hear some more ideas. Kind of get a feel for what everyone likes and would want to do.
 
Manish Hatwalne
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I join you guys?
Another nice improvement would be to get rid of some of the annoying bugs that Swing has, such as JTextArea not scrolling after appending text, bugs in JFormattedTextField!
I'd like to contribute in my spare time.
- Manish
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good to have you Manish. I think those are some good ideas as well. Although I probably wouldn't go as far as to call them bugs. They are just things we normally have to implement each time. Which is why I wanted to create a Swing Package that already does all this for us.
 
Manish Hatwalne
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gregg Bolinger:
Good to have you Manish. I think those are some good ideas as well. Although I probably wouldn't go as far as to call them bugs. They are just things we normally have to implement each time. Which is why I wanted to create a Swing Package that already does all this for us.

Great!!
Just run this code and enteer few floating point values and integer values in the JFormattedTextField, and observe the results. This one has got to be a bug!!!

- Manish
 
Manish Hatwalne
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's workaround though -

- Manish
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I submitted a proposal on SourceForge for a project which I call JR-SWING (JavaRanch SWING). Once this project has been approved and is in place, I will let everyone know and you can join that project as a developer. At that time we can start dividing up some of the core SWING classes amongst ourselves to start developing.
If anyone else has some suggestions on the types of improvements we should be trying to make, please respond here and let everyone know.
I would encourage all SWING enthusiests to get involved.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, https://sourceforge.net/projects/jr-swing/, there is the project page for anyone who wants to join this project as a developer.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!