Re: Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable

2014-04-14 Thread Eirik Bakke
Great--thanks!

On 4/14/14, 10:31 AM, "Alexander Scherbatiy"
 wrote:

>
>
>   Thank you for the report.  I am able to reproduce the issue in
>JDK8u20 build 05 and it should have been already fixed in the build 09.
>
>   Thanks,
>   Alexandr.
>
>
>On 4/13/2014 6:55 PM, Eirik Bakke wrote:
>> Huh, in Hendrik's case it seems he gets an even-larger checkmark even
>> in retina mode (judging from the font size in Hendrik's screenshot).
>> In my case I was _not_ running in retina mode.
>>
>> From: Hendrik Schreiber mailto:h...@tagtraum.com>>
>> Date: Sunday, April 13, 2014 at 4:08 AM
>> To: "macosx-port-dev@openjdk.java.net
>> <mailto:macosx-port-dev@openjdk.java.net> X"
>> > <mailto:macosx-port-dev@openjdk.java.net>>, Alexander Scherbatiy
>> mailto:alexandr.scherba...@oracle.com>>
>> Cc: Eirik Bakke mailto:eba...@mit.edu>>
>> Subject: Re: Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable
>>
>> On Apr 11, 2014, at 18:30, Eirik Bakke > <mailto:eba...@mit.edu>> wrote:
>>
>> > Hmm, now I cannot reproduce the bug. I think it might have disappeared
>> > when I disconnected and reconnected my external monitor. I will file
>>it
>> > once I manage to reproduce it consistently.
>>
>> It does not depend on an external monitor, as I don't one and have
>> observed this, too (screenshot of a menu attached).
>> I've seen this in a menu, that is not in the system menu bar, but in
>> the app window itself.
>> This happened when running an ancient version of HPJmeter. Just
>> double-clicked on the jar, and I was able to observe the issue.
>>
>> ps ax | grep java
>>  4351   ??  U  0:03.88 /Library/Internet
>> Plug-ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -jar
>> 
>>/Users/hendrik/repository/texte/performance/downloads/hpjmeter/HPjmeter.j
>>ar
>>  4414 s004  R+ 0:00.00 grep java
>> mankell:~ hendrik$ /Library/Internet\
>> Plug-ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version
>> java version "1.8.0_20-ea"
>> Java(TM) SE Runtime Environment (build 1.8.0_20-ea-b05)
>> Java HotSpot(TM) 64-Bit Server VM (build 25.20-b05, mixed mode)
>>
>> Hope this helps to nail it down.
>>
>> -hendrik
>>
>> PS: I have attached the jar to illustrate the point, please don't
>> re-distribute
>>
>



Re: Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable

2014-04-14 Thread Alexander Scherbatiy



  Thank you for the report.  I am able to reproduce the issue in 
JDK8u20 build 05 and it should have been already fixed in the build 09.


  Thanks,
  Alexandr.


On 4/13/2014 6:55 PM, Eirik Bakke wrote:
Huh, in Hendrik's case it seems he gets an even-larger checkmark even 
in retina mode (judging from the font size in Hendrik's screenshot). 
In my case I was _not_ running in retina mode.


From: Hendrik Schreiber mailto:h...@tagtraum.com>>
Date: Sunday, April 13, 2014 at 4:08 AM
To: "macosx-port-dev@openjdk.java.net 
<mailto:macosx-port-dev@openjdk.java.net> X" 
<mailto:macosx-port-dev@openjdk.java.net>>, Alexander Scherbatiy 
mailto:alexandr.scherba...@oracle.com>>

Cc: Eirik Bakke mailto:eba...@mit.edu>>
Subject: Re: Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable

On Apr 11, 2014, at 18:30, Eirik Bakke <mailto:eba...@mit.edu>> wrote:


> Hmm, now I cannot reproduce the bug. I think it might have disappeared
> when I disconnected and reconnected my external monitor. I will file it
> once I manage to reproduce it consistently.

It does not depend on an external monitor, as I don't one and have 
observed this, too (screenshot of a menu attached).
I've seen this in a menu, that is not in the system menu bar, but in 
the app window itself.
This happened when running an ancient version of HPJmeter. Just 
double-clicked on the jar, and I was able to observe the issue.


ps ax | grep java
 4351   ??  U  0:03.88 /Library/Internet 
Plug-ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -jar 
/Users/hendrik/repository/texte/performance/downloads/hpjmeter/HPjmeter.jar

 4414 s004  R+ 0:00.00 grep java
mankell:~ hendrik$ /Library/Internet\ 
Plug-ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version

java version "1.8.0_20-ea"
Java(TM) SE Runtime Environment (build 1.8.0_20-ea-b05)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b05, mixed mode)

Hope this helps to nail it down.

-hendrik

PS: I have attached the jar to illustrate the point, please don't 
re-distribute






Re: Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable

2014-04-13 Thread Hendrik Schreiber
On Apr 13, 2014, at 16:55, Eirik Bakke  wrote:

> Huh, in Hendrik's case it seems he gets an even-larger checkmark even in 
> retina mode (judging from the font size in Hendrik's screenshot). In my case 
> I was _not_ running in retina mode.

Just to confirm: I was using Retina.

-hendrik

Re: Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable

2014-04-13 Thread Eirik Bakke
Huh, in Hendrik's case it seems he gets an even-larger checkmark even in retina 
mode (judging from the font size in Hendrik's screenshot). In my case I was 
_not_ running in retina mode.

From: Hendrik Schreiber mailto:h...@tagtraum.com>>
Date: Sunday, April 13, 2014 at 4:08 AM
To: "macosx-port-dev@openjdk.java.net<mailto:macosx-port-dev@openjdk.java.net> 
X" mailto:macosx-port-dev@openjdk.java.net>>, 
Alexander Scherbatiy 
mailto:alexandr.scherba...@oracle.com>>
Cc: Eirik Bakke mailto:eba...@mit.edu>>
Subject: Re: Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable

On Apr 11, 2014, at 18:30, Eirik Bakke mailto:eba...@mit.edu>> 
wrote:

> Hmm, now I cannot reproduce the bug. I think it might have disappeared
> when I disconnected and reconnected my external monitor. I will file it
> once I manage to reproduce it consistently.

It does not depend on an external monitor, as I don't one and have observed 
this, too (screenshot of a menu attached).
I've seen this in a menu, that is not in the system menu bar, but in the app 
window itself.
This happened when running an ancient version of HPJmeter. Just double-clicked 
on the jar, and I was able to observe the issue.

ps ax | grep java
 4351   ??  U  0:03.88 /Library/Internet 
Plug-ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -jar 
/Users/hendrik/repository/texte/performance/downloads/hpjmeter/HPjmeter.jar
 4414 s004  R+ 0:00.00 grep java
mankell:~ hendrik$ /Library/Internet\ 
Plug-ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version
java version "1.8.0_20-ea"
Java(TM) SE Runtime Environment (build 1.8.0_20-ea-b05)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b05, mixed mode)

Hope this helps to nail it down.

-hendrik

PS: I have attached the jar to illustrate the point, please don't re-distribute

[cid:779ad24a-64b1-4e26-850f-d49823c76ca9@exchange.mit.edu]


Re: Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable

2014-04-11 Thread Eirik Bakke
Hi, Alexandr. Sure, re-sending.


Hmm, now I cannot reproduce the bug. I think it might have disappeared
when I disconnected and reconnected my external monitor. I will file it
once I manage to reproduce it consistently.

-- Eirik

On 4/11/14, 5:24 AM, "Alexander Scherbatiy"
 wrote:

>On 4/10/2014 8:24 PM, Eirik Bakke wrote:
>> I'm running the NetBeans IDE 8.0 on Java: 1.8.0_20-ea. Just saw a giant
>> over-sized checkbox in a popup menu (see attached).
>Unfortunately the  openjdk alias removes attachments from the mail.
>Could you resend the image and add me to the cc list.
>> Could it be related to
>> the retina patch mentioned in the thread below?
> The patch was only pushed yesterday to the JDK 8u-dev:
>http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/rev/c696bf320614
>
>   Could you create the issue on it: http://bugreport.java.com/bugreport/
>
>   Thanks,
>   Alexandr.
>
>>
>> I don't see oversized checkmarks in the main menus. The oversized
>> checkmark is still present in the popup menu after I restart the IDE.
>>
>> -- Eirik
>>
>>
>> On 3/21/14, 10:50 AM, "Hendrik Schreiber"  wrote:
>>
>>> On Mar 21, 2014, at 15:40, Alexander Scherbatiy
>>>  wrote:
>>>
   Thank you for the report.

   I have created an issue on it: 8038113 [macosx] JTree icon is not
 rendered in high resolution on Retina
  https://bugs.openjdk.java.net/browse/JDK-8038113

   Thanks,
   Alexandr.
>>> Thanks!
>>>
>>> -hendrik
>>>
>



Re: Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable

2014-04-11 Thread Alexander Scherbatiy

On 4/10/2014 8:24 PM, Eirik Bakke wrote:

I'm running the NetBeans IDE 8.0 on Java: 1.8.0_20-ea. Just saw a giant
over-sized checkbox in a popup menu (see attached).

   Unfortunately the  openjdk alias removes attachments from the mail.
   Could you resend the image and add me to the cc list.

Could it be related to
the retina patch mentioned in the thread below?

The patch was only pushed yesterday to the JDK 8u-dev:
http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/rev/c696bf320614

  Could you create the issue on it: http://bugreport.java.com/bugreport/

  Thanks,
  Alexandr.



I don't see oversized checkmarks in the main menus. The oversized
checkmark is still present in the popup menu after I restart the IDE.

-- Eirik


On 3/21/14, 10:50 AM, "Hendrik Schreiber"  wrote:


On Mar 21, 2014, at 15:40, Alexander Scherbatiy
 wrote:


  Thank you for the report.

  I have created an issue on it: 8038113 [macosx] JTree icon is not
rendered in high resolution on Retina
 https://bugs.openjdk.java.net/browse/JDK-8038113

  Thanks,
  Alexandr.

Thanks!

-hendrik





Re: Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable

2014-04-10 Thread Eirik Bakke
I'm running the NetBeans IDE 8.0 on Java: 1.8.0_20-ea. Just saw a giant
over-sized checkbox in a popup menu (see attached). Could it be related to
the retina patch mentioned in the thread below?

I don't see oversized checkmarks in the main menus. The oversized
checkmark is still present in the popup menu after I restart the IDE.

-- Eirik


On 3/21/14, 10:50 AM, "Hendrik Schreiber"  wrote:

>On Mar 21, 2014, at 15:40, Alexander Scherbatiy
> wrote:
>
>> 
>>  Thank you for the report.
>> 
>>  I have created an issue on it: 8038113 [macosx] JTree icon is not
>>rendered in high resolution on Retina
>> https://bugs.openjdk.java.net/browse/JDK-8038113
>> 
>>  Thanks,
>>  Alexandr.
>
>Thanks!
>
>-hendrik
>



Re: Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable

2014-03-21 Thread Hendrik Schreiber
On Mar 21, 2014, at 15:40, Alexander Scherbatiy 
 wrote:

> 
>  Thank you for the report.
> 
>  I have created an issue on it: 8038113 [macosx] JTree icon is not rendered 
> in high resolution on Retina
> https://bugs.openjdk.java.net/browse/JDK-8038113
> 
>  Thanks,
>  Alexandr.

Thanks!

-hendrik



Re: Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable

2014-03-21 Thread Alexander Scherbatiy


  Thank you for the report.

  I have created an issue on it: 8038113 [macosx] JTree icon is not 
rendered in high resolution on Retina

 https://bugs.openjdk.java.net/browse/JDK-8038113

  Thanks,
  Alexandr.

On 3/21/2014 1:36 PM, Hendrik Schreiber wrote:

On Jan 17, 2014, at 13:07, Hendrik Schreiber  wrote:


On Jan 13, 2014, at 12:54, Hendrik Schreiber  wrote:


Hey Sergey,

bug is filed under "(Bug ID: 9009584 ) - Checkmarks of JCheckBoxMenuItems aren't 
rendered in high res on Retina"

While at it, you might also want to take a look at "(Bug ID: 9009344 ) - JPopupMenus 
in Swing don't have rounded corners on OS X".

Sergey,

I just realized that sub-menues in JPopupMenus also uses a low res arrow ">". I 
guess this is part of the same issue.
Perhaps you want to add a comment to the original bug 9009584...

Hey Guys,

I am very pleased to see that 
http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8031573 was addressed in 
JDK8u20-ea.
Unfortunately, at least one icon was (partially) missed - the expand tree 
control (that little triangle).

It is rendered in HiDPI, when you click on it, but in its regular appearance it 
is low res.

The problem occurs on OS X 10.9.2 with

java version "1.8.0_20-ea"
Java(TM) SE Runtime Environment (build 1.8.0_20-ea-b05)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b05, mixed mode)


Cheers,

-hendrik


Source code to illustrate the issue - a plain vanilla JTree. Just play with the 
expansion triangles.

import javax.swing.*;
import java.awt.*;

public class TreeExpanders {

 public static void main(String[] args) {
 final JFrame frame = new JFrame();
 final JTree tree = new JTree();
 frame.getContentPane().setLayout(new BorderLayout());
 frame.getContentPane().add(tree, BorderLayout.CENTER);
 SwingUtilities.invokeLater(new Runnable() {
 @Override
 public void run() {
 frame.setBounds(200, 200, 200, 200);
 frame.setVisible(true);
 }
 });
 }
}





Re: Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable

2014-03-21 Thread Hendrik Schreiber
On Jan 17, 2014, at 13:07, Hendrik Schreiber  wrote:

> On Jan 13, 2014, at 12:54, Hendrik Schreiber  wrote:
> 
>> Hey Sergey,
>> 
>> bug is filed under "(Bug ID: 9009584 ) - Checkmarks of JCheckBoxMenuItems 
>> aren't rendered in high res on Retina"
>> 
>> While at it, you might also want to take a look at "(Bug ID: 9009344 ) - 
>> JPopupMenus in Swing don't have rounded corners on OS X".
> 
> Sergey,
> 
> I just realized that sub-menues in JPopupMenus also uses a low res arrow ">". 
> I guess this is part of the same issue.
> Perhaps you want to add a comment to the original bug 9009584...

Hey Guys,

I am very pleased to see that 
http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8031573 was addressed in 
JDK8u20-ea.
Unfortunately, at least one icon was (partially) missed - the expand tree 
control (that little triangle).

It is rendered in HiDPI, when you click on it, but in its regular appearance it 
is low res.

The problem occurs on OS X 10.9.2 with

java version "1.8.0_20-ea"
Java(TM) SE Runtime Environment (build 1.8.0_20-ea-b05)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b05, mixed mode)


