You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Martin Weißhaupt <mw...@googlemail.com> on 2018/05/08 12:33:16 UTC

NetBeans has rendering problems with GTK look and feel on Java 10

I have noticed something strange when I tried the NetBeans 9 Beta. I wanted
to create a ticket in Jira but noticed that NetBeans 9 was running with
Java 10 which seems to produce rendering issues. So this is propably not a
problem of NetBeans but the GTK look and feel.

The first image shows how it should look like and the second shows multiple
problems that exist with the GTK3 look and feel which seems to be used by
Java 10.

Is there anything that can be done by NetBeans to prevent this? Forcing
Java 8 or using a different look and feel fixes the issue for me but this
is only a workaround. This also happens with my own Swing apps so should I
create a ticket for OpenJDK?

I'm running Ubuntu 18.04 and the GTK Theme used does not seem to matter.

NetBeans 8.2 running on Java 8 with the GTK2 Theme:


NetBeans 9 running on Java 10 with parts of the GTK3 Theme:

​

Re: NetBeans has rendering problems with GTK look and feel on Java 10

Posted by Martin Weißhaupt <mw...@googlemail.com>.
Now I can't see your screenshot :D

But I have tried Oracle JDK and every Swing application I tested including
NetBeans 9 looks perfect so I suspect that this is a bug in OpenJDK within
Ubuntu. I'll report the issue on Launchpad.

2018-05-09 16:23 GMT+02:00 Laszlo Kishalmi <la...@gmail.com>:

> My picture has been shot with Oracle JDK 10. With removed
> fontconfig.Ubuntu.properties.
>
> On 05/09/2018 02:41 AM, Martin Weißhaupt wrote:
>
> Hi Laszlo,
>
> I have just tried the NetBeans Beta in a VirtualBox VM running a
> Live-Image of Ubuntu 18.04 and I have the same issues.
> Ubuntu is unmodified. The only changes I did was change the keyboard
> layout to german and install openjdk-11-jdk which currently installs
> OpenJDK Version 10.0.1
>
> I don't have a HiDPI screen. The screen has a native resolution of
> 1366x768px.
> But I'll try to reproduce the issue on another machine.
>
>
> ​
>
> 2018-05-08 19:34 GMT+02:00 Laszlo Kishalmi <la...@gmail.com>:
>
>> Well, there are some Java 10 issues with HiDPI for sure,though it worked
>> fine for a while.
>>
>> After I installed System76 HiDPI switching stuff, I always get double
>> sized controls even on non HiDPI screens.
>>
>> Even if I disabled thenremoved the System76 HiDPI stuff, I had to force
>> NB to have -J-Dsun.java2d.uiScale=1.0 in netbeans.conf to make the IDE
>> usable again.
>>
>>
>>
>> On 05/08/2018 10:27 AM, Peter Steele wrote:
>>
>>> The issue I had with GTK on java 10 on Ubuntu was that it had wierd
>>> behaviour for hidpi screens. If I used the UI Scaling property to match
>>> the
>>> os I would get images all scaled correctly but fonts would be twice the
>>> size. If I set the UI Scaling property to 1 the font would now look nice
>>> but the images would be far too small.
>>>
>>> I guess GTK takes the font size from the OS which already takes scaling
>>> in
>>> to consideration so it is out of sync with java when you ask it to
>>> compensate.
>>>
>>> On Tue, 8 May 2018, 16:53 Martin Weißhaupt, <
>>> mweisshaupt1988@googlemail.com>
>>> wrote:
>>>
>>> Oops, I didn't notice this.
>>>>
>>>> I hope this works better:
>>>> https://imgur.com/a/VrLq4Rx
>>>>
>>>> The problem is not the font rendering but the gui components.
>>>>
>>>> Am 08.05.2018 um 17:28 schrieb Laszlo Kishalmi:
>>>>
>>>>> Well, Apache kindly removes the images from mails. So I just suspect
>>>>> it is more like a font rendering issue.
>>>>>
>>>>> Somehow Java 10 reintroduced the fontconfig.Ubuntu.properties* under
>>>>> $JAVA_HOME/lib
>>>>>
>>>>> That file is really old and comes from the pre-Ubuntu font ages.
>>>>> Itmakes the IDE really ugly as forcing it to render not available
>>>>> fonts.
>>>>>
>>>>> Just get rid of that file and Netbeans will look good again on GTK.
>>>>>
>>>>>
>>>>> On 05/08/2018 05:33 AM, Martin Weißhaupt wrote:
>>>>>
>>>>>> I have noticed something strange when I tried the NetBeans 9 Beta. I
>>>>>> wanted to create a ticket in Jira but noticed that NetBeans 9 was
>>>>>> running with Java 10 which seems to produce rendering issues. So this
>>>>>> is propably not a problem of NetBeans but the GTK look and feel.
>>>>>>
>>>>>> The first image shows how it should look like and the second shows
>>>>>> multiple problems that exist with the GTK3 look and feel which seems
>>>>>> to be used by Java 10.
>>>>>>
>>>>>> Is there anything that can be done by NetBeans to prevent this?
>>>>>> Forcing Java 8 or using a different look and feel fixes the issue for
>>>>>> me but this is only a workaround. This also happens with my own Swing
>>>>>> apps so should I create a ticket for OpenJDK?
>>>>>>
>>>>>> I'm running Ubuntu 18.04 and the GTK Theme used does not seem to
>>>>>> matter.
>>>>>>
>>>>>> NetBeans 8.2 running on Java 8 with the GTK2 Theme:
>>>>>>
>>>>>>
>>>>>> NetBeans 9 running on Java 10 with parts of the GTK3 Theme:
>>>>>>
>>>>>> ​
>>>>>>
>>>>>
>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
>>>> For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
>>>>
>>>> For further information about the NetBeans mailing lists, visit:
>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>
>>>>
>>>>
>>>>
>>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
>> For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
>>
>>
>
>

