Re: Issues/capabilities of the NetBeans GUI builder

2024-02-22 Thread Michael Bien

Hi,

not everything has to use GroupLayout. Since you already have three 
tables in a JPanel, you can let that JPanel use any other layout manager 
which you prefer for the usercase.


And yes, you could also write the code for the panel with the tables in 
it by hand if that is easier and still add the panel to other forms 
using the gui builder - like lego.


Most windows in NetBeans itself were made using the gui builder, but 
here and there you will find custom code building forms where it makes 
sense.


-mbien

On 22.02.24 22:09, Joseph Huber wrote:


Hello,

I am modifying a small application that was designed with the NetBeans 
GUI builder.  One of the JPanels displays three JTables side-by-side.  
The JTables have three columns and are inside of individual 
JScrollPanes.  My task is to add more tables to display additional 
data.   The JTable columns were very wide, in order to fully display 
the widest expected data.  Unfortunately, this often leaves much dead 
space in the tables that could be reclaimed to display more tables.


I have modified the JTables to nicely adjust their column widths to 
match the actual data, but I cannot get the JScrollPanes to shrink 
down to the  width of the optimized JTables.  Thus, there is often a 
bunch of wasted empty white space in the JScrollPanes.  After the data 
is added to the table, table.getPreferredScrollableViewportSize() 
correctly reports the size of the viewport to display the optimized 
table, but I cannot figure out how to change the JScrollPane width 
from the size that it is set to in the GUI Designer to match the 
viewport size requested by the JTable; scrollpane.setSize() and 
scrollpane.setPreferredSize() don’t seem to have any effect.  It seems 
that the upstream Swing objects aren’t querying the JTables for 
display information after the data is added.


Internet search indicates that (in addition to a general disdain for 
GUI builders) this may be due to the GroupLayout layout manager used 
by the NetBeans GUI builder or some other limitations of how layout is 
done in the GUI Builder.  Any thoughts on how to get the JScrollPane 
to resize?


My second challenge would be making this JPanel horizontally 
scrollable.  Even using JTables with optimized column widths, with the 
number of tables I have to add, the JPanel would end up wider than a 
feasible desktop window size.  I tried adding the 
JTables/JScrollPanels into one larger JScrollPanel with the GUI 
Builder, but the GUI Builder does not seem to be able  to do that.


Is it feasible to do what I need to do with the NetBeans GUI builder, 
or do I need to scrap the existing GUI Builder JPanel and switch to a 
manually coded/designed JPanel?


Thank You!

Joe Huber

Standard Refrigeration LLC



Issues/capabilities of the NetBeans GUI builder

2024-02-22 Thread Joseph Huber
Hello,

I am modifying a small application that was designed with the NetBeans GUI 
builder.  One of the JPanels displays three JTables side-by-side.  The JTables 
have three columns and are inside of individual JScrollPanes.  My task is to 
add more tables to display additional data.   The JTable columns were very 
wide, in order to fully display the widest expected data.  Unfortunately, this 
often leaves much dead space in the tables that could be reclaimed to display 
more tables.

I have modified the JTables to nicely adjust their column widths to match the 
actual data, but I cannot get the JScrollPanes to shrink down to the  width of 
the optimized JTables.  Thus, there is often a bunch of wasted empty white 
space in the JScrollPanes.  After the data is added to the table, 
table.getPreferredScrollableViewportSize() correctly reports the size of the 
viewport to display the optimized table, but I cannot figure out how to change 
the JScrollPane width from the size that it is set to in the GUI Designer to 
match the viewport size requested by the JTable; scrollpane.setSize() and 
scrollpane.setPreferredSize() don't seem to have any effect.  It seems that the 
upstream Swing objects aren't querying the JTables for display information 
after the data is added.

Internet search indicates that (in addition to a general disdain for GUI 
builders) this may be due to the GroupLayout layout manager used by the 
NetBeans GUI builder or some other limitations of how layout is done in the GUI 
Builder.  Any thoughts on how to get the JScrollPane to resize?

