Re: New TopComponent kind? (in addition to editor and viewer)
Marek Slama <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.user-interface |
|---|---|
| Message-ID | <[email protected]> |
Mikael Brännström wrote: > I'm developing an application on top of the Netbeans platform. Are > there any ways to replace/customize the editor style TopComponent? > > I need a component that occupies the middle part of the window (like > the "editor" kind), but the component should not be closeable and > there should only be one instance of it (allways opened). > > I know this can be acheived by having an editor component that is not > closeable, but the close button will still appear, and the tabs and > all the UI stuff for cycling through the oher editor components that > are visible (in my case none). I need a clean component without any of > this, preferrably even without a title. > > Can anyone give me a pointer to where to start? E.g. what code/module > to modify etc. NB uses custom UI for editor/view TopComponents. If you want to change it you have to either modify existing one or create your own. Second option would require more changes in winsys impl. Also be aware NB provides different UI impls for different L&Fs. Code is in module core/windows. org.netbeans.core.windows.view,... Marek