Re: NetBeans has rendering problems with GTK look and feel on Java 10

Posted by Laszlo Kishalmi <la...@gmail.com>.
My picture has been shot with Oracle JDK 10. With removed 
fontconfig.Ubuntu.properties.


On 05/09/2018 02:41 AM, Martin Weißhaupt wrote:
> Hi Laszlo,
>
> I have just tried the NetBeans Beta in a VirtualBox VM running a 
> Live-Image of Ubuntu 18.04 and I have the same issues.
> Ubuntu is unmodified. The only changes I did was change the keyboard 
> layout to german and install openjdk-11-jdk which currently installs 
> OpenJDK Version 10.0.1
>
> I don't have a HiDPI screen. The screen has a native resolution of 
> 1366x768px.
> But I'll try to reproduce the issue on another machine.
>
>
> ​
>
> 2018-05-08 19:34 GMT+02:00 Laszlo Kishalmi <laszlo.kishalmi@gmail.com 
> <ma...@gmail.com>>:
>
>     Well, there are some Java 10 issues with HiDPI for sure,though it
>     worked fine for a while.
>
>     After I installed System76 HiDPI switching stuff, I always get
>     double sized controls even on non HiDPI screens.
>
>     Even if I disabled thenremoved the System76 HiDPI stuff, I had to
>     force NB to have -J-Dsun.java2d.uiScale=1.0 in netbeans.conf to
>     make the IDE usable again.
>
>
>
>     On 05/08/2018 10:27 AM, Peter Steele wrote:
>
>         The issue I had with GTK on java 10 on Ubuntu was that it had
>         wierd
>         behaviour for hidpi screens. If I used the UI Scaling property
>         to match the
>         os I would get images all scaled correctly but fonts would be
>         twice the
>         size. If I set the UI Scaling property to 1 the font would now
>         look nice
>         but the images would be far too small.
>
>         I guess GTK takes the font size from the OS which already
>         takes scaling in
>         to consideration so it is out of sync with java when you ask it to
>         compensate.
>
>         On Tue, 8 May 2018, 16:53 Martin Weißhaupt,
>         <mweisshaupt1988@googlemail.com
>         <ma...@googlemail.com>>
>         wrote:
>
>             Oops, I didn't notice this.
>
>             I hope this works better:
>             https://imgur.com/a/VrLq4Rx
>
>             The problem is not the font rendering but the gui components.
>
>             Am 08.05.2018 um 17:28 schrieb Laszlo Kishalmi:
>
>                 Well, Apache kindly removes the images from mails. So
>                 I just suspect
>                 it is more like a font rendering issue.
>
>                 Somehow Java 10 reintroduced the
>                 fontconfig.Ubuntu.properties* under
>                 $JAVA_HOME/lib
>
>                 That file is really old and comes from the pre-Ubuntu
>                 font ages.
>                 Itmakes the IDE really ugly as forcing it to render
>                 not available fonts.
>
>                 Just get rid of that file and Netbeans will look good
>                 again on GTK.
>
>
>                 On 05/08/2018 05:33 AM, Martin Weißhaupt wrote:
>
>                     I have noticed something strange when I tried the
>                     NetBeans 9 Beta. I
>                     wanted to create a ticket in Jira but noticed that
>                     NetBeans 9 was
>                     running with Java 10 which seems to produce
>                     rendering issues. So this
>                     is propably not a problem of NetBeans but the GTK
>                     look and feel.
>
>                     The first image shows how it should look like and
>                     the second shows
>                     multiple problems that exist with the GTK3 look
>                     and feel which seems
>                     to be used by Java 10.
>
>                     Is there anything that can be done by NetBeans to
>                     prevent this?
>                     Forcing Java 8 or using a different look and feel
>                     fixes the issue for
>                     me but this is only a workaround. This also
>                     happens with my own Swing
>                     apps so should I create a ticket for OpenJDK?
>
>                     I'm running Ubuntu 18.04 and the GTK Theme used
>                     does not seem to matter.
>
>                     NetBeans 8.2 running on Java 8 with the GTK2 Theme:
>
>
>                     NetBeans 9 running on Java 10 with parts of the
>                     GTK3 Theme:
>
>                     ​
>
>
>
>             ---------------------------------------------------------------------
>             To unsubscribe, e-mail:
>             dev-unsubscribe@netbeans.incubator.apache.org
>             <ma...@netbeans.incubator.apache.org>
>             For additional commands, e-mail:
>             dev-help@netbeans.incubator.apache.org
>             <ma...@netbeans.incubator.apache.org>
>
>             For further information about the NetBeans mailing lists,
>             visit:
>             https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>             <https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists>
>
>
>
>
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail:
>     dev-unsubscribe@netbeans.incubator.apache.org
>     <ma...@netbeans.incubator.apache.org>
>     For additional commands, e-mail:
>     dev-help@netbeans.incubator.apache.org
>     <ma...@netbeans.incubator.apache.org>
>
>     For further information about the NetBeans mailing lists, visit:
>     https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>     <https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists>
>
>
>
>


