Gumnaam | 1 Sep 01:27
Picon

Context Aware Auto Complete

this has been bugging me for a long time. may be there is a solution, 
but I haven't found it.

When I do

SomeClass abc = new S<Alt+Space>.

I am presented with a alphabetically sorted list of all Class names 
beginning with S.
This is completely useless, why not just pull out  a list of all 
classes, that can be assignable to to SomeClass
and start with S.

this is very easy to do, as java provides instanceof operator, or 
Class.isAssignable method.

Gumnaam | 1 Sep 01:29
Picon

freeform project and javadocs

Is there a way to associate javadocs with Jars in  a free form project.
I can't use Library manager in Free form project.
An ideal solution to be to just point NB to a bunch of ZIPs/Dirs 
containing javadocs
and have NB figure out appropriate javadocs from there.

thanks

John Resler | 1 Sep 01:49
Picon

Re: Netbeans 5.x different/better LookAndFeel options?

There is a netbeans Substance module that makes netbeans look and behave with the various and extensive Substance Look and Feels. You might give that a shot. Also, I believe you can pass command line parameters to the nb startup executable that allow you to use external look and feels such as the Skinlf lnf, etc. Good luck and enjoy.

On 8/30/06, Sandeep Khanna <sandeep.khanna <at> villanova.edu> wrote:
I am using Mandriva Linux 2006 Gnome desktop with msfonts rpm installed.

I am looking for tips & suggestions on using alternate LookAndFeel
implementations with the Netbeans 5.x (I am using 5.5 beta 2 at the
moment)

I have used JGoodies in the past but that was easy to install &
configure with Netbeans 3.6. The Netbeans folders have changed quite a
lot since then.

--Sandeep Khanna



--
John M. Resler
901 North Westview Drive
Derby, Kansas 67037
Chuck Davis | 1 Sep 03:57
Picon

Re: Netbeans 5.x different/better LookAndFeel options?

Yes, Ramon, NB running on KDE assumes whatever the KDE theme happens
to be.  I seldom change the theme because SUSE usually ships with one
I like (except for the really, really stupid background picture which
is the first thing I have to modify).  I tweak it a little because I
like 32 pixel icons better than 48s.  I can't stand the stupid
bouncing ball so I set that from 30 seconds to 1 but that's close to
all I do to change my desktop.

Additionally, the developers have set the NB installer to install an
icon on the KDE desktop.  I never imagined that would happen because
of Sun's fixation with all things GNOME but it is a nice touch that I
appreciate.

I've attached a couple of pictures so that you can see the effect of
changing the KDE theme, as requested.

Chuck

On 8/31/06, Ramón Ramos <r.ramos <at> freenet.de> wrote:
>
> What do you mean with NB on KDE. Do you have a screenshot? Have you got NB
> to
> use your KDE-Themes?
>
>
> Chuck Davis-3 wrote:
> >
> > Yes, "Ugly" is very subjective.  I think Eclipse is horribly ugly.
> > But NB on KDE is quite polished!
> >
Chuck Davis | 1 Sep 03:59
Picon

Re: Netbeans 5.x different/better LookAndFeel options?

Ramon:

Oops!  Gmail burped.  Attached is second shot.

On 8/31/06, Chuck Davis <cjgunzel <at> gmail.com> wrote:
> Yes, Ramon, NB running on KDE assumes whatever the KDE theme happens
> to be.  I seldom change the theme because SUSE usually ships with one
> I like (except for the really, really stupid background picture which
> is the first thing I have to modify).  I tweak it a little because I
> like 32 pixel icons better than 48s.  I can't stand the stupid
> bouncing ball so I set that from 30 seconds to 1 but that's close to
> all I do to change my desktop.
>
> Additionally, the developers have set the NB installer to install an
> icon on the KDE desktop.  I never imagined that would happen because
> of Sun's fixation with all things GNOME but it is a nice touch that I
> appreciate.
>
> I've attached a couple of pictures so that you can see the effect of
> changing the KDE theme, as requested.
>
> Chuck
>
>
> On 8/31/06, Ramón Ramos <r.ramos <at> freenet.de> wrote:
> >
> > What do you mean with NB on KDE. Do you have a screenshot? Have you got
> NB
> > to
> > use your KDE-Themes?
> >
> >
> > Chuck Davis-3 wrote:
> > >
> > > Yes, "Ugly" is very subjective.  I think Eclipse is horribly ugly.
> > > But NB on KDE is quite polished!
> > >
>
>
Chuck Davis | 1 Sep 04:00
Picon

