Re: Q: multiple views
Jesse Glick <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.user-interface |
|---|---|
| Organization | Sun Microsystems / NetBeans |
| Message-ID | <[email protected]> |
Tientien Li wrote: > I was looking for examples on how to implement a > module supporting multiple views. Two approaches used > by netbeans modules were found: > > 1) Property Editor: one can "open" a property file in > a GUI editor or "edit" it in a text editor. Each > action opens a separated top component. > > 2) Java Form Editor: one can "open" a Java form in a > GUI editor or "edit" it in a text editor. However, > both action interact with the same top level TC. > > The first approach, one view per TC per action, is > probably easier to implement. The second approach, one > view per action in a shared TC, looks a lot better but > may require some more work to implement. #2 is the newer, preferred style. > Is there a netbeans UI standard on how to implement a > module with multiple views? Any suggestion on which > approach should be used? Use the core/multiview support module (if you can figure out how it works - it's not easy): http://www.netbeans.org/download/dev/javadoc/#def-api-multiview Please use [email protected] for questions about "how". -J. -- [email protected] x22801 netbeans.org ant.apache.org if I had known it was harmless I would have killed it myself