Re: A message from NetBeans "Browser refused to debug this tab, Close Chrome developer tools(or any other browser debugger") and try again"

2019-09-14 Thread Geertjan Wielenga
https://m.youtube.com/watch?v=J6lOQS2rWK0

Hope it helps,

Gj

On Sat, 14 Sep 2019 at 20:15, Varuna Seneviratna <
varunasenevira...@gmail.com> wrote:

> Hi,
>When an HTML5 application is run in NetBeans the message "Browser
> refused to debug this tab, Close Chrome developer tools(or any other
> browser debugger") and try again" is given by NetBeans, Why? no developer
> tools are open, nor any other browser debugger.
>
> Varuna
>


A message from NetBeans "Browser refused to debug this tab, Close Chrome developer tools(or any other browser debugger") and try again"

2019-09-14 Thread Varuna Seneviratna
Hi,
   When an HTML5 application is run in NetBeans the message "Browser
refused to debug this tab, Close Chrome developer tools(or any other
browser debugger") and try again" is given by NetBeans, Why? no developer
tools are open, nor any other browser debugger.

Varuna


Re: The NetBeans help for Java development does not say how to change the JDK for project

2019-09-14 Thread Geertjan Wielenga
Right-click the project in the Projects window, open the Project Properties
dialog, and change the JDK there.

Gj

On Sat, 14 Sep 2019 at 17:03, Varuna Seneviratna <
varunasenevira...@gmail.com> wrote:

> Hi,
>The NetBeans help for Java development does not say how to change the
> JDK for project
>
>
> Varuna
>


The NetBeans help for Java development does not say how to change the JDK for project

2019-09-14 Thread Varuna Seneviratna
Hi,
   The NetBeans help for Java development does not say how to change the
JDK for project


Varuna


Re: Printing from IDE 11.0

2019-09-14 Thread Geertjan Wielenga
Well PrintCookie or Printable needs to be in the Lookup to enable the Print
button. Sounds like that is the case when a document in the editor or a
node in the Projects window is selected (though not for you apparently) and
not in the case of the node in the Files or Favorites window.

Gj

On Sat, 14 Sep 2019 at 15:45, Oliver Rettig  wrote:

> Hi,
>
> I have also played a bit with print functionality. I have tried with
> Netbeans 8.2. Print with selection works fine in the projects tab but not
> with a selection in the Files tab. A selected file in the files-tab is not
> shown in the print preview. It is also not working if selection is done in
> the Favorites-tab. So I think this is an old bug.
>
> In my platform apps I have a projects-tab and a favorites-tab. In both
> print of selected files does not work. I hasnt attract attention for me
> because print works fine if the file is opened in the editor. If the editor
> has the focus print works fine.
>
> It will be great if somebody can figure out some more this behavoir.
>
> best regards
>
> Oliver
>
> HI David,
>
> I hadn't tried it from the projects view, only the file view.
>
>
> Having tried it (after your suggestion) I can confirm it works the same
> way as you are describing. If I select a file in the project list and go to
> File->Print, the preview box opens and the file is visible and I am able to
> print it. Moving back into the file view and then selecting a file,
> File->Print also gives me the preview with the file available to print.
> (NB11.1).
>
>
> If I restart netbeans, open a file in file view and go to File->Print it
> works properly (or as expected).
>
>
> The question now I guess is - How does it lose the ability to print
> occasionally?
>
>
> Phil
>
>
>
> On Sunday, 8 September 2019, 18:22:46 BST, David Green <
> dgreen...@gmail.com> wrote:
>
>
>
> On MacOS and NetBeans 11.1, I see two behaviors:
>
>
> 1. When I am in the Files View, there is an attempt to show me a print
> page preview by NetBeans.  This is unreliable, mostly it comes up empty.
>
> 2. When I am in the Projects View, the OS print dialog comes up
> reliability and prints.
>
>
> (After I have printed the file with option 2, then option 1 starts
> "working" by going directly to the OS print dialog.  The "healing" behavior
> seems to be preserved across a quit and reopen of NetBeans.)
>
>
> Dave
>
>
> On Sun, Sep 8, 2019 at 5:05 AM philip.burn...@sky.com <
> philip.burn...@sky.com> wrote:
>
> Thanks all,
>
> Printing works for me as it should on my other station with netbeans 11.0,
> so it's something outside of netbeans I feel.
>
> Printing works OK with other software though (notepad++, word, excel etc.)
> so I'm unsure where to look for the problem :(
>
>
> I can open the code in notepad++ to print, but that's a bit defeatist ,
> or just edit with my laptop all the time...
>
>
> Phil
>
>
> On Sunday, 8 September 2019, 07:05:58 BST, Laszlo Kishalmi <
> laszlo.kisha...@gmail.com> wrote:
>
>
>
> Works for me under Ubuntu 18.04 as well.
>
> On 9/7/19 2:21 PM, Glenn Holmer wrote:
>
> On 9/7/19 4:05 PM, philip.burn...@sky.com wrote:
>
> Open a project, select a file to edit.
> Once the file is open select 'File' from the main menu, then Print from
> the drop down menu.
> The print dialog box opens, but all sections are greyed out (except the
> print options and page setup).
>
> *Product Version:* Apache NetBeans IDE 11.1
>
> *Java:* 12.0.2; Java HotSpot(TM) 64-Bit Server VM 12.0.2+10
>
> *Runtime:* Java(TM) SE Runtime Environment 12.0.2+10
>
> *System:* Windows 10 version 10.0 running on amd64; Cp1252; en_GB (nb)
>
> *User directory:* C:\Users\Philip\AppData\Roaming\NetBeans\11.1
>
> *Cache directory:* C:\Users\Philip\AppData\Local\NetBeans\Cache\11.1
>
> Don't know if this applies to your environment, but years ago under Linux,
> I remember having to make sure the printer was set as the default (in OS
> settings) even if there was only one.
>
>
> -
>
> 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: Printing from IDE 11.0

2019-09-14 Thread Oliver Rettig
Hi,
I have also played a bit with print functionality. I have tried with Netbeans 
8.2. Print with 
selection works fine in the projects tab but not with a selection in the Files 
tab. A selected file 
in the files-tab is not shown in the print preview. It is also not working if 
selection is done in 
the Favorites-tab. So I think this is an old bug.
In my platform apps I have a projects-tab and a favorites-tab. In both print of 
selected files 
does not work. I hasnt attract attention for me because print works fine if the 
file is opened 
in the editor. If the editor has the focus print works fine.
It will be great if somebody can figure out some more this behavoir.
best regards
Oliver


HI David,
I hadn't tried it from the projects view, only the file view.


Having tried it (after your suggestion) I can confirm it works the same way as 
you are 
describing. If I select a file in the project list and go to File->Print, the 
preview box opens and 
the file is visible and I am able to print it. Moving back into the file view 
and then selecting a 
file, File->Print also gives me the preview with the file available to print. 
(NB11.1).


If I restart netbeans, open a file in file view and go to File->Print it works 
properly (or as 
expected).


The question now I guess is - How does it lose the ability to print 
occasionally?


Phil




On Sunday, 8 September 2019, 18:22:46 BST, David Green  
wrote: 




On MacOS and NetBeans 11.1, I see two behaviors:


1. When I am in the Files View, there is an attempt to show me a print page 
preview by 
NetBeans.  This is unreliable, mostly it comes up empty.
2. When I am in the Projects View, the OS print dialog comes up reliability and 
prints.


(After I have printed the file with option 2, then option 1 starts "working" by 
going directly to 
the OS print dialog.  The "healing" behavior seems to be preserved across a 
quit and reopen 
of NetBeans.)


Dave


On Sun, Sep 8, 2019 at 5:05 AM philip.burn...@sky.com[1] 
<_philip.burness@sky.com_> 
wrote:


Thanks all,
Printing works for me as it should on my other station with netbeans 11.0, so 
it's something 
outside of netbeans I feel.
Printing works OK with other software though (notepad++, word, excel etc.) so 
I'm unsure 
where to look for the problem [2]:(


I can open the code in notepad++ to print, but that's a bit defeatist [3], or 
just edit with my 
laptop all the time...


Phil


On Sunday, 8 September 2019, 07:05:58 BST, Laszlo Kishalmi 
 
wrote: