Re: Beginner question for netbeans 8.1 platform application

Steven Yi <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <CANtcCs5faHpeB-FjXg8FbvB42JV3QuF3ZoXn=6pHz817s6qOPQ@mail.gmail.com>
Hi Thomas,

I'd second the recommendation for the LeanPub book: it's an excellent resource.

Just to add, I've done some small test applications with NetBeans
where it started off with the minimal NB modules and then added my own
modules that used JavaFX.  In those cases, I'd use a single module in
my application suite and in that module, I'd have a an Installer class
that extended ModuleInstall, and there overrided the restored()
method.  In that method I'd add my code to start my UI. The Installer
would be registered through the manifest.mf instead of using any
layer.xml entries. An example can be viewed here:

https://github.com/kunstmusik/blue/blob/develop/TestApps/JfxControlsTest/TestApp/manifest.mf
https://github.com/kunstmusik/blue/blob/develop/TestApps/JfxControlsTest/TestApp/src/blue/jfxcontrolstest/Installer.java

I think I just used the "New File" template for Module installer to
create this particular test app, and it added the manifest entry for
me.  The same technique could be used for your own Swing apps too, if
you're not looking to use NB's own GUI system.

Hope that's useful and good luck!
steven

On Wed, Jan 6, 2016 at 8:44 AM, geertjan wielenga
<[email protected]> wrote:
>
>
> Clearly a lot to learn still -- best thing you can do is to get this book:
> leanpub.com/nbp4beginners
>
> And, indeed, when you create a new NetBeans module in your application, you
> can add a new layer.xml file to it, via the New File dialog.
>
> Probably this series will be good for you too:
> https://platform.netbeans.org/tutorials/nbm-selection-1.html
>
> However, there's really no better way to get started than to get the book on
> leanpub.com referenced above.
>
> Gj
>
>
> On 6-1-2016 13:22, ctajuggler wrote:
>>
>> Ok thanks, I see.
>>
>> What I'd like to get is a minimal netbeans platform GUI application, so I
>> can configure my own menu bar, toolbar etc. I've looked around a lot and it
>> seems the only way to achieve this is to edit the layers.xml file, which
>> doesn't appear in netbeans 8.1 projects.
>>
>> Can you please direct me to where I might read on how to do this?
>>
>>
>>
>>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.