Re: JTable - Null Pointer - GUI editor

2019-06-26 Thread Helmut Leininger
Michael, I assume you have  created your GUI by New JFrame Form", right? At least, I hope so. if you look at main() you will find something like:     new NewJFrame() ... NewJFrame ist the name you have given during the creation of your class / form. This creates the form and first executes its C

Re: Reserved keywords for SQL files

2019-06-26 Thread Pete Whelpton
Sorry, yes that's a source file. I believe the keyword list is hard coded (I looked for this before!), and based on an older ISO standard - which makes sense rather than adding in Pl/SQl, T-SQL extensions etc. It would be quick to update the list for a newer standard. I don't know enough about the

RE: Reserved keywords for SQL files

2019-06-26 Thread Greenberg, Gary
There is no such file in the netbeans binary distro. I haven’t compile it from source, though. Gary Greenberg Staff Software Engineer Data Product Development, BI-A E: ggree...@visa.com M: 650-269-7902 [EmailSig-TaglineVersion] From: Pete Whelpton Sent: Wednesday, June 26, 2019 3:29 PM To: Gree

Re: Reserved keywords for SQL files

2019-06-26 Thread Pete Whelpton
netbeans/ide/dbapi/src/org/netbeans/modules/db/api/sql/SQLKeywords.java I think.. On Wed, 26 Jun 2019, 23:11 Greenberg, Gary, wrote: > I am working with SQL scripts in the NB 11 right now and noticed that good > portion of keywords in it are marked in blue colors, while tables and > column names

Reserved keywords for SQL files

2019-06-26 Thread Greenberg, Gary
I am working with SQL scripts in the NB 11 right now and noticed that good portion of keywords in it are marked in blue colors, while tables and column names, as well as values displayed in green. That is very convenient and allows to catch some misspelling right away. However some of the keywor

Re: JTable - Null Pointer - GUI editor

2019-06-26 Thread Bayless
The code you show does not populate the data vector so it has no rows unless you just haven't shown where you do that. You can't set a value in a row that does not exist, thus null probably. Also num or row could be null. Finally, your column numbers in the setValueAt lines do not agree with yo

Re: Apache NetBeans 11.1-beta2 Is Available for Testing!

2019-06-26 Thread Geertjan Wielenga
Excellent, great work! Especially the Java EE 8 integration (Maven only, Gradle would be excellent too), and Payara integration would be great for us all to take a look at here. Gj On Wed, 26 Jun 2019 at 20:27, Neil C Smith wrote: > Dear Community, > > I'd like to announce that the second bet

Re: JTable - Null Pointer - GUI editor

2019-06-26 Thread Helmut Leininger
Once again: did you initzialize num and row ? When I design your example, I get: ...     scriptTable.setModel(new javax.swing.table.DefaultTableModel(     new Object [][] {     {null, null, null, null},     {null, null, null, null},     {null, null

Re: JTable - Null Pointer - GUI editor

2019-06-26 Thread mmouer
This is the generated code: private void initComponents() {         jScrollPane1 = new javax.swing.JScrollPane();         scriptTable = new javax.swing.JTable();         setSize(new java.awt.Dimension(200, 200));         scriptTable.setModel(new javax.swing.table.DefaultTableModel(            

[java] Navigate Go To Source Not Working as Expected

2019-06-26 Thread Arslanian, Jared A.
When trying to use maven version ranges for inter project dependencies, NetBeans seemingly changes how the Navigate Go To Source or simply the CTRL-Click works. I am used to the nice capability to quickly CTRL-click and jump to the source file that is already open within the same netbeans instance

Re: Swing in Netbeans

2019-06-26 Thread Peter Toye
Dear Geertjan, Thanks. It's just that (as I reported in a previous post) I had problems opening my old project in NB 11. I then created a library called swing-layout but didn't give it a classpath - now the project compiles OK even with the missing classpath (not sure how - should it have one?)

Re: Swing in Netbeans

2019-06-26 Thread Glenn Holmer
On 6/26/19 9:59 AM, Peter Toye wrote: > Having recently decided to modify an ancient Java program I installed NB > version 11, but there doesn't seem to be any support for Swing projects > in it. Do I have to convert to JavaFX (which I'd first have to learn)? > Or is it easier just to continue with

Re: Swing in Netbeans

2019-06-26 Thread Geertjan Wielenga
You’re going to need to define what “Swing projects” are. Swing is supported out of the box, NetBeans Platform applications too, which are Swing projects, too. Gj On Wed, 26 Jun 2019 at 16:59, Peter Toye wrote: > Having recently decided to modify an ancient Java program I installed NB > version

Swing in Netbeans

2019-06-26 Thread Peter Toye
Having recently decided to modify an ancient Java program I installed NB version 11, but there doesn't seem to be any support for Swing projects in it. Do I have to convert to JavaFX (which I'd first have to learn)? Or is it easier just to continue with Netbeans version 8? Thanks in advance,

Re: JTable - Null Pointer - GUI editor

2019-06-26 Thread Bayless
Or maybe you have not created the model or supplied it with starting data vector. Bayless On 6/26/19 12:42 AM, Helmut Leininger wrote: Hi Michael, without more information it is very difficult to say. It could be that either scriptTable, num, or row is not set. I would try to use the deb