Re: php development

2020-07-06 Thread Juan Algaba
> Will someone(kindly or otherwise) point me to docs that show how to set
> up NB-12 with a server to write/debug/test php/mysql stuff locally?

Here you go: http://netbeans.apache.org/kb/docs/php/
You'll see PHP 5 mentioned a lot, but just ignore that and use 7.x
(where x is the newest your host provides), the instructions haven't
changed significantly.

On Mon, Jul 6, 2020 at 8:03 PM Alan  wrote:
>
> That's a question with a pretty broad scope. There isn't much that's Netbeans 
> specific. My preferred approach is to set up a local development environment 
> with Apache and MySQL, but there's a single-threaded web server built into 
> PHP as well. Getting the xdebug set up seems to cause the most trouble, but 
> there are lots of resources for that.
>
> After that it's really just a matter of telling Netbeans where your php.exe 
> is and which version to do syntax checking for.
>
> If you are debugging on your host, they probably won't have xdebug available 
> and you're stuck with debugging with echo and print_r();.
>
> Beyond the basics, the built-in composer interface is a little clunky and 
> runs in non-interactive mode. For this reason I personally prefer to use 
> composer from the command line.
>
> Hope that helps...
>
> On 2020-07-06 21:20, Ernie Rael wrote:
>
> On 7/6/2020 4:47 PM, Alan wrote:
>
>
> 5.6 and 7.0 are ancient, unsupported.You should be running 7.3 at least, and 
> 7.4 offers more great features and performance.
>
> Thanks for the info, but I've got 6 months. I was in a rush, my bad for not 
> doing up front research. I will certainly keep your words in mind and plan on 
> changing hosts. Fortunately my needs are simple for the foreseeable future. 
> Now that I look at current versions, I'm embarrassed that I got taken so 
> badly. But that's orthogonal to what I need now. (But any tips on how to find 
> a good host appreciated)
>
> Still, my main concern now is setting up NetBeans for php/mysql dev. I'm 
> hoping to get some links to best practice with NB docs so I won't start 
> digging in the wrong spot.
>
> -ernie
>
> If your starter kit package doesn't offer a current PHP, you have a crap 
> host. Likely there will be many other problems. I strongly suggest finding a 
> better one. [my day job is web hosting, I have seen many horror stories from 
> cheap hosts].
>
> On 2020-07-06 18:55, Ernie Rael wrote:
>
> Hi all,
>
> Perhaps I'm finally reaching the late 20th century...
>
> I've gotten a web hosting package (starter kit). It has mysql and php; php 
> 5.6 by default, can select 7.0. (MySql seems to be 5.6, coincidence?)
>
> Will someone(kindly or otherwise) point me to docs that show how to set up 
> NB-12 with a server to write/debug/test php/mysql stuff locally?
>
> Is there any disadvantage to selecting php 7.0?
>
> -ernie
>
>
> -
> 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
>
>
>


-- 

- Juan Algaba

-
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: php development

2020-07-06 Thread Alan
That's a question with a pretty broad scope. There isn't much that's 
Netbeans specific. My preferred approach is to set up a local 
development environment with Apache and MySQL, but there's a 
single-threaded web server built into PHP as well. Getting the xdebug 
set up seems to cause the most trouble, but there are lots of resources 
for that.


After that it's really just a matter of telling Netbeans where your 
php.exe is and which version to do syntax checking for.


If you are debugging on your host, they probably won't have xdebug 
available and you're stuck with debugging with echo and print_r();.


Beyond the basics, the built-in composer interface is a little clunky 
and runs in non-interactive mode. For this reason I personally prefer to 
use composer from the command line.


Hope that helps...

On 2020-07-06 21:20, Ernie Rael wrote:

On 7/6/2020 4:47 PM, Alan wrote:


5.6 and 7.0 are ancient, unsupported.You should be running 7.3 at 
least, and 7.4 offers more great features and performance.


Thanks for the info, but I've got 6 months. I was in a rush, my bad 
for not doing up front research. I will certainly keep your words in 
mind and plan on changing hosts. Fortunately my needs are simple for 
the foreseeable future. Now that I look at current versions, I'm 
embarrassed that I got taken so badly. But that's orthogonal to what I 
need now. (But any tips on how to find a good host appreciated)


Still, my main concern now is setting up NetBeans for php/mysql dev. 
I'm hoping to get some links to best practice with NB docs so I won't 
start digging in the wrong spot.


-ernie

If your starter kit package doesn't offer a current PHP, you have a 
crap host. Likely there will be many other problems. I strongly 
suggest finding a better one. [my day job is web hosting, I have seen 
many horror stories from cheap hosts].


On 2020-07-06 18:55, Ernie Rael wrote:

Hi all,

Perhaps I'm finally reaching the late 20th century...

I've gotten a web hosting package (starter kit). It has mysql and 
php; php 5.6 by default, can select 7.0. (MySql seems to be 5.6, 
coincidence?)


Will someone(kindly or otherwise) point me to docs that show how to 
set up NB-12 with a server to write/debug/test php/mysql stuff locally?


Is there any disadvantage to selecting php 7.0?

-ernie


-
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: Nb12 create package not working

2020-07-06 Thread Juan Algaba
People might be able to help you better with some more info:
* What build system are you using? If gradle, does your project get
recognized as a web app by netbeans (IIRC it's the green gradle icon
with a small blue world)?
* Are you doing this in the Projects Panel or the Files Panel
* When you right click an empty space in the Projects panel -> View
Java packages as  Which option is selected? (List, tree, reduced
tree)
* Does your new package have any java files in it? Can you try
creating a new Java class specifying the new package (even if you
didn't explicitly create the package beforehand)?

On Mon, Jul 6, 2020 at 12:19 AM Mauro Chi  wrote:
>
> If into nb12 on win10 with jdk 1.8 you try to create a new package or sub 
> package for a web app java with right click on source folder java, the new 
> created package appair with a icon like a simple dir and nb not detect the 
> new package like package



-- 

-Juan Algaba

-
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: php development

2020-07-06 Thread Ernie Rael

On 7/6/2020 4:47 PM, Alan wrote:


5.6 and 7.0 are ancient, unsupported.You should be running 7.3 at 
least, and 7.4 offers more great features and performance.


Thanks for the info, but I've got 6 months. I was in a rush, my bad for 
not doing up front research. I will certainly keep your words in mind 
and plan on changing hosts. Fortunately my needs are simple for the 
foreseeable future. Now that I look at current versions, I'm embarrassed 
that I got taken so badly. But that's orthogonal to what I need now. 
(But any tips on how to find a good host appreciated)


Still, my main concern now is setting up NetBeans for php/mysql dev. I'm 
hoping to get some links to best practice with NB docs so I won't start 
digging in the wrong spot.


-ernie

If your starter kit package doesn't offer a current PHP, you have a 
crap host. Likely there will be many other problems. I strongly 
suggest finding a better one. [my day job is web hosting, I have seen 
many horror stories from cheap hosts].


On 2020-07-06 18:55, Ernie Rael wrote:

Hi all,

Perhaps I'm finally reaching the late 20th century...

I've gotten a web hosting package (starter kit). It has mysql and 
php; php 5.6 by default, can select 7.0. (MySql seems to be 5.6, 
coincidence?)


Will someone(kindly or otherwise) point me to docs that show how to 
set up NB-12 with a server to write/debug/test php/mysql stuff locally?


Is there any disadvantage to selecting php 7.0?

-ernie


-
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: php development

2020-07-06 Thread Alan
5.6 and 7.0 are ancient, unsupported.You should be running 7.3 at least, 
and 7.4 offers more great features and performance.


If your starter kit package doesn't offer a current PHP, you have a crap 
host. Likely there will be many other problems. I strongly suggest 
finding a better one. [my day job is web hosting, I have seen many 
horror stories from cheap hosts].


On 2020-07-06 18:55, Ernie Rael wrote:

Hi all,

Perhaps I'm finally reaching the late 20th century...

I've gotten a web hosting package (starter kit). It has mysql and php; 
php 5.6 by default, can select 7.0. (MySql seems to be 5.6, coincidence?)


Will someone(kindly or otherwise) point me to docs that show how to 
set up NB-12 with a server to write/debug/test php/mysql stuff locally?


Is there any disadvantage to selecting php 7.0?

-ernie


-
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





php development

2020-07-06 Thread Ernie Rael

Hi all,

Perhaps I'm finally reaching the late 20th century...

I've gotten a web hosting package (starter kit). It has mysql and php; 
php 5.6 by default, can select 7.0. (MySql seems to be 5.6, coincidence?)


Will someone(kindly or otherwise) point me to docs that show how to set 
up NB-12 with a server to write/debug/test php/mysql stuff locally?


Is there any disadvantage to selecting php 7.0?

-ernie


-
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: Issue with recognizing functions

2020-07-06 Thread slipbits

Thanks


On 7/6/2020 9:39 AM, HRH wrote:
This statement in your codeSystem.out.println(attr.toString()); will 
not print the permissions. The toString() operation on 
PosixFilePermissions class requires a parameter. Here is the method 
signature:

PosixFilePermissions.toString​(Set perms)





On Monday, July 6, 2020, 8:08:10 PM GMT+4:30, slipbits 
 wrote:



I am trying to create files/directories and to assign attributes to 
them. I would like my software to play on multiple OS's and I am 
trying to find the Java way of identifying OS specific attributes. Two 
issues came up. In one, there is no discussion of Windows attributes. 
I have assumed that they are the same as Posix. In the second case, I 
found a method (fromString()) which looks like a useful thing to know 
but can't get either NB12 or OpenBeans to recognize it and I'm stumped.


The test code is:

package test;

import java.nio.file.attribute.PosixFilePermission.fromString;
import java.nio.file.attribute.PosixFilePermission;
import java.util.Set;

public class test {
   public static void main(String[] args) {
 Set attr = fromString("rwxrw");
 System.out.println(attr.toString());
   }; //  void main(String[] args)
}; // class test

I have tried to fix this with:

import java.nio.file.attribute.PosixFilePermission.*; and

Set attr = 
java.nio.file.attribute.PosixFilePermission.fromString("rwxrw");


without success. The puzzler is that the Java tutorial 
(https://docs.oracle.com/javase/tutorial/essential/io/fileAttr.html#dos) 
and the Java 1.8 documentation both seem to say that any of the above 
should work.


Can anyone please help. Are the Windows attributes the same as Posix, 
and how can I use fromString()?






unsubscribe

2020-07-06 Thread Qingtian Wang



-
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: Apache update server unavailable

2020-07-06 Thread Neil C Smith
On Mon, 6 Jul 2020 at 17:38, John G. Weed  wrote:
> Am trying to run updates on NetBeans 11.2. List of required updates seems to 
> work, however when I tell it to go ahead and update I get a pop up error 
> indicating that update server is unavailable...
>
> https://www.apache.org/dyn/closer.lua?action=download=netbeans/netbeans/11.2-u1/nbms/nb/org-netbeans-modules-updatecenters.nbm
>
> Mostly likely my problem... but checking if the us an external (to me) 
> connectivity issue?

It's not your problem.  Updates for 11.2 have been archived.
Theoretically it's now out of support.  So, ideally move to 12.0 if
you can.

But, we should probably consider how to make this work.  There's an
option in the closer.lua code to be archive aware, but it doesn't seem
to work.  Somehow we need to manage these links in a slightly
different way.

If you *really* need to get this to work with 11.2 then in the short
term you could probably remove / disable the existing update centre
and add

https://archive.apache.org/dist/netbeans/netbeans/11.2-u1/nbms/updates.xml

Possibly along with

https://archive.apache.org/dist/netbeans/netbeans/11.2/nbms/updates.xml

Caveat emptor!

Best wishes,

Neil

-
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: Issue with recognizing functions

2020-07-06 Thread HRH
 This statement in your code System.out.println(attr.toString()); will not 
print the permissions. The toString() operation on PosixFilePermissions class 
requires a parameter. Here is the method 
signature:PosixFilePermissions.toString​(Set perms) 




 
On Monday, July 6, 2020, 8:08:10 PM GMT+4:30, slipbits 
 wrote:  
 
   
I am trying to create files/directories and to assign attributes to them. I 
would like my software to play on multiple OS's and I am trying to find the 
Java way of identifying OS specific attributes. Two issues came up. In one, 
there is no discussion of Windows attributes. I have assumed that they are the 
same as Posix. In the second case, I found a method (fromString()) which looks 
like a useful thing to know but can't get either NB12 or OpenBeans to recognize 
it and I'm stumped. 
 
 
The test code is:
 
package test;
 
 import java.nio.file.attribute.PosixFilePermission.fromString;
 import java.nio.file.attribute.PosixFilePermission;
 import java.util.Set;
 
 public class test {
    public static void main(String[] args) {
  Set attr = fromString("rwxrw");
  System.out.println(attr.toString());
    }; //  void main(String[] args) 
 }; // class test
 
 
 
I have tried to fix this with:
 
import java.nio.file.attribute.PosixFilePermission.*; and
 
 Set attr = 
java.nio.file.attribute.PosixFilePermission.fromString("rwxrw");
 
 
without success. The puzzler is that the Java tutorial 
(https://docs.oracle.com/javase/tutorial/essential/io/fileAttr.html#dos) and 
the Java 1.8 documentation both seem to say that any of the above should work. 
 
 
Can anyone please help. Are the Windows attributes the same as Posix, and how 
can I use fromString()?
 
 

 
 

 
   

Apache update server unavailable

2020-07-06 Thread John G. Weed
Am trying to run updates on NetBeans 11.2. List of required updates seems to 
work, however when I tell it to go ahead and update I get a pop up error 
indicating that update server is unavailable...

https://www.apache.org/dyn/closer.lua?action=download=netbeans/netbeans/11.2-u1/nbms/nb/org-netbeans-modules-updatecenters.nbm

Mostly likely my problem... but checking if the us an external (to me) 
connectivity issue?

Re: JavaFx Problem

2020-07-06 Thread Brain Rebooting
Thank you for your important information. Anyone who is interested in deep
level of learning regarding math or computer science, can use your website
as a resource center or library.

On Mon, Jul 6, 2020 at 10:22 PM slipbits  wrote:

> They are all downloadable. If I've done my job correctly, you need not
> provide any personal information, email addresses or register for anything.
>
> No. I did not read all the books. Not even close. But I have read some and
> have had some in classes.
>
> I decided that when I got my website I would populate it with things I
> enjoyed or that others that I knew) would enjoy and/or benefit from. So
> there you have it.
>
> art
> On 7/6/2020 9:15 AM, Brain Rebooting wrote:
>
> Just a couple of minutes ago, I just visited your website and saw many
> links of various types of books. Among them, I click on mathematics and saw
> that, you provided huge amount of books in digital format, and they are
> downloadable. Did you read all of those books?
>
> On Mon, Jul 6, 2020 at 9:58 PM slipbits  wrote:
>
>> Yes. Since I traditionally work on embedded systems, I enjoy reading (and
>> rereading) books on algorithms. In the HMI arena, I've focused on Java - a
>> big learning curve for me. At various times I reintroduce myself to
>> calculus and I always pay some heed to physics https://physicsworld.com/).
>>
>>
>> Since my major interests are in computer science, I read all sorts of
>> stuff, including cybersecurity. And then, of course, there is politics,
>> economics, investing (algorithms and software) and so on. I have been a
>> member of the Association of Computing Machines (ACM) for all of my
>> professional life, and I often look at their digital library to find gems
>> of wisdom and insight.
>>
>> If you are interested in looking at some of my interests, take a look at
>> my website, https://slipbits.com/. If you have anything you would like
>> to see in it then send me some email, and when I get a chance I'll do some
>> research.
>>
>> Learning will last  you a lifetime. It will reward you (often) in the
>> most unexpected ways. As an example, in 1980 I learned about 'signatures'.
>> I've just sent notes to the Association of Old Crows for consideration for
>> inclusion in a webimar. The webimar considers a practical application of
>> signatures.
>>
>> art
>> On 7/6/2020 8:46 AM, Brain Rebooting wrote:
>>
>> Thank you. You mean we need to learn various types of things. Not stick
>> to one kind of things and take an adapted kind of mindset and thus learn
>> always new things.
>>
>>
>>
>> On Mon, Jul 6, 2020 at 9:24 PM slipbits  wrote:
>>
>>> Hi;
>>>
>>> Learning is a lifetime avocation. Once you 'start' to enjoy it, you will
>>> always enjoy it. And that's what gets you through the day.
>>>
>>> I used to say (still do for that matter) that anything that I once
>>> learned I will use. Sometimes I will use it years after I 'learned' it.
>>> When this happens, its a big 'kick' and tells me that I should have
>>> learned more.
>>>
>>> And this is both in the generic sense and in the pragmatic sense. And,
>>> it does last you forever.
>>>
>>> So, for me, the notion of what to do and how to stay motivated is the
>>> process of learning everything. Nothing goes to waste. And need not be
>>> specific to one field, or language, or framework, or ... .
>>>
>>> art
>>>
>>> On 7/6/2020 8:14 AM, Brain Rebooting wrote:
>>> > Wow. Some great things I came to know about you. Especially "always
>>> > learning new things" probably take a special kind of mindset.
>>> > Otherwise, very fewer people are willing to do that. And you people
>>> > are some of those fewer people.
>>> > But I'm a little shocked by knowing that, you don't drink coffee now.
>>> > Probably in the long term, its negative effect suffer your life.
>>> >
>>> > Thanks for information about your life. I am trying my best to take
>>> > advice from it.
>>> >
>>> > Greetings.
>>> >
>>>
>>> -
>>> 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
>>>
>>>


Issue with recognizing functions

2020-07-06 Thread slipbits
I am trying to create files/directories and to assign attributes to 
them. I would like my software to play on multiple OS's and I am trying 
to find the Java way of identifying OS specific attributes. Two issues 
came up. In one, there is no discussion of Windows attributes. I have 
assumed that they are the same as Posix. In the second case, I found a 
method (fromString()) which looks like a useful thing to know but can't 
get either NB12 or OpenBeans to recognize it and I'm stumped.


The test code is:

package test;

import java.nio.file.attribute.PosixFilePermission.fromString;
import java.nio.file.attribute.PosixFilePermission;
import java.util.Set;

public class test {
   public static void main(String[] args) {
 Set attr = fromString("rwxrw");
 System.out.println(attr.toString());
   }; //  void main(String[] args)
}; // class test

I have tried to fix this with:

import java.nio.file.attribute.PosixFilePermission.*; and

Set attr = 
java.nio.file.attribute.PosixFilePermission.fromString("rwxrw");


without success. The puzzler is that the Java tutorial 
(https://docs.oracle.com/javase/tutorial/essential/io/fileAttr.html#dos) 
and the Java 1.8 documentation both seem to say that any of the above 
should work.


Can anyone please help. Are the Windows attributes the same as Posix, 
and how can I use fromString()?






Re: JavaFx Problem

2020-07-06 Thread slipbits

Hi;

Learning is a lifetime avocation. Once you 'start' to enjoy it, you will 
always enjoy it. And that's what gets you through the day.


I used to say (still do for that matter) that anything that I once 
learned I will use. Sometimes I will use it years after I 'learned' it. 
When this happens, its a big 'kick' and tells me that I should have 
learned more.


And this is both in the generic sense and in the pragmatic sense. And, 
it does last you forever.


So, for me, the notion of what to do and how to stay motivated is the 
process of learning everything. Nothing goes to waste. And need not be 
specific to one field, or language, or framework, or ... .


art

On 7/6/2020 8:14 AM, Brain Rebooting wrote:
Wow. Some great things I came to know about you. Especially "always 
learning new things" probably take a special kind of mindset. 
Otherwise, very fewer people are willing to do that. And you people 
are some of those fewer people.
But I'm a little shocked by knowing that, you don't drink coffee now. 
Probably in the long term, its negative effect suffer your life.


Thanks for information about your life. I am trying my best to take 
advice from it.


Greetings.



-
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: JavaFx Problem

2020-07-06 Thread Brain Rebooting
Wow. Some great things I came to know about you. Especially "always
learning new things" probably take a special kind of mindset. Otherwise,
very fewer people are willing to do that. And you people are some of those
fewer people.
But I'm a little shocked by knowing that, you don't drink coffee now.
Probably in the long term, its negative effect suffer your life.

Thanks for information about your life. I am trying my best to take advice
from it.

Greetings.

On Mon, Jul 6, 2020 at 8:55 PM Laszlo Kishalmi 
wrote:

>
> On 7/6/20 7:16 AM, Brain Rebooting wrote:
>
> I have some questions since last couple of years. Here I want to ask you
> now. If it is possible for you, kindly answer my question.
>
> 1. What motivate or inspires you for working in an open source project,
> when you can spend that time too in commercial purpose ? (I supposed that,
> because of your higher level of expertise)
>
> I do DevOps for living, I enjoy doing it as well, though I maybe old
> fashioned, but love client side GUI applications. Working on open source as
> a hobby balances my life and keeps my developer sharp.
>
>
> 2. What approach did you follow, when learned to code at young age and how
> you became so skillful in programming?
>
> Welll, I just did many silly things at my young age, just to entertain
> myself. Text adventure games, music composer, tron like game, mini text
> editor, cube rotating, hypertext books, accounting application for my
> father, bezier curve displayer, whatever popped up in my mind.
>
>
> 3. Should I need to learn framework or I can survive well if only know
> good programming in a popular language?
>
> You need to learn every day. Once a new framework, less frequently a new
> language, patterns, processes, etc.
>
>
> 4. How to stay motivated for long amount of time in learning programming?
>
> Well, learning programming is fun. There is always something you can try,
> create. Do not think big. Just get a little satisfaction with your code
> every day.
>
>
> 5. Do you drink coffee and whether it has any negative effect or positive?
>
> I do not. I have bad experience with that, however I was addicted to
> caffeine for a long time, I think, I'm clean now and can have a tee once a
> day as well, but on a long term it is not a good thing.
>
>
> 6. Last Question for now is, why IntelliJ IDEA's code completion is
> blazing fast? (Don't mind, I have an opportunity for using IntelliJ
> IDEA's ultimate edition, but still I love to use NetBeans for its
> simplicity, open source nature and some other unknown reason.)
>
> According to our performance snapshots we are doing a lot of file
> operations for code completion which could be slow especially on Windows.
>
>
> On Mon, Jul 6, 2020 at 8:15 PM Brain Rebooting 
> wrote:
>
>>  Actually I code that scene part, out of outer loop in IntelliJ IDEA
>> community edition. That's why it works. Actually I am feeling embarrassed
>> to ask for this question now. I should be more careful. By the way, I have
>> no tutor or mentor. Whatever I learn, I learned it myself. I learned in
>> computer science an online university which is located in the USA. That's
>> why I ask you all the time for any type of help. You people are amazing.
>>
>> On Mon, Jul 6, 2020 at 8:11 PM Geertjan Wielenga 
>> wrote:
>>
>>> Please, don’t write to me, write to the mailing list. Start a new thread
>>> for each question.
>>>
>>> Gj
>>>
>>> On Mon, 6 Jul 2020 at 16:10, Brain Rebooting 
>>> wrote:
>>>
 I have some questions since last couple of years. Here I want to ask
 you now. If it is possible for you, kindly answer my question.

 1. What motivate or inspires you for working in an open source project,
 when you can spend that time too in commercial purpose ? (I supposed that,
 because of your higher level of expertise)

 2. What approach did you follow, when learned to code at young age and
 how you became so skillful in programming?

 3. Should I need to learn framework or I can survive well if only know
 good programming in a popular language?

 4. How to stay motivated for long amount of time in learning
 programming?

 5. Do you drink coffee and whether it has any negative effect or
 positive?

 6. Last Question for now is, why IntelliJ IDEA's code completion is
 blazing fast? (Don't mind, I have an opportunity for using IntelliJ
 IDEA's ultimate edition, but still I love to use NetBeans for its
 simplicity, open source nature and some other unknown reason.)

 On Mon, Jul 6, 2020 at 8:00 PM Brain Rebooting <
 siumastroma...@gmail.com> wrote:

>  Actually I code that scene part, out of outer loop in IntelliJ IDEA
> community edition. That's why it works. Actually I am feeling embarrassed
> to ask for this question now. I should be more careful. By the way, I have
> no tutor or mentor. Whatever I learn, I learned it myself. I learned in
> computer science an 

Re: JavaFx Problem

2020-07-06 Thread Laszlo Kishalmi


On 7/6/20 7:16 AM, Brain Rebooting wrote:
I have some questions since last couple of years. Here I want to ask 
you now. If it is possible for you, kindly answer my question.


1. What motivate or inspires you for working in an open source 
project, when you can spend that time too in commercial purpose ? (I 
supposed that, because of your higher level of expertise)
I do DevOps for living, I enjoy doing it as well, though I maybe old 
fashioned, but love client side GUI applications. Working on open source 
as a hobby balances my life and keeps my developer sharp.


2. What approach did you follow, when learned to code at young age and 
how you became so skillful in programming?
Welll, I just did many silly things at my young age, just to entertain 
myself. Text adventure games, music composer, tron like game, mini text 
editor, cube rotating, hypertext books, accounting application for my 
father, bezier curve displayer, whatever popped up in my mind.


3. Should I need to learn framework or I can survive well if only know 
good programming in a popular language?
You need to learn every day. Once a new framework, less frequently a new 
language, patterns, processes, etc.


4. How to stay motivated for long amount of time in learning programming?
Well, learning programming is fun. There is always something you can 
try, create. Do not think big. Just get a little satisfaction with your 
code every day.


5. Do you drink coffee and whether it has any negative effect or positive?
I do not. I have bad experience with that, however I was addicted to 
caffeine for a long time, I think, I'm clean now and can have a tee once 
a day as well, but on a long term it is not a good thing.


6. Last Question for now is, why IntelliJ IDEA's code completion is 
blazing fast? (Don't mind, I have an opportunity for using IntelliJ 
IDEA's ultimate edition, but still I love to use NetBeans for its 
simplicity, open source nature and some other unknown reason.)
According to our performance snapshots we are doing a lot of file 
operations for code completion which could be slow especially on Windows.


On Mon, Jul 6, 2020 at 8:15 PM Brain Rebooting 
mailto:siumastroma...@gmail.com>> wrote:


 Actually I code that scene part, out of outer loop in IntelliJ
IDEA community edition. That's why it works. Actually I am feeling
embarrassed to ask for this question now. I should be more
careful. By the way, I have no tutor or mentor. Whatever I learn,
I learned it myself. I learned in computer science an online
university which is located in the USA. That's why I ask you all
the time for any type of help. You people are amazing.

On Mon, Jul 6, 2020 at 8:11 PM Geertjan Wielenga
mailto:geert...@apache.org>> wrote:

Please, don’t write to me, write to the mailing list. Start a
new thread for each question.

Gj

On Mon, 6 Jul 2020 at 16:10, Brain Rebooting
mailto:siumastroma...@gmail.com>>
wrote:

I have some questions since last couple of years. Here I
want to ask you now. If it is possible for you, kindly
answer my question.

1. What motivate or inspires you for working in an open
source project, when you can spend that time too in
commercial purpose ? (I supposed that, because of your
higher level of expertise)

2. What approach did you follow, when learned to code at
young age and how you became so skillful in programming?

3. Should I need to learn framework or I can survive well
if only know good programming in a popular language?

4. How to stay motivated for long amount of time in
learning programming?

5. Do you drink coffee and whether it has any negative
effect or positive?

6. Last Question for now is, why IntelliJ IDEA's code
completion is blazing fast? (Don't mind, I have an
opportunity for using IntelliJ IDEA's ultimate edition,
but still I love to use NetBeans for its simplicity, open
source nature and some other unknown reason.)

On Mon, Jul 6, 2020 at 8:00 PM Brain Rebooting
mailto:siumastroma...@gmail.com>> wrote:

 Actually I code that scene part, out of outer loop
in IntelliJ IDEA community edition. That's why it
works. Actually I am feeling embarrassed to ask for
this question now. I should be more careful. By the
way, I have no tutor or mentor. Whatever I learn, I
learned it myself. I learned in computer science an
online university which is located in the USA. That's
why I ask you all the time for any type of help. You
people are amazing.

On Mon, Jul 6, 2020 at 4:44 PM Geertjan Wielenga

Re: JavaFx Problem

2020-07-06 Thread Brain Rebooting
I have some questions since last couple of years. Here I want to ask you
now. If it is possible for you, kindly answer my question.

1. What motivate or inspires you for working in an open source project,
when you can spend that time too in commercial purpose ? (I supposed that,
because of your higher level of expertise)

2. What approach did you follow, when learned to code at young age and how
you became so skillful in programming?

3. Should I need to learn framework or I can survive well if only know good
programming in a popular language?

4. How to stay motivated for long amount of time in learning programming?

5. Do you drink coffee and whether it has any negative effect or positive?

6. Last Question for now is, why IntelliJ IDEA's code completion is blazing
fast? (Don't mind, I have an opportunity for using IntelliJ IDEA's
ultimate edition, but still I love to use NetBeans for its simplicity, open
source nature and some other unknown reason.)

On Mon, Jul 6, 2020 at 8:15 PM Brain Rebooting 
wrote:

>  Actually I code that scene part, out of outer loop in IntelliJ IDEA
> community edition. That's why it works. Actually I am feeling embarrassed
> to ask for this question now. I should be more careful. By the way, I have
> no tutor or mentor. Whatever I learn, I learned it myself. I learned in
> computer science an online university which is located in the USA. That's
> why I ask you all the time for any type of help. You people are amazing.
>
> On Mon, Jul 6, 2020 at 8:11 PM Geertjan Wielenga 
> wrote:
>
>> Please, don’t write to me, write to the mailing list. Start a new thread
>> for each question.
>>
>> Gj
>>
>> On Mon, 6 Jul 2020 at 16:10, Brain Rebooting 
>> wrote:
>>
>>> I have some questions since last couple of years. Here I want to ask you
>>> now. If it is possible for you, kindly answer my question.
>>>
>>> 1. What motivate or inspires you for working in an open source project,
>>> when you can spend that time too in commercial purpose ? (I supposed that,
>>> because of your higher level of expertise)
>>>
>>> 2. What approach did you follow, when learned to code at young age and
>>> how you became so skillful in programming?
>>>
>>> 3. Should I need to learn framework or I can survive well if only know
>>> good programming in a popular language?
>>>
>>> 4. How to stay motivated for long amount of time in learning programming?
>>>
>>> 5. Do you drink coffee and whether it has any negative effect or
>>> positive?
>>>
>>> 6. Last Question for now is, why IntelliJ IDEA's code completion is
>>> blazing fast? (Don't mind, I have an opportunity for using IntelliJ
>>> IDEA's ultimate edition, but still I love to use NetBeans for its
>>> simplicity, open source nature and some other unknown reason.)
>>>
>>> On Mon, Jul 6, 2020 at 8:00 PM Brain Rebooting 
>>> wrote:
>>>
  Actually I code that scene part, out of outer loop in IntelliJ IDEA
 community edition. That's why it works. Actually I am feeling embarrassed
 to ask for this question now. I should be more careful. By the way, I have
 no tutor or mentor. Whatever I learn, I learned it myself. I learned in
 computer science an online university which is located in the USA. That's
 why I ask you all the time for any type of help. You people are amazing.

 On Mon, Jul 6, 2020 at 4:44 PM Geertjan Wielenga 
 wrote:

> But it works in IntelliJ IDEA community edition?
>
> Gj
>
> On Mon, Jul 6, 2020 at 12:27 PM Brain Rebooting <
> siumastroma...@gmail.com> wrote:
>
>> Thank you. Your program works. I made a silly mistake. Create scene
>> inside the for loop.
>> Take my greetings.
>>
>> Samiul alom sium
>>
>> On Mon, Jul 6, 2020 at 3:19 PM Geertjan Wielenga 
>> wrote:
>>
>>> This is probably what you want to do:
>>>
>>> package com.mycompany.mavenproject22;
>>>
>>> import javafx.application.Application;
>>> import javafx.scene.Scene;
>>> import javafx.scene.layout.Pane;
>>> import javafx.scene.paint.Color;
>>> import javafx.stage.Stage;
>>> import javafx.scene.shape.Rectangle;
>>>
>>> /**
>>>  * JavaFX App
>>>  */
>>> public class App extends Application {
>>>
>>> @Override
>>> public void start(Stage primaryStage) {
>>>
>>> double WIDTH = 200;
>>> double HEIGHT = 200;
>>>
>>> // create a pane
>>> Pane pane = new Pane();
>>>
>>> for (int i = 0; i < 8; i++) {
>>> boolean isWhite = i % 2 == 0;
>>> for (int j = 0; j < 8; j++) {
>>> Rectangle rectangle = new Rectangle(i * WIDTH / 8,
>>> j * HEIGHT / 8, WIDTH / 8, HEIGHT / 8);
>>>
>>> rectangle.setStroke(Color.BLACK);
>>>
>>> if (isWhite) {
>>> rectangle.setFill(Color.WHITE);
>>> } 

Re: JavaFx Problem

2020-07-06 Thread Brain Rebooting
 Actually I code that scene part, out of outer loop in IntelliJ IDEA
community edition. That's why it works. Actually I am feeling embarrassed
to ask for this question now. I should be more careful. By the way, I have
no tutor or mentor. Whatever I learn, I learned it myself. I learned in
computer science an online university which is located in the USA. That's
why I ask you all the time for any type of help. You people are amazing.

On Mon, Jul 6, 2020 at 8:11 PM Geertjan Wielenga 
wrote:

> Please, don’t write to me, write to the mailing list. Start a new thread
> for each question.
>
> Gj
>
> On Mon, 6 Jul 2020 at 16:10, Brain Rebooting 
> wrote:
>
>> I have some questions since last couple of years. Here I want to ask you
>> now. If it is possible for you, kindly answer my question.
>>
>> 1. What motivate or inspires you for working in an open source project,
>> when you can spend that time too in commercial purpose ? (I supposed that,
>> because of your higher level of expertise)
>>
>> 2. What approach did you follow, when learned to code at young age and
>> how you became so skillful in programming?
>>
>> 3. Should I need to learn framework or I can survive well if only know
>> good programming in a popular language?
>>
>> 4. How to stay motivated for long amount of time in learning programming?
>>
>> 5. Do you drink coffee and whether it has any negative effect or positive?
>>
>> 6. Last Question for now is, why IntelliJ IDEA's code completion is
>> blazing fast? (Don't mind, I have an opportunity for using IntelliJ
>> IDEA's ultimate edition, but still I love to use NetBeans for its
>> simplicity, open source nature and some other unknown reason.)
>>
>> On Mon, Jul 6, 2020 at 8:00 PM Brain Rebooting 
>> wrote:
>>
>>>  Actually I code that scene part, out of outer loop in IntelliJ IDEA
>>> community edition. That's why it works. Actually I am feeling embarrassed
>>> to ask for this question now. I should be more careful. By the way, I have
>>> no tutor or mentor. Whatever I learn, I learned it myself. I learned in
>>> computer science an online university which is located in the USA. That's
>>> why I ask you all the time for any type of help. You people are amazing.
>>>
>>> On Mon, Jul 6, 2020 at 4:44 PM Geertjan Wielenga 
>>> wrote:
>>>
 But it works in IntelliJ IDEA community edition?

 Gj

 On Mon, Jul 6, 2020 at 12:27 PM Brain Rebooting <
 siumastroma...@gmail.com> wrote:

> Thank you. Your program works. I made a silly mistake. Create scene
> inside the for loop.
> Take my greetings.
>
> Samiul alom sium
>
> On Mon, Jul 6, 2020 at 3:19 PM Geertjan Wielenga 
> wrote:
>
>> This is probably what you want to do:
>>
>> package com.mycompany.mavenproject22;
>>
>> import javafx.application.Application;
>> import javafx.scene.Scene;
>> import javafx.scene.layout.Pane;
>> import javafx.scene.paint.Color;
>> import javafx.stage.Stage;
>> import javafx.scene.shape.Rectangle;
>>
>> /**
>>  * JavaFX App
>>  */
>> public class App extends Application {
>>
>> @Override
>> public void start(Stage primaryStage) {
>>
>> double WIDTH = 200;
>> double HEIGHT = 200;
>>
>> // create a pane
>> Pane pane = new Pane();
>>
>> for (int i = 0; i < 8; i++) {
>> boolean isWhite = i % 2 == 0;
>> for (int j = 0; j < 8; j++) {
>> Rectangle rectangle = new Rectangle(i * WIDTH / 8,
>> j * HEIGHT / 8, WIDTH / 8, HEIGHT / 8);
>>
>> rectangle.setStroke(Color.BLACK);
>>
>> if (isWhite) {
>> rectangle.setFill(Color.WHITE);
>> } else {
>> rectangle.setFill(Color.BLACK);
>> }
>>
>> isWhite = !isWhite;
>>
>> pane.getChildren().add(rectangle);
>>
>> }  // end of inner for loop
>> }  // end of outer for loop
>>
>> // create scene
>> Scene scene = new Scene(pane, WIDTH, HEIGHT);
>> primaryStage.setTitle("Display A CheckBoard");
>> primaryStage.setScene(scene);
>> primaryStage.show();
>>
>> }
>>
>> public static void main(String[] args) {
>> launch();
>> }
>>
>> }
>>
>>
>> Thanks,
>>
>> Gj
>>
>> On Mon, Jul 6, 2020 at 11:10 AM Geertjan Wielenga <
>> geert...@apache.org> wrote:
>>
>>> You're creating a scene at the end of some kind of nested for loop?
>>>
>>> Gj
>>>
>>> On Mon, Jul 6, 2020 at 10:54 AM Brain Rebooting <
>>> siumastroma...@gmail.com> wrote:
>>>
 OK. Here I am going to submit my simple source code of JavaFX
 program, that should 

Re: JavaFx Problem

2020-07-06 Thread Geertjan Wielenga
But it works in IntelliJ IDEA community edition?

Gj

On Mon, Jul 6, 2020 at 12:27 PM Brain Rebooting 
wrote:

> Thank you. Your program works. I made a silly mistake. Create scene inside
> the for loop.
> Take my greetings.
>
> Samiul alom sium
>
> On Mon, Jul 6, 2020 at 3:19 PM Geertjan Wielenga 
> wrote:
>
>> This is probably what you want to do:
>>
>> package com.mycompany.mavenproject22;
>>
>> import javafx.application.Application;
>> import javafx.scene.Scene;
>> import javafx.scene.layout.Pane;
>> import javafx.scene.paint.Color;
>> import javafx.stage.Stage;
>> import javafx.scene.shape.Rectangle;
>>
>> /**
>>  * JavaFX App
>>  */
>> public class App extends Application {
>>
>> @Override
>> public void start(Stage primaryStage) {
>>
>> double WIDTH = 200;
>> double HEIGHT = 200;
>>
>> // create a pane
>> Pane pane = new Pane();
>>
>> for (int i = 0; i < 8; i++) {
>> boolean isWhite = i % 2 == 0;
>> for (int j = 0; j < 8; j++) {
>> Rectangle rectangle = new Rectangle(i * WIDTH / 8,
>> j * HEIGHT / 8, WIDTH / 8, HEIGHT / 8);
>>
>> rectangle.setStroke(Color.BLACK);
>>
>> if (isWhite) {
>> rectangle.setFill(Color.WHITE);
>> } else {
>> rectangle.setFill(Color.BLACK);
>> }
>>
>> isWhite = !isWhite;
>>
>> pane.getChildren().add(rectangle);
>>
>> }  // end of inner for loop
>> }  // end of outer for loop
>>
>> // create scene
>> Scene scene = new Scene(pane, WIDTH, HEIGHT);
>> primaryStage.setTitle("Display A CheckBoard");
>> primaryStage.setScene(scene);
>> primaryStage.show();
>>
>> }
>>
>> public static void main(String[] args) {
>> launch();
>> }
>>
>> }
>>
>>
>> Thanks,
>>
>> Gj
>>
>> On Mon, Jul 6, 2020 at 11:10 AM Geertjan Wielenga 
>> wrote:
>>
>>> You're creating a scene at the end of some kind of nested for loop?
>>>
>>> Gj
>>>
>>> On Mon, Jul 6, 2020 at 10:54 AM Brain Rebooting <
>>> siumastroma...@gmail.com> wrote:
>>>
 OK. Here I am going to submit my simple source code of JavaFX program,
 that should show a black and white chessboard.


 


 import javafx.application.Application;
 import javafx.scene.Scene;
 import javafx.scene.layout.Pane;
 import javafx.scene.paint.Color;
 import javafx.stage.Stage;
 import javafx.scene.shape.Rectangle;

 /**
  *
  * @author samiul alom sium
  * date: 07.07.2020
  *
  * problem: (Game: display a checkerboard) Write a program that displays
  * a checkerboard in which each white and black cell is a Rectangle
  * with a fill color black or white.
  */

 public class DisplayACheckBoard extends Application {

 @Override
 public void start(Stage primaryStage) {

 double WIDTH = 200;
 double HEIGHT = 200;

 // create a pane
 Pane pane = new Pane();

 for(int i = 0; i < 8; i++){
 boolean isWhite = i % 2 == 0;
 for(int j = 0; j < 8; j++){
 Rectangle rectangle = new Rectangle(i * WIDTH / 8,
 j * HEIGHT / 8, WIDTH / 8, HEIGHT / 8);

 rectangle.setStroke(Color.BLACK);

 if(isWhite){
 rectangle.setFill(Color.WHITE);
 }
 else {
 rectangle.setFill(Color.BLACK);
 }

 isWhite = !isWhite;

 pane.getChildren().add(rectangle);

 // create scene
 Scene scene = new Scene(pane, WIDTH, HEIGHT);
 primaryStage.setTitle("Display A CheckBoard");
 primaryStage.setScene(scene);
 primaryStage.show();

 }  // end of inner for loop
 }  // end of outer for loop

 }

 public static void main(String[] args) {
 launch(args);


 --

 Here I used:

 JDK: amazon corretto 1.8.0 252
 OS: Ubuntu 18.04.4 LTS
 IDE: Apache NetBeans 12
 Build Tool: Ant

 //
 Extra info:
 Even netbeans-12 error detector didn't show any error on the above
 code. Problem arises when I am going to run the code. I try to clean and
 build projects and then run the projects, but still same results come in.
 But the 

Re: JavaFx Problem

2020-07-06 Thread Brain Rebooting
Thank you. Your program works. I made a silly mistake. Create scene inside
the for loop.
Take my greetings.

Samiul alom sium

On Mon, Jul 6, 2020 at 3:19 PM Geertjan Wielenga 
wrote:

> This is probably what you want to do:
>
> package com.mycompany.mavenproject22;
>
> import javafx.application.Application;
> import javafx.scene.Scene;
> import javafx.scene.layout.Pane;
> import javafx.scene.paint.Color;
> import javafx.stage.Stage;
> import javafx.scene.shape.Rectangle;
>
> /**
>  * JavaFX App
>  */
> public class App extends Application {
>
> @Override
> public void start(Stage primaryStage) {
>
> double WIDTH = 200;
> double HEIGHT = 200;
>
> // create a pane
> Pane pane = new Pane();
>
> for (int i = 0; i < 8; i++) {
> boolean isWhite = i % 2 == 0;
> for (int j = 0; j < 8; j++) {
> Rectangle rectangle = new Rectangle(i * WIDTH / 8,
> j * HEIGHT / 8, WIDTH / 8, HEIGHT / 8);
>
> rectangle.setStroke(Color.BLACK);
>
> if (isWhite) {
> rectangle.setFill(Color.WHITE);
> } else {
> rectangle.setFill(Color.BLACK);
> }
>
> isWhite = !isWhite;
>
> pane.getChildren().add(rectangle);
>
> }  // end of inner for loop
> }  // end of outer for loop
>
> // create scene
> Scene scene = new Scene(pane, WIDTH, HEIGHT);
> primaryStage.setTitle("Display A CheckBoard");
> primaryStage.setScene(scene);
> primaryStage.show();
>
> }
>
> public static void main(String[] args) {
> launch();
> }
>
> }
>
>
> Thanks,
>
> Gj
>
> On Mon, Jul 6, 2020 at 11:10 AM Geertjan Wielenga 
> wrote:
>
>> You're creating a scene at the end of some kind of nested for loop?
>>
>> Gj
>>
>> On Mon, Jul 6, 2020 at 10:54 AM Brain Rebooting 
>> wrote:
>>
>>> OK. Here I am going to submit my simple source code of JavaFX program,
>>> that should show a black and white chessboard.
>>>
>>>
>>> 
>>>
>>>
>>> import javafx.application.Application;
>>> import javafx.scene.Scene;
>>> import javafx.scene.layout.Pane;
>>> import javafx.scene.paint.Color;
>>> import javafx.stage.Stage;
>>> import javafx.scene.shape.Rectangle;
>>>
>>> /**
>>>  *
>>>  * @author samiul alom sium
>>>  * date: 07.07.2020
>>>  *
>>>  * problem: (Game: display a checkerboard) Write a program that displays
>>>  * a checkerboard in which each white and black cell is a Rectangle
>>>  * with a fill color black or white.
>>>  */
>>>
>>> public class DisplayACheckBoard extends Application {
>>>
>>> @Override
>>> public void start(Stage primaryStage) {
>>>
>>> double WIDTH = 200;
>>> double HEIGHT = 200;
>>>
>>> // create a pane
>>> Pane pane = new Pane();
>>>
>>> for(int i = 0; i < 8; i++){
>>> boolean isWhite = i % 2 == 0;
>>> for(int j = 0; j < 8; j++){
>>> Rectangle rectangle = new Rectangle(i * WIDTH / 8,
>>> j * HEIGHT / 8, WIDTH / 8, HEIGHT / 8);
>>>
>>> rectangle.setStroke(Color.BLACK);
>>>
>>> if(isWhite){
>>> rectangle.setFill(Color.WHITE);
>>> }
>>> else {
>>> rectangle.setFill(Color.BLACK);
>>> }
>>>
>>> isWhite = !isWhite;
>>>
>>> pane.getChildren().add(rectangle);
>>>
>>> // create scene
>>> Scene scene = new Scene(pane, WIDTH, HEIGHT);
>>> primaryStage.setTitle("Display A CheckBoard");
>>> primaryStage.setScene(scene);
>>> primaryStage.show();
>>>
>>> }  // end of inner for loop
>>> }  // end of outer for loop
>>>
>>> }
>>>
>>> public static void main(String[] args) {
>>> launch(args);
>>>
>>>
>>> --
>>>
>>> Here I used:
>>>
>>> JDK: amazon corretto 1.8.0 252
>>> OS: Ubuntu 18.04.4 LTS
>>> IDE: Apache NetBeans 12
>>> Build Tool: Ant
>>>
>>> //
>>> Extra info:
>>> Even netbeans-12 error detector didn't show any error on the above code.
>>> Problem arises when I am going to run the code. I try to clean and build
>>> projects and then run the projects, but still same results come in. But the
>>> strange thing is, this same source code works in IntelliJ IDEA community
>>> edition with same compiler. Even I can't remember I could see any GUI
>>> result of my JavaFX program in NB-12, but I could do that well in NB-11.3
>>> //
>>>
>>> On Mon, Jul 6, 2020 at 2:52 PM Brain Rebooting 
>>> wrote:
>>>
 OK. 

Re: JavaFx Problem

2020-07-06 Thread Geertjan Wielenga
This is probably what you want to do:

package com.mycompany.mavenproject22;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
import javafx.scene.shape.Rectangle;

/**
 * JavaFX App
 */
public class App extends Application {

@Override
public void start(Stage primaryStage) {

double WIDTH = 200;
double HEIGHT = 200;

// create a pane
Pane pane = new Pane();

for (int i = 0; i < 8; i++) {
boolean isWhite = i % 2 == 0;
for (int j = 0; j < 8; j++) {
Rectangle rectangle = new Rectangle(i * WIDTH / 8,
j * HEIGHT / 8, WIDTH / 8, HEIGHT / 8);

rectangle.setStroke(Color.BLACK);

if (isWhite) {
rectangle.setFill(Color.WHITE);
} else {
rectangle.setFill(Color.BLACK);
}

isWhite = !isWhite;

pane.getChildren().add(rectangle);

}  // end of inner for loop
}  // end of outer for loop

// create scene
Scene scene = new Scene(pane, WIDTH, HEIGHT);
primaryStage.setTitle("Display A CheckBoard");
primaryStage.setScene(scene);
primaryStage.show();

}

public static void main(String[] args) {
launch();
}

}


Thanks,

Gj

On Mon, Jul 6, 2020 at 11:10 AM Geertjan Wielenga 
wrote:

> You're creating a scene at the end of some kind of nested for loop?
>
> Gj
>
> On Mon, Jul 6, 2020 at 10:54 AM Brain Rebooting 
> wrote:
>
>> OK. Here I am going to submit my simple source code of JavaFX program,
>> that should show a black and white chessboard.
>>
>>
>> 
>>
>>
>> import javafx.application.Application;
>> import javafx.scene.Scene;
>> import javafx.scene.layout.Pane;
>> import javafx.scene.paint.Color;
>> import javafx.stage.Stage;
>> import javafx.scene.shape.Rectangle;
>>
>> /**
>>  *
>>  * @author samiul alom sium
>>  * date: 07.07.2020
>>  *
>>  * problem: (Game: display a checkerboard) Write a program that displays
>>  * a checkerboard in which each white and black cell is a Rectangle
>>  * with a fill color black or white.
>>  */
>>
>> public class DisplayACheckBoard extends Application {
>>
>> @Override
>> public void start(Stage primaryStage) {
>>
>> double WIDTH = 200;
>> double HEIGHT = 200;
>>
>> // create a pane
>> Pane pane = new Pane();
>>
>> for(int i = 0; i < 8; i++){
>> boolean isWhite = i % 2 == 0;
>> for(int j = 0; j < 8; j++){
>> Rectangle rectangle = new Rectangle(i * WIDTH / 8,
>> j * HEIGHT / 8, WIDTH / 8, HEIGHT / 8);
>>
>> rectangle.setStroke(Color.BLACK);
>>
>> if(isWhite){
>> rectangle.setFill(Color.WHITE);
>> }
>> else {
>> rectangle.setFill(Color.BLACK);
>> }
>>
>> isWhite = !isWhite;
>>
>> pane.getChildren().add(rectangle);
>>
>> // create scene
>> Scene scene = new Scene(pane, WIDTH, HEIGHT);
>> primaryStage.setTitle("Display A CheckBoard");
>> primaryStage.setScene(scene);
>> primaryStage.show();
>>
>> }  // end of inner for loop
>> }  // end of outer for loop
>>
>> }
>>
>> public static void main(String[] args) {
>> launch(args);
>>
>>
>> --
>>
>> Here I used:
>>
>> JDK: amazon corretto 1.8.0 252
>> OS: Ubuntu 18.04.4 LTS
>> IDE: Apache NetBeans 12
>> Build Tool: Ant
>>
>> //
>> Extra info:
>> Even netbeans-12 error detector didn't show any error on the above code.
>> Problem arises when I am going to run the code. I try to clean and build
>> projects and then run the projects, but still same results come in. But the
>> strange thing is, this same source code works in IntelliJ IDEA community
>> edition with same compiler. Even I can't remember I could see any GUI
>> result of my JavaFX program in NB-12, but I could do that well in NB-11.3
>> //
>>
>> On Mon, Jul 6, 2020 at 2:52 PM Brain Rebooting 
>> wrote:
>>
>>> OK. Here I am going to submit my simple source code of JavaFX program,
>>> that should show a black and white chessboard.
>>>
>>>
>>> 
>>>
>>>
>>> import javafx.application.Application;
>>> import javafx.scene.Scene;
>>> import javafx.scene.layout.Pane;
>>> 

Re: JavaFx Problem

2020-07-06 Thread Geertjan Wielenga
You're creating a scene at the end of some kind of nested for loop?

Gj

On Mon, Jul 6, 2020 at 10:54 AM Brain Rebooting 
wrote:

> OK. Here I am going to submit my simple source code of JavaFX program,
> that should show a black and white chessboard.
>
>
> 
>
>
> import javafx.application.Application;
> import javafx.scene.Scene;
> import javafx.scene.layout.Pane;
> import javafx.scene.paint.Color;
> import javafx.stage.Stage;
> import javafx.scene.shape.Rectangle;
>
> /**
>  *
>  * @author samiul alom sium
>  * date: 07.07.2020
>  *
>  * problem: (Game: display a checkerboard) Write a program that displays
>  * a checkerboard in which each white and black cell is a Rectangle
>  * with a fill color black or white.
>  */
>
> public class DisplayACheckBoard extends Application {
>
> @Override
> public void start(Stage primaryStage) {
>
> double WIDTH = 200;
> double HEIGHT = 200;
>
> // create a pane
> Pane pane = new Pane();
>
> for(int i = 0; i < 8; i++){
> boolean isWhite = i % 2 == 0;
> for(int j = 0; j < 8; j++){
> Rectangle rectangle = new Rectangle(i * WIDTH / 8,
> j * HEIGHT / 8, WIDTH / 8, HEIGHT / 8);
>
> rectangle.setStroke(Color.BLACK);
>
> if(isWhite){
> rectangle.setFill(Color.WHITE);
> }
> else {
> rectangle.setFill(Color.BLACK);
> }
>
> isWhite = !isWhite;
>
> pane.getChildren().add(rectangle);
>
> // create scene
> Scene scene = new Scene(pane, WIDTH, HEIGHT);
> primaryStage.setTitle("Display A CheckBoard");
> primaryStage.setScene(scene);
> primaryStage.show();
>
> }  // end of inner for loop
> }  // end of outer for loop
>
> }
>
> public static void main(String[] args) {
> launch(args);
>
>
> --
>
> Here I used:
>
> JDK: amazon corretto 1.8.0 252
> OS: Ubuntu 18.04.4 LTS
> IDE: Apache NetBeans 12
> Build Tool: Ant
>
> //
> Extra info:
> Even netbeans-12 error detector didn't show any error on the above code.
> Problem arises when I am going to run the code. I try to clean and build
> projects and then run the projects, but still same results come in. But the
> strange thing is, this same source code works in IntelliJ IDEA community
> edition with same compiler. Even I can't remember I could see any GUI
> result of my JavaFX program in NB-12, but I could do that well in NB-11.3
> //
>
> On Mon, Jul 6, 2020 at 2:52 PM Brain Rebooting 
> wrote:
>
>> OK. Here I am going to submit my simple source code of JavaFX program,
>> that should show a black and white chessboard.
>>
>>
>> 
>>
>>
>> import javafx.application.Application;
>> import javafx.scene.Scene;
>> import javafx.scene.layout.Pane;
>> import javafx.scene.paint.Color;
>> import javafx.stage.Stage;
>> import javafx.scene.shape.Rectangle;
>>
>> /**
>>  *
>>  * @author samiul alom sium
>>  * date: 07.07.2020
>>  *
>>  * problem: (Game: display a checkerboard) Write a program that displays
>>  * a checkerboard in which each white and black cell is a Rectangle
>>  * with a fill color black or white.
>>  */
>>
>> public class DisplayACheckBoard extends Application {
>>
>> @Override
>> public void start(Stage primaryStage) {
>>
>> double WIDTH = 200;
>> double HEIGHT = 200;
>>
>> // create a pane
>> Pane pane = new Pane();
>>
>> for(int i = 0; i < 8; i++){
>> boolean isWhite = i % 2 == 0;
>> for(int j = 0; j < 8; j++){
>> Rectangle rectangle = new Rectangle(i * WIDTH / 8,
>> j * HEIGHT / 8, WIDTH / 8, HEIGHT / 8);
>>
>> rectangle.setStroke(Color.BLACK);
>>
>> if(isWhite){
>> rectangle.setFill(Color.WHITE);
>> }
>> else {
>> rectangle.setFill(Color.BLACK);
>> }
>>
>> isWhite = !isWhite;
>>
>> pane.getChildren().add(rectangle);
>>
>> // create scene
>> Scene scene = new Scene(pane, WIDTH, HEIGHT);
>> primaryStage.setTitle("Display A CheckBoard");
>> primaryStage.setScene(scene);
>> primaryStage.show();
>>
>> }  // end of inner for loop
>> }  // end of outer for loop
>>
>> }
>>
>>   

Re: Maven Modular Projects with Java 11

2020-07-06 Thread Luff,Chris
+1

I have been using Maven projects with modules for some time. Use NetBeans to 
generate the module-info in the default package. Will like need some tweaking 
to export the right packages for consumption by the other projects.

> On 6 Jul 2020, at 09:26, Neil C Smith  wrote:
>
> On Mon, 6 Jul 2020 at 08:21, Shaun Flynn  
> wrote:
>> My question is: is there a way to create a Maven project which uses the Java 
>> Module system?
>>
>> I do have a work around but it feels quite hacky: each Java is it's own 
>> Maven project, or is this how it is supposed to be?
>
> Sounds right to me.  You probably want to look at using a parent
> project - New Project / POM Project - with each module as a separate
> sub-project of that.
>
> Would recommend reading up on Maven's parent POM, multi-modules, etc.
> though if you haven't already done so.  Good to know what's going on
> underneath.
>
> Best wishes,
>
> Neil
>
> -
> 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://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blistsdata=02%7C01%7CChris.Luff%40cerner.com%7Cb172671e478043240efd08d8218659f2%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C637296208218298863sdata=BtPfiiS8FSM63ZBaYkY9JNOWPSxYpUpbEv%2F6iSHyCH8%3Dreserved=0
>



CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024. Cerner Limited, Registered in 
England no 2519305, Registered Office 37 North Wharf Road, London W2 1AF.

-
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: JavaFx Problem

2020-07-06 Thread Brain Rebooting
OK. Here I am going to submit my simple source code of JavaFX program, that
should show a black and white chessboard.




import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
import javafx.scene.shape.Rectangle;

/**
 *
 * @author samiul alom sium
 * date: 07.07.2020
 *
 * problem: (Game: display a checkerboard) Write a program that displays
 * a checkerboard in which each white and black cell is a Rectangle
 * with a fill color black or white.
 */

public class DisplayACheckBoard extends Application {

@Override
public void start(Stage primaryStage) {

double WIDTH = 200;
double HEIGHT = 200;

// create a pane
Pane pane = new Pane();

for(int i = 0; i < 8; i++){
boolean isWhite = i % 2 == 0;
for(int j = 0; j < 8; j++){
Rectangle rectangle = new Rectangle(i * WIDTH / 8,
j * HEIGHT / 8, WIDTH / 8, HEIGHT / 8);

rectangle.setStroke(Color.BLACK);

if(isWhite){
rectangle.setFill(Color.WHITE);
}
else {
rectangle.setFill(Color.BLACK);
}

isWhite = !isWhite;

pane.getChildren().add(rectangle);

// create scene
Scene scene = new Scene(pane, WIDTH, HEIGHT);
primaryStage.setTitle("Display A CheckBoard");
primaryStage.setScene(scene);
primaryStage.show();

}  // end of inner for loop
}  // end of outer for loop

}

public static void main(String[] args) {
launch(args);

--

Here I used:

JDK: amazon corretto 1.8.0 252
OS: Ubuntu 18.04.4 LTS
IDE: Apache NetBeans 12
Build Tool: Ant

//
Extra info:
Even netbeans-12 error detector didn't show any error on the above code.
Problem arises when I am going to run the code. I try to clean and build
projects and then run the projects, but still same results come in. But the
strange thing is, this same source code works in IntelliJ IDEA community
edition with same compiler. Even I can't remember I could see any GUI
result of my JavaFX program in NB-12, but I could do that well in NB-11.3
//

On Mon, Jul 6, 2020 at 2:52 PM Brain Rebooting 
wrote:

> OK. Here I am going to submit my simple source code of JavaFX program,
> that should show a black and white chessboard.
>
>
> 
>
>
> import javafx.application.Application;
> import javafx.scene.Scene;
> import javafx.scene.layout.Pane;
> import javafx.scene.paint.Color;
> import javafx.stage.Stage;
> import javafx.scene.shape.Rectangle;
>
> /**
>  *
>  * @author samiul alom sium
>  * date: 07.07.2020
>  *
>  * problem: (Game: display a checkerboard) Write a program that displays
>  * a checkerboard in which each white and black cell is a Rectangle
>  * with a fill color black or white.
>  */
>
> public class DisplayACheckBoard extends Application {
>
> @Override
> public void start(Stage primaryStage) {
>
> double WIDTH = 200;
> double HEIGHT = 200;
>
> // create a pane
> Pane pane = new Pane();
>
> for(int i = 0; i < 8; i++){
> boolean isWhite = i % 2 == 0;
> for(int j = 0; j < 8; j++){
> Rectangle rectangle = new Rectangle(i * WIDTH / 8,
> j * HEIGHT / 8, WIDTH / 8, HEIGHT / 8);
>
> rectangle.setStroke(Color.BLACK);
>
> if(isWhite){
> rectangle.setFill(Color.WHITE);
> }
> else {
> rectangle.setFill(Color.BLACK);
> }
>
> isWhite = !isWhite;
>
> pane.getChildren().add(rectangle);
>
> // create scene
> Scene scene = new Scene(pane, WIDTH, HEIGHT);
> primaryStage.setTitle("Display A CheckBoard");
> primaryStage.setScene(scene);
> primaryStage.show();
>
> }  // end of inner for loop
> }  // end of outer for loop
>
> }
>
> public static void main(String[] args) {
> launch(args);
>
>
> --
>
> Here I used:
>
> JDK: amazon corretto 1.8.0 252
> OS: Ubuntu 18.04.4 LTS
> IDE: Apache NetBeans 12
> Build Tool: Ant
>
> //
> 

RE: NB12 - debugger is not going into the method

2020-07-06 Thread Joao Rebelo
Hi, some times i have this problem in java, too.
Also  when debugging  in PHP with PHPUnit is worst, the break point is ignored 
and is has not exist, or stop In a line which is not the one where is the 
breakpoint

De: Greenberg, Gary 
Enviada: 6 de julho de 2020 07:20
Para: users@netbeans.apache.org
Assunto: RE: NB12 - debugger is not going into the method

No, I was not using lambda expressions.

Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com
M: 650-269-7902

[EmailSig-TaglineVersion]

From: András Sik mailto:andras@gmail.com>>
Sent: Sunday, July 5, 2020 11:13 PM
Cc: users@netbeans.apache.org
Subject: Re: NB12 - debugger is not going into the method

Is there any chance this had anything to do with lambda expressions? I know NB 
had issues with these before, IDK whether or not it has been fixed.

--
To the optimist, the glass is half-full.
To the pessimist, the glass is half-empty.
To the engineer, the glass is twice as big as it needs to be.


On Mon, Jul 6, 2020 at 8:01 AM Greenberg, Gary 
mailto:ggree...@visa.com.invalid>> wrote:
I do not have a small example and I cannot send out any significant piece of 
code.
However, I believe that I have explained steps to reproduce very clearly.
I do not mind to repeat it, though.
Create a  class bar with a function foo().
Write a method in this class that will be calling function foo.
Run it in the debugger and place a breakpoint on the line where foo() is called.
When it stops, click on “step-in” button and observe the behavior.

Regards,
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com
M: 650-269-7902

[EmailSig-TaglineVersion]

From: John Mc mailto:mcdonnell.j...@gmail.com>>
Sent: Sunday, July 5, 2020 5:22 AM
To: Greenberg, Gary 
mailto:ggree...@visa.com.invalid>>
Cc: users@netbeans.apache.org
Subject: Re: NB12 - debugger is not going into the method

Do you have a small example of this behaviour?

I've not come across it myself, so without steps to reproduce, or a clear and 
simple example it might be hard to get someone to help you on resolving this 
issue...

Regards

John

On Sun, 5 Jul 2020 at 06:03, Greenberg, Gary 
mailto:ggree...@visa.com.invalid>> wrote:
I am trying to debug a maven project.
One of my methods returns unexpected result.
I placed a breakpoint on the line where method is called and when it stopped 
there, I clicked on the down arrow, planning to step into the method and see 
what is going on.
However, it did not go into the method, but behaved like “Step over” and moved 
to the next line of code.
Repeated it several times and behavior was consistent – “Step In” is not 
working as it should be.
I resolved my problem by putting another breakpoint inside the method, but it 
is not right. Back in version 8.2 it was working correctly.

Have anyone also noticed this problem?
My environment:
DELL Precision 5500
Win 10 Pro
OpenJDK 14
Netbeans 12

Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com
M: 650-269-7902

[EmailSig-TaglineVersion]



Re: Maven Modular Projects with Java 11

2020-07-06 Thread Neil C Smith
On Mon, 6 Jul 2020 at 08:21, Shaun Flynn  wrote:
> My question is: is there a way to create a Maven project which uses the Java 
> Module system?
>
> I do have a work around but it feels quite hacky: each Java is it's own Maven 
> project, or is this how it is supposed to be?

Sounds right to me.  You probably want to look at using a parent
project - New Project / POM Project - with each module as a separate
sub-project of that.

Would recommend reading up on Maven's parent POM, multi-modules, etc.
though if you haven't already done so.  Good to know what's going on
underneath.

Best wishes,

Neil

-
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: [Bugtracking API] Create new task in LocalTasks Repository programmatically ?

2020-07-06 Thread Bilu
Is this possible ?

Le 29/06/2020 à 10:59, Bilu a écrit :
>
> Hello,
>
> Is there a way to add new task to the local repository programmatically ?
>
> Bugtracking API provides Util.createIssue(Repository repository, 
> String summary,  String description) but this method throw  an
> java.lang.UnsupportedOperationException: Not supported yet.
>     at
> org.netbeans.modules.localtasks.RepositoryProviderImpl.createIssue(RepositoryProviderImpl.java:94)
>     at
> org.netbeans.modules.localtasks.RepositoryProviderImpl.createIssue(RepositoryProviderImpl.java:35)
>     at
> org.netbeans.modules.bugtracking.RepositoryImpl.createNewIssue(RepositoryImpl.java:248)
>     at
> org.netbeans.modules.bugtracking.api.Util.createIssue(Util.java:150)
>
> and indeed seems not supported yet by the API:
> https://github.com/apache/netbeans/blob/0f2e98d513deaedccef831ee9cfc08d09f3650b6/ide/localtasks/src/org/netbeans/modules/localtasks/RepositoryProviderImpl.java#L94
>
> So is there another way to achieve this and create new local tasks
> programmatically? 
>


Nb12 wizard create entity from database and wizard persistence.xml not working with jee8

2020-07-06 Thread Mauro Chi
Hi all. I have probems with nb 12.
I  create a datasource into wildfly 19 and 20.
Next i try to create entity from database with wizard.
But nb not detect the datasource anyway.
Also if i simple try to create the persistence.xml from tge appropriate
wizard.
This problem appair both for ant ant maven projects web app.
But also for other  server.
I tried also with maven archetype of jakarta.
I noted this problem with entity from database creation appair from jee8.


Plese somebody can help me ?
Mauro


Maven Modular Projects with Java 11

2020-07-06 Thread Shaun Flynn
Hello there folks,

First time poster, so please be gentle :)

I have recently gained the confidence to stsrt using Maven after learning
how to use the module system in Java 11.

My question is: is there a way to create a Maven project which uses the
Java Module system?

I do have a work around but it feels quite hacky: each Java is it's own
Maven project, or is this how it is supposed to be?

Thanks in advance, and thank you for doing a great job with Netbeans!

Shaun


Nb12 create package not working

2020-07-06 Thread Mauro Chi
If into nb12 on win10 with jdk 1.8 you try to create a new package or sub
package for a web app java with right click on source folder java, the new
created package appair with a icon like a simple dir and nb not detect the
new package like package


Re: JavaFx Problem

2020-07-06 Thread Geertjan Wielenga
Can you provide any info so someone can reproduce the problem?

Gj

On Mon, 6 Jul 2020 at 08:02, Brain Rebooting 
wrote:

> Probably not only this specific program. After installing NetBeans 12,
> none of my JavaFX program show output (with ant build). But NetBeans 11.3
> with all same configuration, did output my JavaFX program.
>
> On Mon, Jul 6, 2020 at 11:47 AM Brain Rebooting 
> wrote:
>
>>
>> Problems started from this line on the console:
>>
>> Exception in Application start method
>>
>> But when I run the same program in IntelliJ IDEA community edition, it
>> just works and literally I don't see any error on my own source code.
>> Apache NetBeans error detector don't show any error on my source code. But
>> still when I try to execute it, these errors are displaying on the console.
>>
>> On Mon, Jul 6, 2020 at 11:43 AM Emilian Bold 
>> wrote:
>>
>>> Please send email to the mailing list (reply all) not just to me.
>>>
>>> --emi
>>>
>>> lun., 6 iul. 2020, 08:34 Brain Rebooting  a
>>> scris:
>>>
 Problems started from this line on the console:

 Exception in Application start method

 But when I run the same program in IntelliJ IDEA community edition, it
 just works and literally I don't see any error on my own source code.
 Apache NetBeans error detector don't show any error on my source code. But
 still when I try to execute it, these errors are displaying on the console.

 On Mon, Jul 6, 2020 at 11:30 AM Emilian Bold 
 wrote:

> Start by telling us which errors you see.
>
> --emi
>
> lun., 6 iul. 2020, 08:04 Brain Rebooting  a
> scris:
>
>> Why Apache NetBeans 12 don't execute my JavaFX program? I run the
>> same to same program in IntelliJ IDEA community edition and it works. But
>> NetBeans shows there are some errors. Here is my software usage:
>>
>> Apache NetBeans 12
>> Ubuntu 18
>> JDK 8
>>
>>
>> Samiul alom sium
>> Bangladesh
>>
>


RE: NB12 - debugger is not going into the method

2020-07-06 Thread Greenberg, Gary
No, I was not using lambda expressions.

Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com
M: 650-269-7902

[EmailSig-TaglineVersion]

From: András Sik 
Sent: Sunday, July 5, 2020 11:13 PM
Cc: users@netbeans.apache.org
Subject: Re: NB12 - debugger is not going into the method

Is there any chance this had anything to do with lambda expressions? I know NB 
had issues with these before, IDK whether or not it has been fixed.

--
To the optimist, the glass is half-full.
To the pessimist, the glass is half-empty.
To the engineer, the glass is twice as big as it needs to be.


On Mon, Jul 6, 2020 at 8:01 AM Greenberg, Gary 
mailto:ggree...@visa.com.invalid>> wrote:
I do not have a small example and I cannot send out any significant piece of 
code.
However, I believe that I have explained steps to reproduce very clearly.
I do not mind to repeat it, though.
Create a  class bar with a function foo().
Write a method in this class that will be calling function foo.
Run it in the debugger and place a breakpoint on the line where foo() is called.
When it stops, click on “step-in” button and observe the behavior.

Regards,
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com
M: 650-269-7902

[EmailSig-TaglineVersion]

From: John Mc mailto:mcdonnell.j...@gmail.com>>
Sent: Sunday, July 5, 2020 5:22 AM
To: Greenberg, Gary 
mailto:ggree...@visa.com.invalid>>
Cc: users@netbeans.apache.org
Subject: Re: NB12 - debugger is not going into the method

Do you have a small example of this behaviour?

I've not come across it myself, so without steps to reproduce, or a clear and 
simple example it might be hard to get someone to help you on resolving this 
issue...

Regards

John

On Sun, 5 Jul 2020 at 06:03, Greenberg, Gary 
mailto:ggree...@visa.com.invalid>> wrote:
I am trying to debug a maven project.
One of my methods returns unexpected result.
I placed a breakpoint on the line where method is called and when it stopped 
there, I clicked on the down arrow, planning to step into the method and see 
what is going on.
However, it did not go into the method, but behaved like “Step over” and moved 
to the next line of code.
Repeated it several times and behavior was consistent – “Step In” is not 
working as it should be.
I resolved my problem by putting another breakpoint inside the method, but it 
is not right. Back in version 8.2 it was working correctly.

Have anyone also noticed this problem?
My environment:
DELL Precision 5500
Win 10 Pro
OpenJDK 14
Netbeans 12

Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com
M: 650-269-7902

[EmailSig-TaglineVersion]



Re: NB12 - debugger is not going into the method

2020-07-06 Thread András Sik
Is there any chance this had anything to do with lambda expressions? I know
NB had issues with these before, IDK whether or not it has been fixed.

--
To the optimist, the glass is half-full.
To the pessimist, the glass is half-empty.
To the engineer, the glass is twice as big as it needs to be.



On Mon, Jul 6, 2020 at 8:01 AM Greenberg, Gary 
wrote:

> I do not have a small example and I cannot send out any significant piece
> of code.
> However, I believe that I have explained steps to reproduce very clearly.
>
> I do not mind to repeat it, though.
>
> Create a  class bar with a function foo().
>
> Write a method in this class that will be calling function foo.
>
> Run it in the debugger and place a breakpoint on the line where foo() is
> called.
>
> When it stops, click on “step-in” button and observe the behavior.
>
>
>
> Regards,
>
> Gary Greenberg
>
> Staff Software Engineer
>
> Data Product Development, BI-A
>
> E: ggree...@visa.com
>
> M: 650-269-7902
>
>
>
> [image: EmailSig-TaglineVersion]
>
>
>
> *From:* John Mc 
> *Sent:* Sunday, July 5, 2020 5:22 AM
> *To:* Greenberg, Gary 
> *Cc:* users@netbeans.apache.org
> *Subject:* Re: NB12 - debugger is not going into the method
>
>
>
> Do you have a small example of this behaviour?
>
> I've not come across it myself, so without steps to reproduce, or a clear
> and simple example it might be hard to get someone to help you on resolving
> this issue...
>
>
>
> Regards
>
> John
>
>
>
> On Sun, 5 Jul 2020 at 06:03, Greenberg, Gary 
> wrote:
>
> I am trying to debug a maven project.
>
> One of my methods returns unexpected result.
> I placed a breakpoint on the line where method is called and when it
> stopped there, I clicked on the down arrow, planning to step into the
> method and see what is going on.
> However, it did not go into the method, but behaved like “Step over” and
> moved to the next line of code.
>
> Repeated it several times and behavior was consistent – “Step In” is not
> working as it should be.
>
> I resolved my problem by putting another breakpoint inside the method, but
> it is not right. Back in version 8.2 it was working correctly.
>
>
>
> Have anyone also noticed this problem?
>
> My environment:
>
> DELL Precision 5500
>
> Win 10 Pro
>
> OpenJDK 14
>
> Netbeans 12
>
>
>
> Gary Greenberg
>
> Staff Software Engineer
>
> Data Product Development, BI-A
>
> E: ggree...@visa.com
>
> M: 650-269-7902
>
>
>
> [image: EmailSig-TaglineVersion]
>
>
>
>


Re: JavaFx Problem

2020-07-06 Thread Brain Rebooting
Probably not only this specific program. After installing NetBeans 12, none
of my JavaFX program show output (with ant build). But NetBeans 11.3 with
all same configuration, did output my JavaFX program.

On Mon, Jul 6, 2020 at 11:47 AM Brain Rebooting 
wrote:

>
> Problems started from this line on the console:
>
> Exception in Application start method
>
> But when I run the same program in IntelliJ IDEA community edition, it
> just works and literally I don't see any error on my own source code.
> Apache NetBeans error detector don't show any error on my source code. But
> still when I try to execute it, these errors are displaying on the console.
>
> On Mon, Jul 6, 2020 at 11:43 AM Emilian Bold 
> wrote:
>
>> Please send email to the mailing list (reply all) not just to me.
>>
>> --emi
>>
>> lun., 6 iul. 2020, 08:34 Brain Rebooting  a
>> scris:
>>
>>> Problems started from this line on the console:
>>>
>>> Exception in Application start method
>>>
>>> But when I run the same program in IntelliJ IDEA community edition, it
>>> just works and literally I don't see any error on my own source code.
>>> Apache NetBeans error detector don't show any error on my source code. But
>>> still when I try to execute it, these errors are displaying on the console.
>>>
>>> On Mon, Jul 6, 2020 at 11:30 AM Emilian Bold 
>>> wrote:
>>>
 Start by telling us which errors you see.

 --emi

 lun., 6 iul. 2020, 08:04 Brain Rebooting  a
 scris:

> Why Apache NetBeans 12 don't execute my JavaFX program? I run the same
> to same program in IntelliJ IDEA community edition and it works. But
> NetBeans shows there are some errors. Here is my software usage:
>
> Apache NetBeans 12
> Ubuntu 18
> JDK 8
>
>
> Samiul alom sium
> Bangladesh
>



RE: NB12 - debugger is not going into the method

2020-07-06 Thread Greenberg, Gary
I do not have a small example and I cannot send out any significant piece of 
code.
However, I believe that I have explained steps to reproduce very clearly.
I do not mind to repeat it, though.
Create a  class bar with a function foo().
Write a method in this class that will be calling function foo.
Run it in the debugger and place a breakpoint on the line where foo() is called.
When it stops, click on “step-in” button and observe the behavior.

Regards,
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com
M: 650-269-7902

[EmailSig-TaglineVersion]

From: John Mc 
Sent: Sunday, July 5, 2020 5:22 AM
To: Greenberg, Gary 
Cc: users@netbeans.apache.org
Subject: Re: NB12 - debugger is not going into the method

Do you have a small example of this behaviour?

I've not come across it myself, so without steps to reproduce, or a clear and 
simple example it might be hard to get someone to help you on resolving this 
issue...

Regards

John

On Sun, 5 Jul 2020 at 06:03, Greenberg, Gary 
mailto:ggree...@visa.com.invalid>> wrote:
I am trying to debug a maven project.
One of my methods returns unexpected result.
I placed a breakpoint on the line where method is called and when it stopped 
there, I clicked on the down arrow, planning to step into the method and see 
what is going on.
However, it did not go into the method, but behaved like “Step over” and moved 
to the next line of code.
Repeated it several times and behavior was consistent – “Step In” is not 
working as it should be.
I resolved my problem by putting another breakpoint inside the method, but it 
is not right. Back in version 8.2 it was working correctly.

Have anyone also noticed this problem?
My environment:
DELL Precision 5500
Win 10 Pro
OpenJDK 14
Netbeans 12

Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com
M: 650-269-7902

[EmailSig-TaglineVersion]