The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 Introducing JAXX: A New Way to Swing
Subject:  Custom components?
Date:  2006-03-31 07:46:12
From:  enicholas
Response to: Custom components?


Oh, most certainly. You need only specify the name of the class as a tag, like <com.mycompany.MyComponent/> (or you can even do <script>import com.mycompany.*;><MyComponent/>).

JAXX will find and load the class (assuming it's on the class path) and introspect it to identify available properties and events. Normally that's all you need to do, but if for some reason the component requires extra support beyond what JAXX can figure out on its own, JAXX has a Service Provider Interface via which you can add support for additional tags (among other things) simply by having a specially-constructed .jar file living somewhere on the class path.

 Feed java.net RSS Feeds