My second challenge would be making this JPanel horizontally scrollable.  Even 
using JTables with optimized column widths, with the number of tables I have to 
add, the JPanel would end up wider than a feasible desktop window size.  I 
tried adding the JTables/JScrollPanels into one larger JScrollPanel with the 
GUI Builder, but the GUI Builder does not seem to be able  to do that.

Is it feasible to do what I need to do with the NetBeans GUI builder, or do I 
need to scrap the existing GUI Builder JPanel and switch to a manually 
coded/designed JPanel?

Thank You!

Joe Huber
Standard Refrigeration LLC



Re: JavaDoc latest documentation

2024-02-22 Thread Owen Thomas
GTK :)

On Fri, 23 Feb 2024 at 00:50, Arbol One  wrote:

> Yes! Very helpful.
> Thanks so much.
> On 2024-02-21 10:25 p.m., Owen Thomas wrote:
>
>
>
> On Thu, 22 Feb 2024 at 13:05, Arbol One  wrote:
>
>> Is there a webpage anyone can recommend to get information about JavaDoc
>> 17.0.10?
>>
>> TIA.
>>
>
>  Perhaps this
> 
> might be what you're after?
>
> --
> *ArbolOne.ca* Using Fire Fox and Thunderbird. ArbolOne is composed of
> students and volunteers dedicated to providing free services to charitable
> organizations. ArbolOne on Java Development is in progress [ í ]
>


NetBeans Scala and Swing

2024-02-22 Thread John Parten

Hi Everyone,

I am a "NetBeans Newbie", working on a Linux Fedora 38 Desktop 
workstation. I have "Java OpenJDK 17.0.9", "Scala 3.4.0" and "NetBeans 
IDE 20" installed. I would like to configure NetBeans so it has context 
sensitive help for Scala (eg when you hover or click a key word, info is 
displayed in the IDE). I am assuming that NetBeans has a "MetaLS" 
compatible interface.


Q1) Is it possible to configure NetBeans to intelligently support Scala 
(and maybe Swing)?


Q2) Can you advise on guideline for NetBeans plugins and procedures to 
adopt for Scala support?


Q3) Is there a better (easier to install) Layout Manager that I should 
be targeting instead of Swing?


Q4) Does NetBeans have a MetaLS interface ?

I tried to follow the guidelines at 
https://sourceforge.net/projects/erlybird/files, downloaded 
nbscala-7.4_2.10.x-1.6.2.0.zip, and extracted 18 *.nbm plugins. 14 out 
of 18 installed OK using NetBeans downloaded plugin manager, but the 
remaining 4 have a dependency ("Swing Layout Extensions 1.6.1 found but 
>= 1.27.1 needed"). I do not know how to overcome this. Then I realized 
that these downloaded plugins are over 10 years old. I am probably off 
the rails!


Thanks in advance for any help and advice you can give ...

... JohnP




Re: NetBeans Node.js issue

2024-02-22 Thread Bujdosó Gyula
Thank you. :) And maybe you have tips for Linux Mint how to find it?

Op do 22 feb 2024 om 17:00 schreef Peter Hull :

> On Thu, 22 Feb 2024 at 13:40, Bujdosó Gyula  wrote:
> >
> > Thanks again, will try and find where I installed it.
>
> As long as it's on your path, on Windows powershell you can use
> command 'gcm', for example:
> > gcm node
>
> CommandType Name
> VersionSource
> --- 
> -----
> Application node.exe
> 21.6.1.0   C:\Program Files\nodejs\node.exe
>
> and on Linux/MacOS use 'where' for the same job. I believe the node
> installers add node to the path so you should be OK.
>


Re: NetBeans Node.js issue

2024-02-22 Thread Peter Hull
On Thu, 22 Feb 2024 at 13:40, Bujdosó Gyula  wrote:
>
> Thanks again, will try and find where I installed it.

As long as it's on your path, on Windows powershell you can use
command 'gcm', for example:
> gcm node

