The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 How to Write a Custom Swing Component
Subject:  Excellent Article!
Date:  2007-02-24 01:18:25
From:  mikaelgrev
Response to: Excellent Article!


Kirlill,

I would probably have a no-arg constructor as well. Then also a separate getter/setter for the three arrays. I would have the Range array be the lead for how many ranges there would be an interpret the other two arrays in a lenient way (having no icon and a string that said "Empty" for missing/null elements) so that the component wouldn't fail mid-config.

Cheers,
Mikael


 Feed java.net RSS Feeds