Re: NB17 Extra lines after Run??

2023-04-28 Thread Tim de Vries

probably, you've got an ANSIBlock setting your display settings.


You probably need a test method to determine what's real.

Tim


probably  a static {this, that} block within a class within your 
classpath.., yes/no? , ...



James

On 2023-04-28 6:15 p.m., Amn Ojee Uw wrote:


Hey folks!

I might have done some tweaking  and being the newbie that I am I 
ended up messing up NB17. Now when I Click on Run, I get the proper 
output as well as the following lines:


*BUILD SUCCESSFUL (total time: 0 seconds)
Could not load a dependent class (jdepend/textui/JDepend) for type
jdepend
Could not load a dependent class (javax/media/jai/PlanarImage) for
type image
Could not load class

(org.apache.tools.ant.taskdefs.optional.junitlauncher.confined.JUnitLauncherTask)
for type junitlauncher
Could not load a dependent class (org/tukaani/xz/FilterOptions)
for type xzresource
Could not load class
(org.apache.tools.ant.taskdefs.optional.image.ImageIOTask) for
type imageio
Could not load a dependent class (org/tukaani/xz/FilterOptions)
for type xz
Could not load a dependent class (jdepend/textui/JDepend) for type
jdepend
Could not load a dependent class (javax/media/jai/PlanarImage) for
type image
Could not load class

(org.apache.tools.ant.taskdefs.optional.junitlauncher.confined.JUnitLauncherTask)
for type junitlauncher
Could not load a dependent class (org/tukaani/xz/FilterOptions)
for type xzresource
Could not load class
(org.apache.tools.ant.taskdefs.optional.image.ImageIOTask) for
type imageio
Could not load a dependent class (org/tukaani/xz/FilterOptions)
for type xz
*

Anyone here can tell me what changed? Why am I getting all those lines?

Thanks in advance


Re: NB17 Extra lines after Run??

2023-04-28 Thread Tim de Vries
Yeah, so that looks like a link to a JDepend dependency, and then your 
output is in ANSI Terminal format...



So, the BRIGHT_BLACK and BOLD would be like, not that good.


They should be able to solid color or anti-aliased?

It looks like Arial, so have you stolen from Microsoft?

Sure, sure, graphics, extract and format.,..., that kind of thing?

Tim

On 2023-04-28 6:15 p.m., Amn Ojee Uw wrote:


Hey folks!

I might have done some tweaking  and being the newbie that I am I 
ended up messing up NB17. Now when I Click on Run, I get the proper 
output as well as the following lines:


*BUILD SUCCESSFUL (total time: 0 seconds)
Could not load a dependent class (jdepend/textui/JDepend) for type
jdepend
Could not load a dependent class (javax/media/jai/PlanarImage) for
type image
Could not load class

(org.apache.tools.ant.taskdefs.optional.junitlauncher.confined.JUnitLauncherTask)
for type junitlauncher
Could not load a dependent class (org/tukaani/xz/FilterOptions)
for type xzresource
Could not load class
(org.apache.tools.ant.taskdefs.optional.image.ImageIOTask) for
type imageio
Could not load a dependent class (org/tukaani/xz/FilterOptions)
for type xz
Could not load a dependent class (jdepend/textui/JDepend) for type
jdepend
Could not load a dependent class (javax/media/jai/PlanarImage) for
type image
Could not load class

(org.apache.tools.ant.taskdefs.optional.junitlauncher.confined.JUnitLauncherTask)
for type junitlauncher
Could not load a dependent class (org/tukaani/xz/FilterOptions)
for type xzresource
Could not load class
(org.apache.tools.ant.taskdefs.optional.image.ImageIOTask) for
type imageio
Could not load a dependent class (org/tukaani/xz/FilterOptions)
for type xz
*

Anyone here can tell me what changed? Why am I getting all those lines?

Thanks in advance


NB17 Extra lines after Run??

2023-04-28 Thread Amn Ojee Uw

Hey folks!

I might have done some tweaking  and being the newbie that I am I ended 
up messing up NB17. Now when I Click on Run, I get the proper output as 
well as the following lines:


   *BUILD SUCCESSFUL (total time: 0 seconds)
   Could not load a dependent class (jdepend/textui/JDepend) for type
   jdepend
   Could not load a dependent class (javax/media/jai/PlanarImage) for
   type image
   Could not load class
   
(org.apache.tools.ant.taskdefs.optional.junitlauncher.confined.JUnitLauncherTask)
   for type junitlauncher
   Could not load a dependent class (org/tukaani/xz/FilterOptions) for
   type xzresource
   Could not load class
   (org.apache.tools.ant.taskdefs.optional.image.ImageIOTask) for type
   imageio
   Could not load a dependent class (org/tukaani/xz/FilterOptions) for
   type xz
   Could not load a dependent class (jdepend/textui/JDepend) for type
   jdepend
   Could not load a dependent class (javax/media/jai/PlanarImage) for
   type image
   Could not load class
   