Cheers,

-hendrik


Source code to illustrate the issue - a plain vanilla JTree. Just play with the 
expansion triangles.

import javax.swing.*;
import java.awt.*;

public class TreeExpanders {

public static void main(String[] args) {
final JFrame frame = new JFrame();
final JTree tree = new JTree();
frame.getContentPane().setLayout(new BorderLayout());
frame.getContentPane().add(tree, BorderLayout.CENTER);
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
frame.setBounds(200, 200, 200, 200);
frame.setVisible(true);
}
});
}
}



Re: Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable

2014-01-17 Thread Hendrik Schreiber
On Jan 13, 2014, at 12:54, Hendrik Schreiber  wrote:

> Hey Sergey,
> 
> bug is filed under "(Bug ID: 9009584 ) - Checkmarks of JCheckBoxMenuItems 
> aren't rendered in high res on Retina"
> 
> While at it, you might also want to take a look at "(Bug ID: 9009344 ) - 
> JPopupMenus in Swing don't have rounded corners on OS X".

Sergey,

I just realized that sub-menues in JPopupMenus also uses a low res arrow ">". I 
guess this is part of the same issue.
Perhaps you want to add a comment to the original bug 9009584...

Thanks,

-hendrik

Re: Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable

2014-01-13 Thread Hendrik Schreiber
Hey Sergey,

bug is filed under "(Bug ID: 9009584 ) - Checkmarks of JCheckBoxMenuItems 
aren't rendered in high res on Retina"

While at it, you might also want to take a look at "(Bug ID: 9009344 ) - 
JPopupMenus in Swing don't have rounded corners on OS X".

Thanks,

-hendrik



Re: Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable

2014-01-13 Thread Sergey Bylokhov

Hi, Hendrik.
On 13.01.2014 2:00, Hendrik Schreiber wrote:

Hey Guys,

just wondered - is it a known bug that the checkmarks of JCheckBoxMenuItems on 
build 1.8.0-ea-b121 aren't rendered as HiDPI version on Retina displays?
I suppose not, and suggest to file a new CR at http://bugs.sun.com. Send 
assigned bugid here.


Thanks,

-hendrik



--
Best regards, Sergey.



Checkmark in JCheckBoxMenuItem not HiDPI/Retina capable

2014-01-12 Thread Hendrik Schreiber
Hey Guys,

just wondered - is it a known bug that the checkmarks of JCheckBoxMenuItems on 
build 1.8.0-ea-b121 aren't rendered as HiDPI version on Retina displays?

Thanks,

-hendrik