Re: NEED EXAMPLE CODE: how to use database to fill out NB Form

2021-03-14 Thread HRH
 In the old day, I used to have a java code to dynamically populate DB tables 
from a form. I have to search my code archives on a different system and maybe 
I can find them for you.
PS: Nowadays, I accomplish the same functionality with Java EE, Java Server 
Faces (JSF) front end, and Object Relational Mapping (ORM)at the back end with 
very little code.

On Sunday, March 14, 2021, 11:02:37 PM GMT+3:30, Amy Wolf 
 wrote:  
 
 Could someone please provide sample Java code f9or NetBeans to capture data 
filled out in NB form into a Java derby database? OS is Windows 10 -- latest 
version of NetBeans.

URGENT!

Thanks.

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

  

Re: NEED EXAMPLE CODE: how to use database to fill out NB Form

2021-03-14 Thread Mark A. Flacy
Greetings,

Is there a base project that contains what you've attempted to this point that 
could be shared amongst us?
  
Are you talking about a NetBeans application to do this?  Or is this some 
other Java application for which you want to use NetBeans to compile and test?

-- 
Mark A. Flacy
mfl...@verizon.net

On Sunday, March 14, 2021 2:32:32 PM CDT Amy Wolf wrote:
> Could someone please provide sample Java code f9or NetBeans to capture data
> filled out in NB form into a Java derby database? OS is Windows 10 --
> latest version of NetBeans.
> 
> URGENT!
> 
> Thanks.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists





-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: NEED EXAMPLE CODE: how to use database to fill out NB Form

2021-03-14 Thread Amy Wolf
Thanks for your reply.  This is the Java to SQL connection code in NetBeans 8.2:

con = DriverManager.getConnection("jdbc:mysql://localhost/iamysql-userdata", 
"root", "");


However, I am getting an error that this connection is not valid. I have the 
jar file in my library, and it says it's installed or scheduled to be installed.
"java.sql SQL Exception: No suitable driver fund for 
jdbc.mysql://localhost//iamysql-userdata"



Any clues?

Thanks!