Re: Netbeans 5.x different/better LookAndFeel options?

Yes, Ramon, NB running on KDE assumes whatever the KDE theme happens to be.  I seldom change the theme because
SUSE usually ships with one I like (except for the really, really stupid background picture which is the
first thing I have to modify).  I tweak it a little because I like 32 pixel icons better than 48s.  I can't stand
the stupid bouncing ball so I set that from 30 seconds to 1 but that's close to all I do to change my desktop.  

Additionally, the developers have set the NB installer to install an icon on the KDE desktop.  I never
imagined that would happen because of Sun's fixation with all things GNOME but it is a nice touch that I appreciate.

I've attached a couple of pictures so that you can see the effect of changing the KDE theme, as requested.

Chuck

On 8/31/06, Ramón Ramos <r.ramos <at> freenet.de> wrote:
> 
> What do you mean with NB on KDE. Do you have a screenshot? Have you got NB
> to
> use your KDE-Themes?
> 
> 
> Chuck Davis-3 wrote:
> > 
> > Yes, "Ugly" is very subjective.  I think Eclipse is horribly ugly.
> > But NB on KDE is quite polished!
> > 

Chuck Davis | 1 Sep 04:07
Picon

Re: Desktop app: how to tie Swing and JPA

Have you looked at the tutorials?