CommandType Name
VersionSource
--- 
-----
Application node.exe
21.6.1.0   C:\Program Files\nodejs\node.exe

and on Linux/MacOS use 'where' for the same job. I believe the node
installers add node to the path so you should be OK.

-
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: JavaDoc latest documentation

2024-02-22 Thread Arbol One

Yes! Very helpful.
Thanks so much.

On 2024-02-21 10:25 p.m., Owen Thomas wrote:



On Thu, 22 Feb 2024 at 13:05, Arbol One  wrote:

Is there a webpage anyone can recommend to get information about
JavaDoc 17.0.10?

TIA.


 Perhaps this 
 
might be what you're after?

--
*/ArbolOne.ca/* Using Fire Fox and Thunderbird. ArbolOne is composed of 
students and volunteers dedicated to providing free services to 
charitable organizations. ArbolOne on Java Development is in progress [ í ]

Re: NetBeans Node.js issue

2024-02-22 Thread Bujdosó Gyula
Thanks again, will try and find where I installed it.

Op do 22 feb 2024 om 14:27 schreef Mark Eggers
:

> That all depends on where you installed everything.
>
> 1. Node.js is where you installed it.
>
> Haven't installed Node.js? Then download the appropriate package for
> your OS (or use the appropriate package manager if you're on Linux), and
> install.
>
> I don't know what OS you are using, and the default installing
> information is better asked on the appropriate Node mailing list.
>
> 2. npm is where you installed it
>
> That comes with Node.js (at least it does on Windows 10 Professional).
> Again, how it is installed on your particular OS is better asked on the
> appropriate Node mailing list.
>
> 3. Express generator
>
> When you use npm to install something globally (express) that location
> is determined by your OS. You'll have to browse to find it.
>
> For example, on Windows 10 Professional, the location for express
> installed globally is:
>
> %HOMEPATH%\AppData\Roaming\npm\express.cmd
>
> . . . just my two cents
>
> Mark
> /mde/
>
> On 2/22/2024 4:36 AM, Bujdosó Gyula wrote:
> > Sorry, maybe I was not specific:
> >
> > Where can I find the data that is needed to fill in the menu below:
> >
> > Tools (menu) -> Options (menu) -> HTML/JS (tab) -> Node.js (tab)
> >
> > Op do 22 feb 2024 om 12:31 schreef Bujdosó Gyula :
> >
> >> Thank you!
> >>
> >> Op do 22 feb 2024 om 09:40 schreef Mark Eggers
> >> :
> >>
> >>> On NetBeans 20:
> >>>
> >>> Tools (menu) -> Options (menu) -> HTML/JS (tab) -> Node.js (tab)
> >>>
> >>> I doubt that it's been changed for NetBeans 21 (the latest).
> >>>
> >>> just my two cents . . .
> >>>
> >>> Mark
> >>> /mde/
> >>>
> >>> On 2/21/2024 10:14 PM, Bujdosó Gyula wrote:
>  Dear Team,
> 
>  Maybe you have an idea, how I could determine and specify Node.js'
> >>> location
>  for Netbeans? Unfortunately I cannot find exactly what location
> NetBeans
>  needs.
> 
>  [image: image.png]
> 
>  Thank you very much! :)
> 
>  Gyula Bujdosó
> 
> >>>
> >>>
> >>> -
> >>> 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: NetBeans Node.js issue

2024-02-22 Thread Mark Eggers

That all depends on where you installed everything.

1. Node.js is where you installed it.

Haven't installed Node.js? Then download the appropriate package for 
your OS (or use the appropriate package manager if you're on Linux), and 
install.


I don't know what OS you are using, and the default installing 
information is better asked on the appropriate Node mailing list.


2. npm is where you installed it

That comes with Node.js (at least it does on Windows 10 Professional). 
Again, how it is installed on your particular OS is better asked on the 
appropriate Node mailing list.


3. Express generator

When you use npm to install something globally (express) that location 
is determined by your OS. You'll have to browse to find it.


For example, on Windows 10 Professional, the location for express 
installed globally is:


%HOMEPATH%\AppData\Roaming\npm\express.cmd

. . . just my two cents

Mark
/mde/

On 2/22/2024 4:36 AM, Bujdosó Gyula wrote:

Sorry, maybe I was not specific:

Where can I find the data that is needed to fill in the menu below:

Tools (menu) -> Options (menu) -> HTML/JS (tab) -> Node.js (tab)

Op do 22 feb 2024 om 12:31 schreef Bujdosó Gyula :


Thank you!

Op do 22 feb 2024 om 09:40 schreef Mark Eggers
:


On NetBeans 20:

Tools (menu) -> Options (menu) -> HTML/JS (tab) -> Node.js (tab)

I doubt that it's been changed for NetBeans 21 (the latest).

just my two cents . . .

Mark
/mde/

On 2/21/2024 10:14 PM, Bujdosó Gyula wrote:

Dear Team,

Maybe you have an idea, how I could determine and specify Node.js'

location

for Netbeans? Unfortunately I cannot find exactly what location NetBeans
needs.

[image: image.png]

Thank you very much! :)

Gyula Bujdosó




-
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: NetBeans Node.js issue

2024-02-22 Thread Bujdosó Gyula
Sorry, maybe I was not specific:

Where can I find the data that is needed to fill in the menu below:

Tools (menu) -> Options (menu) -> HTML/JS (tab) -> Node.js (tab)

Op do 22 feb 2024 om 12:31 schreef Bujdosó Gyula :

> Thank you!
>
> Op do 22 feb 2024 om 09:40 schreef Mark Eggers
> :
>
>> On NetBeans 20:
>>
>> Tools (menu) -> Options (menu) -> HTML/JS (tab) -> Node.js (tab)
>>
>> I doubt that it's been changed for NetBeans 21 (the latest).
>>
>> just my two cents . . .
>>
>> Mark
>> /mde/
>>
>> On 2/21/2024 10:14 PM, Bujdosó Gyula wrote:
>> > Dear Team,
>> >
>> > Maybe you have an idea, how I could determine and specify Node.js'
>> location
>> > for Netbeans? Unfortunately I cannot find exactly what location NetBeans
>> > needs.
>> >
>> > [image: image.png]
>> >
>> > Thank you very much! :)
>> >
>> > Gyula Bujdosó
>> >
>>
>>
>> -
>> 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 Node.js issue

2024-02-22 Thread Bujdosó Gyula
Thank you!

Op do 22 feb 2024 om 09:40 schreef Mark Eggers
:

> On NetBeans 20:
>
> Tools (menu) -> Options (menu) -> HTML/JS (tab) -> Node.js (tab)
>
> I doubt that it's been changed for NetBeans 21 (the latest).
>
> just my two cents . . .
>
> Mark
> /mde/
>
> On 2/21/2024 10:14 PM, Bujdosó Gyula wrote:
> > Dear Team,
> >
> > Maybe you have an idea, how I could determine and specify Node.js'
> location
> > for Netbeans? Unfortunately I cannot find exactly what location NetBeans
> > needs.
> >
> > [image: image.png]
> >
> > Thank you very much! :)
> >
> > Gyula Bujdosó
> >
>
>
> -
> 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 Node.js issue

2024-02-22 Thread Mark Eggers

On NetBeans 20:

Tools (menu) -> Options (menu) -> HTML/JS (tab) -> Node.js (tab)

I doubt that it's been changed for NetBeans 21 (the latest).

just my two cents . . .

Mark
/mde/

On 2/21/2024 10:14 PM, Bujdosó Gyula wrote:

Dear Team,

Maybe you have an idea, how I could determine and specify Node.js' location
for Netbeans? Unfortunately I cannot find exactly what location NetBeans
needs.

[image: image.png]

Thank you very much! :)

Gyula Bujdosó




-
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