Re: NetBeans has rendering problems with GTK look and feel on Java 10

Posted by Martin Weißhaupt <mw...@googlemail.com>.
Hi Laszlo,

I have just tried the NetBeans Beta in a VirtualBox VM running a Live-Image
of Ubuntu 18.04 and I have the same issues.
Ubuntu is unmodified. The only changes I did was change the keyboard layout
to german and install openjdk-11-jdk which currently installs OpenJDK
Version 10.0.1

I don't have a HiDPI screen. The screen has a native resolution of
1366x768px.
But I'll try to reproduce the issue on another machine.


​

2018-05-08 19:34 GMT+02:00 Laszlo Kishalmi <la...@gmail.com>:

> Well, there are some Java 10 issues with HiDPI for sure,though it worked
> fine for a while.
>
> After I installed System76 HiDPI switching stuff, I always get double
> sized controls even on non HiDPI screens.
>
> Even if I disabled thenremoved the System76 HiDPI stuff, I had to force NB
> to have -J-Dsun.java2d.uiScale=1.0 in netbeans.conf to make the IDE usable
> again.
>
>
>
> On 05/08/2018 10:27 AM, Peter Steele wrote:
>
>> The issue I had with GTK on java 10 on Ubuntu was that it had wierd
>> behaviour for hidpi screens. If I used the UI Scaling property to match
>> the
>> os I would get images all scaled correctly but fonts would be twice the
>> size. If I set the UI Scaling property to 1 the font would now look nice
>> but the images would be far too small.
>>
>> I guess GTK takes the font size from the OS which already takes scaling in
>> to consideration so it is out of sync with java when you ask it to
>> compensate.
>>
>> On Tue, 8 May 2018, 16:53 Martin Weißhaupt, <
>> mweisshaupt1988@googlemail.com>
>> wrote:
>>
>> Oops, I didn't notice this.
>>>
>>> I hope this works better:
>>> https://imgur.com/a/VrLq4Rx
>>>
>>> The problem is not the font rendering but the gui components.
>>>
>>> Am 08.05.2018 um 17:28 schrieb Laszlo Kishalmi:
>>>
>>>> Well, Apache kindly removes the images from mails. So I just suspect
>>>> it is more like a font rendering issue.
>>>>
>>>> Somehow Java 10 reintroduced the fontconfig.Ubuntu.properties* under
>>>> $JAVA_HOME/lib
>>>>
>>>> That file is really old and comes from the pre-Ubuntu font ages.
>>>> Itmakes the IDE really ugly as forcing it to render not available fonts.
>>>>
>>>> Just get rid of that file and Netbeans will look good again on GTK.
>>>>
>>>>
>>>> On 05/08/2018 05:33 AM, Martin Weißhaupt wrote:
>>>>
>>>>> I have noticed something strange when I tried the NetBeans 9 Beta. I
>>>>> wanted to create a ticket in Jira but noticed that NetBeans 9 was
>>>>> running with Java 10 which seems to produce rendering issues. So this
>>>>> is propably not a problem of NetBeans but the GTK look and feel.
>>>>>
>>>>> The first image shows how it should look like and the second shows
>>>>> multiple problems that exist with the GTK3 look and feel which seems
>>>>> to be used by Java 10.
>>>>>
>>>>> Is there anything that can be done by NetBeans to prevent this?
>>>>> Forcing Java 8 or using a different look and feel fixes the issue for
>>>>> me but this is only a workaround. This also happens with my own Swing
>>>>> apps so should I create a ticket for OpenJDK?
>>>>>
>>>>> I'm running Ubuntu 18.04 and the GTK Theme used does not seem to
>>>>> matter.
>>>>>
>>>>> NetBeans 8.2 running on Java 8 with the GTK2 Theme:
>>>>>
>>>>>
>>>>> NetBeans 9 running on Java 10 with parts of the GTK3 Theme:
>>>>>
>>>>> ​
>>>>>
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
>>> For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
>>>
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>
>>>
>>>
>>>
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Re: NetBeans has rendering problems with GTK look and feel on Java 10