On 8/31/06, Witold Szczerba <pljosh.mail <at> gmail.com> wrote:
> 2006/8/31, dwieringa <dnabble <at> oursmall.net>:
> > Question:  What are some recommended resources for getting up to speed on
> > best practises of tieing a swing interface to JPA?
>
> Hi, that is what bites me for some time. I want to prototype some
> application that has UI in Swing/NB Platform and EJB3+JPA connected to
> desktop application using either JAX-WS or native jee5
> RMI/IIOP/whatever they call it...
>
> I am looking forward for some suggestion, however in a mean time I
> have created one very simple desktop application with bundled database
> HSQL and JPA from Hibernate EM.
> I have used JGoodies binding framework. I used SelectionInList and
> BeanAdapter classes (on my form there is a JTable with all visits of
> logged user, when you select one row of a table then its listener is
> loading selected visits' properties into beanAdapter.
>
> Then I have created JTextFields and JSpinners by dropping them on a
> form, then selected  JSpinners and JTextFields one by one, and entered
> my own factory methods in "Properties/Code/Custom Creation Code" like
> this:
>
>   model.jSpinnerFactory();
>
> This method creates new JSpinner, adds to it some listener (which
> notifies it when entity is selected from JTable) and returns this
> jSpinner.
>
> Then I went to "Properties/Model" and entered there code like this:
>
>   model.spinnerNumberModelFactory("someProperty")
>
> This is the method that actually creates JSpinner model using JGoodies
> data binding (it binds this model to BeanAdapter.
> There is SelectionInList involved as well, but this is something you
> have to figure out by yourself (I couldn't understand this JGoodies
> binding for couple of days until I was ready to use it, so you have to
> go through their articles, presentations and tutorials by yourself.
>
> I know this is all a litle bit raw, but till now I have not found
> anything better. There is this JSR-295 that will address it to make it
> a standard way, there is also some JSR for preparing Swing for easier
> data binding, but until Java 7 we are all by our own in this area.
>
> Actually I really DO NOT UNDERSTAND this... Swing is so old already,
> and there is still no CLEAR and EASY way to bind a bunch of its basic
> components to properties of some object (like JPA entity, which looks
> from outside as a regular java class with properties) without writing
> hundreds lines of stupid, error prone code :/ But this JGoodies is a
> step in a good direction, so think about this.
>
> I would be very glad to hear from this great community: how are you
> dealing with binding swing forms with jpa/database to get simple
> functionality (like creating a form with swing widgets and binding
> them to database, so one could load any JPA bean, and its properties
> would be automatically loaded to widgets' models, and vice versa -
> someone is changing a jTextField, press 'save' button and it goes
> automatically into a database... I found frustrating the fact, that
> JGoodies binding works best if your model is a JavaBean with bound
> properties, but JPA does not have bound properties!... and I am not
> going to have 3 layers of data: JPA <--> JavaBeans <--> widgets'
> models)
>

Chuck Davis | 1 Sep 04:14
Picon

Re: Netbeans 5.x different/better LookAndFeel options?

Ramon:

Sorry for the double post.

I should add that I am currently running on 1.6-b97 but NB/KDE acted
the same way on 1.5.0.  There have been times in the past when Java
and KDE had bumps in the road but things have been smooth lately.

On 8/31/06, Chuck Davis <cjgunzel <at> gmail.com> wrote:
> Yes, Ramon, NB running on KDE assumes whatever the KDE theme happens to be.
> I seldom change the theme because SUSE usually ships with one I like (except
> for the really, really stupid background picture which is the first thing I
> have to modify).  I tweak it a little because I like 32 pixel icons better
> than 48s.  I can't stand the stupid bouncing ball so I set that from 30
> seconds to 1 but that's close to all I do to change my desktop.
>
> Additionally, the developers have set the NB installer to install an icon on
> the KDE desktop.  I never imagined that would happen because of Sun's
> fixation with all things GNOME but it is a nice touch that I appreciate.
>
> I've attached a couple of pictures so that you can see the effect of
> changing the KDE theme, as requested.
>
> Chuck
>
>
> On 8/31/06, Ramón Ramos <r.ramos <at> freenet.de> wrote:
> >
> > What do you mean with NB on KDE. Do you have a screenshot? Have you got
> NB
> > to
> > use your KDE-Themes?
> >
> >
> > Chuck Davis-3 wrote:
> > >
> > > Yes, "Ugly" is very subjective.  I think Eclipse is horribly ugly.
> > > But NB on KDE is quite polished!
> > >
>
>
>

Bruce Alspaugh | 1 Sep 04:24
Picon

Re: Desktop app: how to tie Swing and JPA

On 8/31/06, Witold Szczerba <pljosh.mail <at> gmail.com> wrote:


I would be very glad to hear from this great community: how are you
dealing with binding swing forms with jpa/database to get simple
functionality (like creating a form with swing widgets and binding
them to database, so one could load any JPA bean, and its properties
would be automatically loaded to widgets' models, and vice versa -
someone is changing a jTextField, press 'save' button and it goes
automatically into a database... I found frustrating the fact, that
JGoodies binding works best if your model is a JavaBean with bound
properties, but JPA does not have bound properties!... and I am not
going to have 3 layers of data: JPA <--> JavaBeans <--> widgets'
models)


I use Hibernate and JGoodies, but I don't use a JPA layer.  Hibernate can return a list of JavaBeans with bound properties as an HSQL query result.  The only thing in the bean is just bound properties corresponding to the columns in the database table.  I then take that list and immediately dump it into a GlazedList ( http://www.publicobject.com/glazedlists) so I can display the beans in JTables.  When the user selects a particular bean to edit in a single-record form, I put it into a JGoodies PresentationModel so I can get TextFields bound to individual properties of the bean.  When I want to save back to the database, I just tell Hibernate to save the session.

Bruce


Wade Chandler | 1 Sep 04:36
Picon
Favicon

Re: Desktop app: how to tie Swing and JPA

--- Witold Szczerba <pljosh.mail <at> gmail.com> wrote:
> I found frustrating
> the fact, that
> JGoodies binding works best if your model is a
> JavaBean with bound
> properties, but JPA does not have bound
> properties!... and I am not
> going to have 3 layers of data: JPA <--> JavaBeans
> <--> widgets'
> models)
> 

Bound properties are the easy part, and having a
middle abstraction is usually good; that way you can
use beans to allow simple checks.  Say a bean which is
bound to only a couple fields in a database to be able
to check dates and status and the like (JPA or
Hibernate or the like).  But, JPA makes this stuff
easier than it has been.  It takes annotations and
uses those to bind the beans to the database.  So, if
before opening a form you begin a transaction or on
edit of a field (using events to start the
transaction) you should be able to commit the
transaction and the data be saved directly to the
database.  I may be missing some of what you were
wanting from the JPA perspective here, but that is
pretty much direct to the database.  You define the
JPA interaction in the bean using annotations and then
you bind the beans to a form with a binding framework
of your choice.  You should be able to use Hibernate
this same way.

Wade


Gmane