On 2021/03/14 20:28:20, John Mc  wrote: 
> Geertjans link shows you how to use NetBeans to connect to a Java Derby
> Server. But there was one key thing in that link. The JDBC connection
> string for NetBeans to connect to that database.
> 
> Taking that knowledge you could look at the link I sent on. Replace the
> usual connection string with the knowledge from Geertjans link (and you may
> need to include a derby jar into your swing project's classpath) and you
> should be well on the way to solving the initial ask...
> 
> John
> 
> On Sun 14 Mar 2021, 20:23 Geertjan Wielenga,
>  wrote:
> 
> >
> > https://www.sis.pitt.edu/mbsclass/is2560/resources/UsingDerbyandDBMSinServlets.pdf
> >
> > Gj
> >
> > On Sun, Mar 14, 2021 at 9:18 PM Amy Wolf  wrote:
> >
> >> John: I have been googling. The problem is that the page Gertjan referred
> >> to shows how to insert ALREADY EXISTING DATA into a table.
> >>
> >> My goal is to take the data from the JAVA form and have it insert into
> >> the Derby table every time a user comes along and fills it out.
> >>
> >> Thanks.
> >>
> >> On 2021/03/14 20:10:35, John Mc  wrote:
> >> > Amy,
> >> >
> >> > Have you tried googling?
> >> >
> >> > A quick search found me:
> >> >
> >> https://www.javaguides.net/2019/07/registration-form-using-java-swing-jdbc-mysql-example-tutorial.html?m=1
> >> >
> >> >
> >> > This shows you a simple swing application with MySQL. If you couple this
> >> > with Geertjan's link it should get you what you want...
> >> >
> >> > Regards
> >> >
> >> > John
> >> >
> >> >
> >> > On Sun 14 Mar 2021, 19:52 Geertjan Wielenga,
> >> >  wrote:
> >> >
> >> > > https://netbeans.apache.org/kb/docs/ide/java-db.html
> >> > >
> >> > > Gj
> >> > >
> >> > > On Sun, Mar 14, 2021 at 8:32 PM Amy Wolf  wrote:
> >> > >
> >> > >> Could someone please provide sample Java code f9or NetBeans to
> >> capture
> >> > >> data filled out in NB form into a Java derby database? OS is Windows
> >> 10 --
> >> > >> latest version of NetBeans.
> >> > >>
> >> > >> URGENT!
> >> > >>
> >> > >> Thanks.
> >> > >>
> >> > >> -
> >> > >> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> >> > >> For additional commands, e-mail: users-h...@netbeans.apache.org
> >> > >>
> >> > >> For further information about the NetBeans mailing lists, visit:
> >> > >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >> > >>
> >> > >>
> >> >
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> >> For additional commands, e-mail: users-h...@netbeans.apache.org
> >>
> >> For further information about the NetBeans mailing lists, visit:
> >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >>
> >>
> 

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: NEED EXAMPLE CODE: how to use database to fill out NB Form

2021-03-14 Thread John Mc
Geertjans link shows you how to use NetBeans to connect to a Java Derby
Server. But there was one key thing in that link. The JDBC connection
string for NetBeans to connect to that database.

Taking that knowledge you could look at the link I sent on. Replace the
usual connection string with the knowledge from Geertjans link (and you may
need to include a derby jar into your swing project's classpath) and you
should be well on the way to solving the initial ask...

John

On Sun 14 Mar 2021, 20:23 Geertjan Wielenga,
 wrote:

>
> https://www.sis.pitt.edu/mbsclass/is2560/resources/UsingDerbyandDBMSinServlets.pdf
>
> Gj
>
> On Sun, Mar 14, 2021 at 9:18 PM Amy Wolf  wrote:
>
>> John: I have been googling. The problem is that the page Gertjan referred
>> to shows how to insert ALREADY EXISTING DATA into a table.
>>
>> My goal is to take the data from the JAVA form and have it insert into
>> the Derby table every time a user comes along and fills it out.
>>
>> Thanks.
>>
>> On 2021/03/14 20:10:35, John Mc  wrote:
>> > Amy,
>> >
>> > Have you tried googling?
>> >
>> > A quick search found me:
>> >
>> https://www.javaguides.net/2019/07/registration-form-using-java-swing-jdbc-mysql-example-tutorial.html?m=1
>> >
>> >
>> > This shows you a simple swing application with MySQL. If you couple this
>> > with Geertjan's link it should get you what you want...
>> >
>> > Regards
>> >
>> > John
>> >
>> >
>> > On Sun 14 Mar 2021, 19:52 Geertjan Wielenga,
>> >  wrote:
>> >
>> > > https://netbeans.apache.org/kb/docs/ide/java-db.html
>> > >
>> > > Gj
>> > >
>> > > On Sun, Mar 14, 2021 at 8:32 PM Amy Wolf  wrote:
>> > >
>> > >> Could someone please provide sample Java code f9or NetBeans to
>> capture
>> > >> data filled out in NB form into a Java derby database? OS is Windows
>> 10 --
>> > >> latest version of NetBeans.
>> > >>
>> > >> URGENT!
>> > >>
>> > >> Thanks.
>> > >>
>> > >> -
>> > >> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> > >> For additional commands, e-mail: users-h...@netbeans.apache.org
>> > >>
>> > >> For further information about the NetBeans mailing lists, visit:
>> > >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>> > >>
>> > >>
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>


Re: NEED EXAMPLE CODE: how to use database to fill out NB Form

2021-03-14 Thread Geertjan Wielenga
https://www.sis.pitt.edu/mbsclass/is2560/resources/UsingDerbyandDBMSinServlets.pdf

Gj

On Sun, Mar 14, 2021 at 9:18 PM Amy Wolf  wrote:

> John: I have been googling. The problem is that the page Gertjan referred
> to shows how to insert ALREADY EXISTING DATA into a table.
>
> My goal is to take the data from the JAVA form and have it insert into the
> Derby table every time a user comes along and fills it out.
>
> Thanks.
>
> On 2021/03/14 20:10:35, John Mc  wrote:
> > Amy,
> >
> > Have you tried googling?
> >
> > A quick search found me:
> >
> https://www.javaguides.net/2019/07/registration-form-using-java-swing-jdbc-mysql-example-tutorial.html?m=1
> >
> >
> > This shows you a simple swing application with MySQL. If you couple this
> > with Geertjan's link it should get you what you want...
> >
> > Regards
> >
> > John
> >
> >
> > On Sun 14 Mar 2021, 19:52 Geertjan Wielenga,
> >  wrote:
> >
> > > https://netbeans.apache.org/kb/docs/ide/java-db.html
> > >
> > > Gj
> > >
> > > On Sun, Mar 14, 2021 at 8:32 PM Amy Wolf  wrote:
> > >
> > >> Could someone please provide sample Java code f9or NetBeans to capture
> > >> data filled out in NB form into a Java derby database? OS is Windows
> 10 --
> > >> latest version of NetBeans.
> > >>
> > >> URGENT!
> > >>
> > >> Thanks.
> > >>
> > >> -
> > >> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> > >> For additional commands, e-mail: users-h...@netbeans.apache.org
> > >>
> > >> For further information about the NetBeans mailing lists, visit:
> > >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> > >>
> > >>
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>


Re: NEED EXAMPLE CODE: how to use database to fill out NB Form

2021-03-14 Thread Amy Wolf
John: I have been googling. The problem is that the page Gertjan referred to 
shows how to insert ALREADY EXISTING DATA into a table.

My goal is to take the data from the JAVA form and have it insert into the 
Derby table every time a user comes along and fills it out.

Thanks.

On 2021/03/14 20:10:35, John Mc  wrote: 
> Amy,
> 
> Have you tried googling?
> 
> A quick search found me:
> https://www.javaguides.net/2019/07/registration-form-using-java-swing-jdbc-mysql-example-tutorial.html?m=1
> 
> 
> This shows you a simple swing application with MySQL. If you couple this
> with Geertjan's link it should get you what you want...
> 
> Regards
> 
> John
> 
> 
> On Sun 14 Mar 2021, 19:52 Geertjan Wielenga,
>  wrote:
> 
> > https://netbeans.apache.org/kb/docs/ide/java-db.html
> >
> > Gj
> >
> > On Sun, Mar 14, 2021 at 8:32 PM Amy Wolf  wrote:
> >
> >> Could someone please provide sample Java code f9or NetBeans to capture
> >> data filled out in NB form into a Java derby database? OS is Windows 10 --
> >> latest version of NetBeans.
> >>
> >> URGENT!
> >>
> >> Thanks.
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> >> For additional commands, e-mail: users-h...@netbeans.apache.org
> >>
> >> For further information about the NetBeans mailing lists, visit:
> >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >>
> >>
> 

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: NEED EXAMPLE CODE: how to use database to fill out NB Form

2021-03-14 Thread John Mc
Amy,

Have you tried googling?

A quick search found me:
https://www.javaguides.net/2019/07/registration-form-using-java-swing-jdbc-mysql-example-tutorial.html?m=1


This shows you a simple swing application with MySQL. If you couple this
with Geertjan's link it should get you what you want...

Regards

John


On Sun 14 Mar 2021, 19:52 Geertjan Wielenga,
 wrote:

> https://netbeans.apache.org/kb/docs/ide/java-db.html
>
> Gj
>
> On Sun, Mar 14, 2021 at 8:32 PM Amy Wolf  wrote:
>
>> Could someone please provide sample Java code f9or NetBeans to capture
>> data filled out in NB form into a Java derby database? OS is Windows 10 --
>> latest version of NetBeans.
>>
>> URGENT!
>>
>> Thanks.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>


Re: NEED EXAMPLE CODE: how to use database to fill out NB Form

2021-03-14 Thread Geertjan Wielenga
https://netbeans.apache.org/kb/docs/ide/java-db.html

Gj

On Sun, Mar 14, 2021 at 8:32 PM Amy Wolf  wrote:

> Could someone please provide sample Java code f9or NetBeans to capture
> data filled out in NB form into a Java derby database? OS is Windows 10 --
> latest version of NetBeans.
>
> URGENT!
>
> Thanks.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>


NEED EXAMPLE CODE: how to use database to fill out NB Form

2021-03-14 Thread Amy Wolf
Could someone please provide sample Java code f9or NetBeans to capture data 
filled out in NB form into a Java derby database? OS is Windows 10 -- latest 
version of NetBeans.

URGENT!

Thanks.

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Profiler warnings - Illegal reflective access

2021-03-14 Thread Zahid Rahman
I have  already put it in a bug report for this warning. Actually Somebody
did it for me.
I was informed by the mvn expert that this  happened because the Unbuntu
included the incorrect libraries in debian.

If you download direct from maven website then this warning  shouldn't
appear.

That was the case when I did that soon after with  jdk 11. The warning did
disappear.

If you use jdk 8 then the warnings don't appear because jdk 8 doesnt know
anything about those libraries.

So it is a ubuntu maven issue.

Z.

https://www.backbutton.co.uk/
¯\_(ツ)_/¯
♡۶♡۶ ♡۶

On Sun, 14 Mar 2021, 08:06 Bradley Willcott, 
wrote:

> Hi there,
>
> Should I put this into a bug report?
>
> This showed up when I was trying to profile an application that was
> accessing MySQL server.  I was profiling SQL Queries:
>
> Profiler Agent: Waiting for connection on port 5140, timeout 10 seconds 
> (Protocol version: 18)
> Profiler Agent: Established connection with the tool
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by 
> org.netbeans.lib.profiler.server.ClassLoaderManager to method 
> java.lang.ClassLoader.findLoadedClass(java.lang.String)
> WARNING: Please consider reporting this to the maintainers of 
> org.netbeans.lib.profiler.server.ClassLoaderManager
> WARNING: Use --illegal-access=warn to enable warnings of further illegal 
> reflective access operations
> WARNING: All illegal access operations will be denied in a future release
> Profiler Agent: Local accelerated session
> Profiler Agent: Initializing...
> Profiler Agent: Options: 
> >/home/bwillcott/apps/netbeans/v12.1/netbeans/profiler/lib,5140,10<
> Profiler Agent: Initialized successfully
> Profiler Agent: 250 classes cached.
>
> I am concerned about the WARNINGs.
>
> Thanks,
> Brad.
>
>
>


Fwd: Profiler warnings - Illegal reflective access

2021-03-14 Thread Bradley Willcott

Sorry, I forgot to provide some context:

Netbeans 12.1
Fedora Linux 32

This text appears before the program starts to run, and just after it 
has been successfully compiled.


Brad.
 Forwarded Message 
Subject:Profiler warnings - Illegal reflective access
Date:   Sun, 14 Mar 2021 16:06:29 +0800
From:   Bradley Willcott 
To: NetBeans Mailing 



Hi there,

Should I put this into a bug report?

This showed up when I was trying to profile an application that was 
accessing MySQL server.  I was profiling SQL Queries:


Profiler Agent: Waiting for connection on port 5140, timeout 10 seconds 
(Protocol version: 18)
Profiler Agent: Established connection with the tool
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by 
org.netbeans.lib.profiler.server.ClassLoaderManager to method 
java.lang.ClassLoader.findLoadedClass(java.lang.String)
WARNING: Please consider reporting this to the maintainers of 
org.netbeans.lib.profiler.server.ClassLoaderManager
WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations
WARNING: All illegal access operations will be denied in a future release
Profiler Agent: Local accelerated session
Profiler Agent: Initializing...
Profiler Agent: Options: 
>/home/bwillcott/apps/netbeans/v12.1/netbeans/profiler/lib,5140,10<
Profiler Agent: Initialized successfully
Profiler Agent: 250 classes cached.

I am concerned about the WARNINGs.

Thanks,
Brad.




Profiler warnings - Illegal reflective access

2021-03-14 Thread Bradley Willcott

Hi there,

Should I put this into a bug report?

This showed up when I was trying to profile an application that was 
accessing MySQL server.  I was profiling SQL Queries:


Profiler Agent: Waiting for connection on port 5140, timeout 10 seconds 
(Protocol version: 18)
Profiler Agent: Established connection with the tool
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by 
org.netbeans.lib.profiler.server.ClassLoaderManager to method 
java.lang.ClassLoader.findLoadedClass(java.lang.String)
WARNING: Please consider reporting this to the maintainers of 
org.netbeans.lib.profiler.server.ClassLoaderManager
WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations
WARNING: All illegal access operations will be denied in a future release
Profiler Agent: Local accelerated session
Profiler Agent: Initializing...
Profiler Agent: Options: 
>/home/bwillcott/apps/netbeans/v12.1/netbeans/profiler/lib,5140,10<
Profiler Agent: Initialized successfully
Profiler Agent: 250 classes cached.

I am concerned about the WARNINGs.

Thanks,
Brad.