Posted by Laszlo Kishalmi <la...@gmail.com>.
Well, there are some Java 10 issues with HiDPI for sure,though it worked 
fine for a while.

After I installed System76 HiDPI switching stuff, I always get double 
sized controls even on non HiDPI screens.

Even if I disabled thenremoved the System76 HiDPI stuff, I had to force 
NB to have -J-Dsun.java2d.uiScale=1.0 in netbeans.conf to make the IDE 
usable again.


On 05/08/2018 10:27 AM, Peter Steele wrote:
> The issue I had with GTK on java 10 on Ubuntu was that it had wierd
> behaviour for hidpi screens. If I used the UI Scaling property to match the
> os I would get images all scaled correctly but fonts would be twice the
> size. If I set the UI Scaling property to 1 the font would now look nice
> but the images would be far too small.
>
> I guess GTK takes the font size from the OS which already takes scaling in
> to consideration so it is out of sync with java when you ask it to
> compensate.
>
> On Tue, 8 May 2018, 16:53 Martin Weißhaupt, <mw...@googlemail.com>
> wrote:
>
>> Oops, I didn't notice this.
>>
>> I hope this works better:
>> https://imgur.com/a/VrLq4Rx
>>
>> The problem is not the font rendering but the gui components.
>>
>> Am 08.05.2018 um 17:28 schrieb Laszlo Kishalmi:
>>> Well, Apache kindly removes the images from mails. So I just suspect
>>> it is more like a font rendering issue.
>>>
>>> Somehow Java 10 reintroduced the fontconfig.Ubuntu.properties* under
>>> $JAVA_HOME/lib
>>>
>>> That file is really old and comes from the pre-Ubuntu font ages.
>>> Itmakes the IDE really ugly as forcing it to render not available fonts.
>>>
>>> Just get rid of that file and Netbeans will look good again on GTK.
>>>
>>>
>>> On 05/08/2018 05:33 AM, Martin Weißhaupt wrote:
>>>> I have noticed something strange when I tried the NetBeans 9 Beta. I
>>>> wanted to create a ticket in Jira but noticed that NetBeans 9 was
>>>> running with Java 10 which seems to produce rendering issues. So this
>>>> is propably not a problem of NetBeans but the GTK look and feel.
>>>>
>>>> The first image shows how it should look like and the second shows
>>>> multiple problems that exist with the GTK3 look and feel which seems
>>>> to be used by Java 10.
>>>>
>>>> Is there anything that can be done by NetBeans to prevent this?
>>>> Forcing Java 8 or using a different look and feel fixes the issue for
>>>> me but this is only a workaround. This also happens with my own Swing
>>>> apps so should I create a ticket for OpenJDK?
>>>>
>>>> I'm running Ubuntu 18.04 and the GTK Theme used does not seem to matter.
>>>>
>>>> NetBeans 8.2 running on Java 8 with the GTK2 Theme:
>>>>
>>>>
>>>> NetBeans 9 running on Java 10 with parts of the GTK3 Theme:
>>>>
>>>> ​
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
>> For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
>>
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
For additional commands, e-mail: dev-help@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: NetBeans has rendering problems with GTK look and feel on Java 10

Posted by Peter Steele <st...@gmail.com>.
The issue I had with GTK on java 10 on Ubuntu was that it had wierd
behaviour for hidpi screens. If I used the UI Scaling property to match the
os I would get images all scaled correctly but fonts would be twice the
size. If I set the UI Scaling property to 1 the font would now look nice
but the images would be far too small.

I guess GTK takes the font size from the OS which already takes scaling in
to consideration so it is out of sync with java when you ask it to
compensate.

On Tue, 8 May 2018, 16:53 Martin Weißhaupt, <mw...@googlemail.com>
wrote:

> Oops, I didn't notice this.
>
> I hope this works better:
> https://imgur.com/a/VrLq4Rx
>
> The problem is not the font rendering but the gui components.
>
> Am 08.05.2018 um 17:28 schrieb Laszlo Kishalmi:
> > Well, Apache kindly removes the images from mails. So I just suspect
> > it is more like a font rendering issue.
> >
> > Somehow Java 10 reintroduced the fontconfig.Ubuntu.properties* under
> > $JAVA_HOME/lib
> >
> > That file is really old and comes from the pre-Ubuntu font ages.
> > Itmakes the IDE really ugly as forcing it to render not available fonts.
> >
> > Just get rid of that file and Netbeans will look good again on GTK.
> >
> >
> > On 05/08/2018 05:33 AM, Martin Weißhaupt wrote:
> >> I have noticed something strange when I tried the NetBeans 9 Beta. I
> >> wanted to create a ticket in Jira but noticed that NetBeans 9 was
> >> running with Java 10 which seems to produce rendering issues. So this
> >> is propably not a problem of NetBeans but the GTK look and feel.
> >>
> >> The first image shows how it should look like and the second shows
> >> multiple problems that exist with the GTK3 look and feel which seems
> >> to be used by Java 10.
> >>
> >> Is there anything that can be done by NetBeans to prevent this?
> >> Forcing Java 8 or using a different look and feel fixes the issue for
> >> me but this is only a workaround. This also happens with my own Swing
> >> apps so should I create a ticket for OpenJDK?
> >>
> >> I'm running Ubuntu 18.04 and the GTK Theme used does not seem to matter.
> >>
> >> NetBeans 8.2 running on Java 8 with the GTK2 Theme:
> >>
> >>
> >> NetBeans 9 running on Java 10 with parts of the GTK3 Theme:
> >>
> >> ​
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Re: NetBeans has rendering problems with GTK look and feel on Java 10

