Re: NB printing question

2018-07-23 Thread Geertjan Wielenga
File | Print to HTML...

Gj

On Mon, Jul 23, 2018 at 11:27 PM, Thomas Wolf  wrote:

> I'm on a Mac running NB 8.2 and was wondering what folks do to get
> Netbeans to provide decent print output?  Here's my issue/situation: I use
> Netbeans with a dark theme (Darcula).  When I want to print something,
> "Print Options" lets me choose to "Print as in Editor" - which I can't
> choose because I'll quickly run out of ink on the printer - or manually
> specify various font/foreground attributes - which I also can't use because
> in that mode, printouts seem to ignore tabs - i.e. all my code is
> left-justified :-(
>
> The only thing I could think of to do is to switch back to a dark-on-white
> theme whenever I need to print and select "Print as in Editor" - but that's
> pretty hokey (plus I get some pretty strange results on a B/W printer when
> the syntax highlighting color doesn't have enough contrast).
>
> Any alternative suggestions?  I don't print very often anymore, but it
> sure would be nice to have decently formatted java code to look at.
>
> thnx,
> tom
>
> --
> tjw...@gmail.com
> http://landofwolf.blogspot.com/
>


Re: NB printing question

2018-07-23 Thread Emilian Bold
Interesting. I can't remember when I printed last from NetBeans but I guess in 
your case you would need a combobox next to 'Print as in Editor' that offers 
the Profiles from Options | Fonts and Colors?

Alternatively it would also help you if you could clone the editor with another 
Profile and print that one.

Both ideas need some code writing so perhaps it would help to report the idea 
here https://issues.apache.org/jira/projects/NETBEANS/issues/ You could also 
give it a try yourself, the editor code is big but it makes sense when you jump 
into it.

​--emi​

‐‐‐ Original Message ‐‐‐

On 24 July 2018 12:27 AM, Thomas Wolf  wrote:

> I'm on a Mac running NB 8.2 and was wondering what folks do to get Netbeans 
> to provide decent print output?  Here's my issue/situation: I use Netbeans 
> with a dark theme (Darcula).  When I want to print something, "Print Options" 
> lets me choose to "Print as in Editor" - which I can't choose because I'll 
> quickly run out of ink on the printer - or manually specify various 
> font/foreground attributes - which I also can't use because in that mode, 
> printouts seem to ignore tabs - i.e. all my code is left-justified :-(
> 
> The only thing I could think of to do is to switch back to a dark-on-white 
> theme whenever I need to print and select "Print as in Editor" - but that's 
> pretty hokey (plus I get some pretty strange results on a B/W printer when 
> the syntax highlighting color doesn't have enough contrast).
> 
> Any alternative suggestions?  I don't print very often anymore, but it sure 
> would be nice to have decently formatted java code to look at.
> 
> thnx,
> 
> tom
> 
> --
> 
> tjw...@gmail.com
> 
> http://landofwolf.blogspot.com/

-
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



NB printing question

2018-07-23 Thread Thomas Wolf
I'm on a Mac running NB 8.2 and was wondering what folks do to get Netbeans
to provide decent print output?  Here's my issue/situation: I use Netbeans
with a dark theme (Darcula).  When I want to print something, "Print
Options" lets me choose to "Print as in Editor" - which I can't choose
because I'll quickly run out of ink on the printer - or manually specify
various font/foreground attributes - which I also can't use because in that
mode, printouts seem to ignore tabs - i.e. all my code is left-justified :-(

The only thing I could think of to do is to switch back to a dark-on-white
theme whenever I need to print and select "Print as in Editor" - but that's
pretty hokey (plus I get some pretty strange results on a B/W printer when
the syntax highlighting color doesn't have enough contrast).

Any alternative suggestions?  I don't print very often anymore, but it sure
would be nice to have decently formatted java code to look at.

thnx,
tom

-- 
tjw...@gmail.com
http://landofwolf.blogspot.com/


RE: Customizing the tab showing a TopComponent in Editor mode

2018-07-23 Thread stephen cumminger
Just concluding this thread to tell everyone that I went with the 
AttentionHighlight suggestion below. The html results for tab title were not 
consistently reliable.


Stephen Cumminger

From: stephen cumminger 
Sent: Friday, July 20, 2018 2:50 PM
To: users@netbeans.apache.org
Subject: RE: Customizing the tab showing a TopComponent in Editor mode

Good suggestions. Thanks. Turns out that after another Clean & Build, html 
color markups are working again in the default platform tabs.

Regards,


Stephen Cumminger


From: Geertjan Wielenga 
mailto:geertjan.wiele...@googlemail.com.INVALID>>
Sent: Friday, July 20, 2018 9:47 AM
To: users@netbeans.apache.org
Subject: Re: Customizing the tab showing a TopComponent in Editor mode

I'd advise looking closely at the functionality provided out of the box by the 
APIs rather than rolling your own complex solutions, e.g., here's a few:

http://bits.netbeans.org/dev/javadoc/org-openide-windows/org/openide/windows/TopComponent.html#setAttentionHighlight-boolean-

http://bits.netbeans.org/dev/javadoc/org-openide-windows/org/openide/windows/TopComponent.html#makeBusy-boolean-

http://bits.netbeans.org/dev/javadoc/org-openide-windows/org/openide/windows/TopComponent.html#requestFocus--

http://bits.netbeans.org/dev/javadoc/org-openide-windows/org/openide/windows/TopComponent.html#requestAttention-boolean-

Gj



On Fri, Jul 20, 2018 at 2:39 PM, stephen cumminger 
mailto:stephen.cummin...@sonideft.com>> wrote:
I downloaded an older version of JGoodies PlasticTabbedPaneUI and about 20 
related java files to support it. I had to make an adjustment to it to suppress 
its titling of the tabs, but other than that it fits in really well into the 
NetBeans platform; using Geertjan's Blog for guidance. Using 
TopComponent.setDisplayName() works quite well, and yes it does support the 
font color markup. I can now color the titles that I wanted.

To answer Neil's question, I did try various colors using the hex codes. It 
didn't work.

I'm not sure this is a common use case that would warrant filing a bug. There 
would be value for others in finding the missing referenced file for the Blog 
so that others can also follow this path to doing something different. The file 
missing from the Blog appeared to be one java file that did what JGoodies did 
in 20+.

The business case for me is that I can have multiple documents opened by the 
user at the same time. I also have various singleton windows that will be 
listening on the global lookup for certain objects that may be selected within 
the documents. Each singleton will be listening for different objects within 
the selected document. Since the singleton windows can make changes to the 
opened documents, I wanted it very clear visually which document is being 
viewed/modified in the singleton.

Regards,


Stephen Cumminger


-Original Message-
From: Neil C Smith mailto:neilcsm...@apache.org>>
Sent: Friday, July 20, 2018 6:13 AM
To: stephen cumminger 
mailto:stephen.cummin...@sonideft.com>>; 
users@netbeans.apache.org
Subject: Re: Customizing the tab showing a TopComponent in Editor mode

On Thu, 19 Jul 2018 at 14:16, stephen cumminger 
mailto:stephen.cummin...@sonideft.com>> wrote:
>   String toreturn= ""+prefix+" COLOR=RED>"+super.getDisplayName()+"";

Have you tried  ?

From recollection it uses this -
http://bits.netbeans.org/dev/javadoc/org-openide-awt/org/openide/awt/HtmlRenderer.html

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


-
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