(org.apache.tools.ant.taskdefs.optional.junitlauncher.confined.JUnitLauncherTask)
   for type junitlauncher
   Could not load a dependent class (org/tukaani/xz/FilterOptions) for
   type xzresource
   Could not load class
   (org.apache.tools.ant.taskdefs.optional.image.ImageIOTask) for type
   imageio
   Could not load a dependent class (org/tukaani/xz/FilterOptions) for
   type xz
   *

Anyone here can tell me what changed? Why am I getting all those lines?

Thanks in advance


Re: Netbeans template files

2023-04-28 Thread Bradley Willcott
The version I'm talking about, is coming from the pom.xml file. It is 
also available to the NB environment as it appears in the Project's 
Properties window. I would have thought it would be of use to many 
others who would be including the current project version number in 
their new class files. I have been manually replacing it in each file 
after creation for a while now, and was hoping for a more automated 
(computer driven) solution. After all, why use a computer if it can't be 
taught to do at least the repetitive tasks?


Thanks.

On 28/4/23 19:06, Andreas Reichel wrote:

Unfortunately not really.
If I do understand your requirements then I'd think about 3 steps:

1 get the version from git or mercurial
2 update your project template accordingly per script
3 create a hook which runs this update on every new tag created or commit

Cheers

On 28 Apr 2023 11:59, Bradley Willcott  wrote:

Hi Andreas.
Ok.
Can you help me?

Brad.

On 28/4/23 18:56, Andreas Reichel wrote:

Bradley.

It is safe to ignore Tim's emails as it is only auto generated
rubbish trolling the list.

On 28 Apr 2023 11:45, Bradley Willcott
  wrote:

Hi Tim.
Please explain, where and how. I am looking to provide
this info to the Template files in NB. I am not looking to
modify NB code.

Thanks,
Brad.

On 28/4/23 08:14, Tim de Vries wrote:

yeah, but they dont want me to say.

Define a global Data.Your_VERSION and post process :
on?Create to do your work.

On 24/04/2023 6:26 a.m., Bradley Willcott wrote:

Hi there.
I would like to have the project version
automatically included in the class comments of
new classes.

For example:

/**
  * NewClass class description.
  *
  * @author mailto:bw.opensou...@yahoo.com;  
>Bradley Willcott
  *
  * @since 1.0.0
  * @version 1.0.0
  */

This is currently set through the global
User.properties file. However, this does not
reflect the current version of the project.
I am working on a Java project using the Maven
build environment.

Any thought on how to do this?
Thank you.
Brad.









javax.swing.GroupLayout changed to org.jdesktop.layout.GroupLayout by form designer

2023-04-28 Thread Fernando Calderón

Hi


I have a file template for a java class that extends JPanel. I have 
copied the JPanel template and changed "extends JPanel" to "extends 
MyClass" (MyClass extends JPanel).



When I create a new MyClass file (using the template) everything is 
fine. The problem arises when I drag a component to my MyClass object.



When I do that the library "javax.swing" is not used anymore.

Instead,the code generator uses the old library "org.jdesktop".


For example:

javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);

is changed to:

 org.jdesktop.layout.GroupLayout layout = new 
org.jdesktop.layout.GroupLayout(this);



Is there a known bug about this? Seems to be the code generator messing 
things up.



Be aware that this does not happen with JPanel form template (or JFrame, 
JDialog for that matter), just with MyClass template.


The MyClass template, as I said before, is an exact copy of the JPanel 
template except from that it extends MyClass instead of JPanel. The 
corresponding form file is exactly the same as JPanel's.



-
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: Netbeans template files

2023-04-28 Thread Bradley Willcott

Hi Tim.
Please explain, where and how. I am looking to provide this info to the 
Template files in NB. I am not looking to modify NB code.


Thanks,
Brad.

On 28/4/23 08:14, Tim de Vries wrote:


yeah, but they dont want me to say.

Define a global Data.Your_VERSION and post process : on?Create to do 
your work.


On 24/04/2023 6:26 a.m., Bradley Willcott wrote:

Hi there.
I would like to have the project version automatically included in 
the class comments of new classes.


For example:
/**
  * NewClass class description.
  *
  * @author mailto:bw.opensou...@yahoo.com;>Bradley Willcott
  *
  * @since 1.0.0
  * @version 1.0.0
  */
This is currently set through the global User.properties file. 
However, this does not reflect the current version of the project.

I am working on a Java project using the Maven build environment.

Any thought on how to do this?
Thank you.
Brad.