Posted by Martin Weißhaupt <mw...@googlemail.com>.
Oops, I didn't notice this.

I hope this works better:
https://imgur.com/a/VrLq4Rx

The problem is not the font rendering but the gui components.

Am 08.05.2018 um 17:28 schrieb Laszlo Kishalmi:
> Well, Apache kindly removes the images from mails. So I just suspect 
> it is more like a font rendering issue.
>
> Somehow Java 10 reintroduced the fontconfig.Ubuntu.properties* under 
> $JAVA_HOME/lib
>
> That file is really old and comes from the pre-Ubuntu font ages. 
> Itmakes the IDE really ugly as forcing it to render not available fonts.
>
> Just get rid of that file and Netbeans will look good again on GTK.
>
>
> On 05/08/2018 05:33 AM, Martin Weißhaupt wrote:
>> I have noticed something strange when I tried the NetBeans 9 Beta. I 
>> wanted to create a ticket in Jira but noticed that NetBeans 9 was 
>> running with Java 10 which seems to produce rendering issues. So this 
>> is propably not a problem of NetBeans but the GTK look and feel.
>>
>> The first image shows how it should look like and the second shows 
>> multiple problems that exist with the GTK3 look and feel which seems 
>> to be used by Java 10.
>>
>> Is there anything that can be done by NetBeans to prevent this? 
>> Forcing Java 8 or using a different look and feel fixes the issue for 
>> me but this is only a workaround. This also happens with my own Swing 
>> apps so should I create a ticket for OpenJDK?
>>
>> I'm running Ubuntu 18.04 and the GTK Theme used does not seem to matter.
>>
>> NetBeans 8.2 running on Java 8 with the GTK2 Theme:
>>
>>
>> NetBeans 9 running on Java 10 with parts of the GTK3 Theme:
>>
>> ​
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
For additional commands, e-mail: dev-help@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: NetBeans has rendering problems with GTK look and feel on Java 10

Posted by Laszlo Kishalmi <la...@gmail.com>.
Well, Apache kindly removes the images from mails. So I just suspect it 
is more like a font rendering issue.

Somehow Java 10 reintroduced the fontconfig.Ubuntu.properties* under 
$JAVA_HOME/lib

That file is really old and comes from the pre-Ubuntu font ages. Itmakes 
the IDE really ugly as forcing it to render not available fonts.

Just get rid of that file and Netbeans will look good again on GTK.


On 05/08/2018 05:33 AM, Martin Weißhaupt wrote:
> I have noticed something strange when I tried the NetBeans 9 Beta. I 
> wanted to create a ticket in Jira but noticed that NetBeans 9 was 
> running with Java 10 which seems to produce rendering issues. So this 
> is propably not a problem of NetBeans but the GTK look and feel.
>
> The first image shows how it should look like and the second shows 
> multiple problems that exist with the GTK3 look and feel which seems 
> to be used by Java 10.
>
> Is there anything that can be done by NetBeans to prevent this? 
> Forcing Java 8 or using a different look and feel fixes the issue for 
> me but this is only a workaround. This also happens with my own Swing 
> apps so should I create a ticket for OpenJDK?
>
> I'm running Ubuntu 18.04 and the GTK Theme used does not seem to matter.
>
> NetBeans 8.2 running on Java 8 with the GTK2 Theme:
>
>
> NetBeans 9 running on Java 10 with parts of the GTK3 Theme:
>
> ​