You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "eirikbakke (via GitHub)" <gi...@apache.org> on 2023/01/20 22:26:12 UTC

[GitHub] [netbeans] eirikbakke opened a new pull request, #5335: Vertically center the icon (question mark or such) in DialogDisplayer dialogs

eirikbakke opened a new pull request, #5335:
URL: https://github.com/apache/netbeans/pull/5335

   In DialogDisplayer dialogs, there's typically an "information", "question mark" or "warning" type icon next to the text. It shows up top-aligned by default, which makes it look mis-aligned relative to the message text. This PR centers the icon vertically. See below:
   
   <img width="1071" alt="220930 Dialog Centering Screenshot" src="https://user-images.githubusercontent.com/886243/213815846-e33bfbc2-3954-451e-a596-1c9a895fba5b.png">
   
   As the dialog is constructed by JOptionPane, the tweakIconLabelVerticalAlignment method applies the fix by descending into the child components and finding the one conveniently named "OptionPane.iconLabel".
   
   This is purely a cosmetic UI improvement.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] eirikbakke commented on pull request #5335: Vertically center the icon (question mark or such) in DialogDisplayer dialogs

Posted by "eirikbakke (via GitHub)" <gi...@apache.org>.
eirikbakke commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1399327748

   @mbien Well, if the text is center-aligned vertically, then so should the icon in any case. And there are cases where dialogs can contain a lot more text.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


Re: [PR] Improve vertical alignment of DialogDisplayer icon (question mark, warning symbol etc.) [netbeans]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1766150990

   draft for one-liners: #6577


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] neilcsmith-net commented on pull request #5335: Vertically center the icon (question mark or such) in DialogDisplayer dialogs

Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1477539284

   Waking this discussion up!
   
   We're a few weeks from freeze for NB18 now.  We should make a decision if there is anything to address here, and if so, how.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] eirikbakke commented on pull request #5335: Vertically center the icon (question mark or such) in DialogDisplayer dialogs

Posted by "eirikbakke (via GitHub)" <gi...@apache.org>.
eirikbakke commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1399157580

   Sure, let me see if I can figure out how to do that. Do I need to create a new PR?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] mbien commented on pull request #5335: Improve vertical alignment of DialogDisplayer icon (question mark, warning symbol etc.)

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1511529847

   @eirikbakke is it ok to move this to NB 19?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] mbien commented on pull request #5335: Vertically center the icon (question mark or such) in DialogDisplayer dialogs

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1399358156

   here is an in-IDE example where the center alignment doesn't look very good in my opinion:
   ![question](https://user-images.githubusercontent.com/114367/213894325-1561bfa2-17a9-4f27-9671-84cab41fd447.png)
   
   
   NB16:
   ![question_baseline](https://user-images.githubusercontent.com/114367/213894322-fe428e6f-3f21-4365-9f00-8c62f9a2f59d.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] eirikbakke commented on pull request #5335: Vertically center the icon (question mark or such) in DialogDisplayer dialogs

Posted by "eirikbakke (via GitHub)" <gi...@apache.org>.
eirikbakke commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1399361892

   Hmm, that "Working copy" example looks a lot taller than 90 pixels (the image is 376 pixels tall). What's going on there?
   
   If we resize the dialog, though, the centered icon will still look better. If you really want it on top, there would need to be some top margin inserted.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


Re: [PR] Improve vertical alignment of DialogDisplayer icon (question mark, warning symbol etc.) [netbeans]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1764693298

   ^ the dialog size is wrong I agree


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] eirikbakke commented on pull request #5335: Vertically center the icon (question mark or such) in DialogDisplayer dialogs

Posted by "eirikbakke (via GitHub)" <gi...@apache.org>.
eirikbakke commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1399159043

   OK, I think I figured it out...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


Re: [PR] Improve vertical alignment of DialogDisplayer icon (question mark, warning symbol etc.) [netbeans]

Posted by "eirikbakke (via GitHub)" <gi...@apache.org>.
eirikbakke commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1764541478

   I think the "do not merge" label can be removed; this PR is ready to be committed except for a minor requested change.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


Re: [PR] Improve vertical alignment of DialogDisplayer icon (question mark, warning symbol etc.) [netbeans]

Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1764654633

   Removed the `do not merge` as I realised that's something I added when moving things around with NB17.
   
   If @eirikbakke @DevCharly and/or @mbien want to reopen and re-review, then it can be reopened.  I'm just closing a few things that have bumped along from milestone to milestone without getting any further towards resolution.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] mbien commented on pull request #5335: Vertically center the icon (question mark or such) in DialogDisplayer dialogs

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1399153017

   @eirikbakke would you like to rebase this on delivery? I think this would be a good candidate for NB17 rc2.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] neilcsmith-net commented on pull request #5335: Vertically center the icon (question mark or such) in DialogDisplayer dialogs

Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1400074529

   That Thunderbird mockup looks worse than the original in my opinion.  I think I agree with @mbien here that vertically centring the icon is not the answer - fixing sizing probably is.
   
   I don't think this is a good fit for the release given ongoing discussion.  Putting this back to master with do-not-merge on pending resolution of discussion and testing across LAFs.
   
   > I think rebasing is probably not even needed since the branches didn't diverge yet.
   
   As clarification on that point, master diverges immediately on branch.  Any PR that picked up the spec version change from master would require rebasing.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] mbien commented on pull request #5335: Vertically center the icon (question mark or such) in DialogDisplayer dialogs

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1399481151

   > If we don't do anything about the dialog size, then vertically centering the icons improves the appearance of the dialogs.
   
   to me it marginally improves the look of a **certain** type of dialog: one line messages
   On the [screenshot](https://github.com/apache/netbeans/pull/5335#issue-1551528823) you provided, both before and after windows look to me as if someone placed labels on a frame without bothering to configure the layout or frame size. Both do look unfinished.
   
   > If we do fix the dialog size, then the cases where vertically centering the icon looks bad go away.
   
   It makes the situation worse for already existing dialogs which display [more content](https://github.com/apache/netbeans/pull/5335#issuecomment-1399358156). Fixing the size there would still have the icon centered which looks non-standard.
   
   
   This is of course just my opinion. However, I do believe that it is fairly common to anchor an icon to the NW corner in dialogs. I can see the same layout in the master pw window of thunderbird or firefox for example:
   
   ![thunder-pw](https://user-images.githubusercontent.com/114367/213916349-116b1998-9b51-4bc3-b0c4-a56c0f968470.png)
   
   
   another example is the standard gnome keychain unlock dialog:
   
   ![unlock](https://user-images.githubusercontent.com/114367/213916779-9e6514a1-8cd0-45b1-ad13-1b9da28be024.png)
   
   Since this UI pattern works for both, small dialogs and big dialogs, it probably became popular and also made it into JDK's dialog utilities. I don't see it as a bug, the bug appears to be the incorrect sizing of the content inserted right from the icon which causes this weird behavior since the window can't pack correctly. A 1 line label isn't 90 pixels tall, yet it is what its preferred size is for some reason and someone [tried to fix this before](https://github.com/apache/netbeans/pull/5335#issuecomment-1399353457).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


Re: [PR] Improve vertical alignment of DialogDisplayer icon (question mark, warning symbol etc.) [netbeans]

Posted by "eirikbakke (via GitHub)" <gi...@apache.org>.
eirikbakke commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1764651530

   Yes please, sorry--it takes me a while to get back to PRs, as switching/recompiling branches of the netbeans repo is a multi-hour operation on my Windows machine...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] eirikbakke commented on pull request #5335: Improve vertical alignment of DialogDisplayer icon (question mark, warning symbol etc.)

Posted by "eirikbakke (via GitHub)" <gi...@apache.org>.
eirikbakke commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1511554009

   @mbien Yeah, no problem!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] eirikbakke commented on pull request #5335: Vertically center the icon (question mark or such) in DialogDisplayer dialogs

Posted by "eirikbakke (via GitHub)" <gi...@apache.org>.
eirikbakke commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1399159154

   Oh, it's literally called "delivery". I see. Thank you! Will step aside now and not touch anything :-)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] mbien commented on pull request #5335: Vertically center the icon (question mark or such) in DialogDisplayer dialogs

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1399329496

   I don't have a strong opinion on this, its just that I believe that it is intended for the icon to be in the NW edge in larger dialogs.
   
   found some screenshots with larger dialogs:
   https://dummyscodes.blogspot.com/2015/06/joptionpane-with-multiple-inputs.html
   https://www.onlinetutorialspoint.com/java/java-swing-joptionpane-html-content-example.html
   https://stackoverflow.com/questions/21059080/joptionpane-input-dialog-menu
   
   If there is more content in the window, it doesn't look misaligned to me and if there is only one line it can be centered by packing the window.
   
   In this particular case the window is simply too big, even after the icon is centered.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] mbien commented on pull request #5335: Vertically center the icon (question mark or such) in DialogDisplayer dialogs

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1399324873

   although this mitigates the issue, I am wondering if the actual problem is the vertical size of the window:
   
   ![optionpane](https://user-images.githubusercontent.com/114367/213885436-ea3a9a25-d3c8-488d-a5d8-545dd51c960a.png)
   
   (manually resized, this patch not included)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


Re: [PR] Improve vertical alignment of DialogDisplayer icon (question mark, warning symbol etc.) [netbeans]

Posted by "eirikbakke (via GitHub)" <gi...@apache.org>.
eirikbakke commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1764691820

   > just my opinion but I am not convinced that the icon position needs to be adjusted.
   
   I think this is clearly wrong:
   
   <img width="521" alt="Wrong" src="https://github.com/apache/netbeans/assets/886243/4bea8002-878c-4ad9-af26-212407dce04b">
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] mbien commented on pull request #5335: Vertically center the icon (question mark or such) in DialogDisplayer dialogs

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1399363872

   the minimum size influences how a single line message looks.
   Min height of 90 for the JOptionPane is too much which makes it look like on [your screenshots](https://github.com/apache/netbeans/pull/5335#issue-1551528823), while it should look like [this](https://github.com/apache/netbeans/pull/5335#issuecomment-1399324873). Since it is set to 50 on Metal and Basic LAF, I have the suspicion that someone tried to fix this before.
   
   The [last](https://github.com/apache/netbeans/pull/5335#issuecomment-1399358156) screenshots were an example to demonstrate that centering the icon doesn't look good in dialogs which more content in them.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] mbien commented on pull request #5335: Vertically center the icon (question mark or such) in DialogDisplayer dialogs

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1399353457

   `NbPresenter` is already using `pack()`. The issue seems to be that JOptionPane sets the minimum height to 90. And looking at the code there is already a workaround added for Metal LAF.
   https://github.com/apache/netbeans/blob/31028d282a7c7870e68ab51439be50ce691b7de5/platform/core.windows/src/org/netbeans/core/windows/services/NbPresenter.java#L511-L524
   
   which isn't active when FlatLAF is enabled.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] eirikbakke commented on pull request #5335: Vertically center the icon (question mark or such) in DialogDisplayer dialogs

Posted by "eirikbakke (via GitHub)" <gi...@apache.org>.
eirikbakke commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1399596084

   OK, this requires a different approach, then. No hurry to get this PR into NetBeans 17.
   
   To continue the discussion, in your example below, I'd say that at the very least the top of the message text should align with the top of the icon. Agree/disagree?
   
   ![image](https://user-images.githubusercontent.com/886243/213938111-915d2d41-b416-48af-8848-0c02c37ce31e.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] mbien commented on pull request #5335: Vertically center the icon (question mark or such) in DialogDisplayer dialogs

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1399159133

   > Sure, let me see if I can figure out how to do that. Do I need to create a new PR?
   
   @eirikbakke no its fine. I think rebasing is probably not even needed since the branches didn't diverge yet. But it doesn't hurt.
   
   i changed target to `delivery` since that is the right one :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] neilcsmith-net commented on pull request #5335: Improve vertical alignment of DialogDisplayer icon (question mark, warning symbol etc.)

Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1623770584

   @mbien @eirikbakke are we in the "is it OK to move this to NB 20" point now?  :smile:  Be good to decide whether this is going in rather than pushing back milestones.
   
   Did try and leave two comments on specific lines, which now seem to have disappeared from the UI?!  Be good to see if the LaF specific logic can be removed (I wonder why the comment on minimum size from the LaF is not working), and feels like the boolean flag should be configurable or removed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


Re: [PR] Improve vertical alignment of DialogDisplayer icon (question mark, warning symbol etc.) [netbeans]

Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1764657076

   > as switching/recompiling branches of the netbeans repo is a multi-hour operation on my Windows machine...
   
   :open_mouth: what's going on there?  It's a 7min operation on my machine.  That might be something to look into?!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


Re: [PR] Improve vertical alignment of DialogDisplayer icon (question mark, warning symbol etc.) [netbeans]

Posted by "eirikbakke (via GitHub)" <gi...@apache.org>.
eirikbakke commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1764688292

   It's WSL 1 on Windows, on a 2018 laptop, with the NetBeans repo on a Windows file system (WSL 1 is actually faster than WSL 2 in this case). "git checkout" takes several minutes, "git status" takes 18 seconds, and a clean build will hog up the machine long enough that I usually break for dinner...
   
   I'll be switching to a new MacBook soon, though. Having a native UNIX terminal, no Windows Defender, and new hardware will make everything much faster.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] eirikbakke commented on pull request #5335: Vertically center the icon (question mark or such) in DialogDisplayer dialogs

Posted by "eirikbakke (via GitHub)" <gi...@apache.org>.
eirikbakke commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1477723493

   No hurry with this PR... I have another adjustment to this patch pending which I will try the next time I do a new NetBeans build.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] eirikbakke commented on pull request #5335: Vertically center the icon (question mark or such) in DialogDisplayer dialogs

Posted by "eirikbakke (via GitHub)" <gi...@apache.org>.
eirikbakke commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1484225136

   I pushed a new adjustment to this PR, which adds some top margin to the icon instead of vertically centering it. The specific margin height is chosen so that the icon ends up appearing centered next to single-line messages while appearing (almost) top-aligned next to taller messages:
   
   ![newcentered](https://user-images.githubusercontent.com/886243/227804438-5d5c3666-76a3-4e74-82ad-d44a8f311541.png)
   
   <img width="257" alt="longer" src="https://user-images.githubusercontent.com/886243/227804557-d64d9d09-3e4a-4448-9575-68403341faaf.png">
   
   With @mbien's adjustments from https://github.com/apache/netbeans/pull/5625 , the minimum height of the dialog also ends up a little smaller (note: only the top screenshot above includes the latter adjustment; I'm not sure where in NetBeans I can easily trigger a taller dialog for testing), and single-line messages end up looking more vertically centered than before. After trying various values for the minimum height, I ended up preferring a value of 50, which happened to be the value already in place.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] eirikbakke commented on pull request #5335: Vertically center the icon (question mark or such) in DialogDisplayer dialogs

Posted by "eirikbakke (via GitHub)" <gi...@apache.org>.
eirikbakke commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1399368213

   > The https://github.com/apache/netbeans/pull/5335#issuecomment-1399358156 screenshots were an example to demonstrate that centering the icon doesn't look good (to me) in dialogs which more content in them.
   
   If the dialog is properly sized, then it would look good, no? This means:
   1) If we don't do anything about the dialog size, then vertically centering the icons improves the appearance of the dialogs.
   2) If we do fix the dialog size, then the cases where vertically centering the icon looks bad go away.
   
   In other words, vertically centering the icon is a good thing to do in any case. Resizing the dialog is a separate issue with more potential to break things.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] eirikbakke commented on pull request #5335: Vertically center the icon (question mark or such) in DialogDisplayer dialogs

Posted by "eirikbakke (via GitHub)" <gi...@apache.org>.
eirikbakke commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1399339230

   I'd be nervous about changing the size or using pack(). With pack(), you often get an awkward size when there are components with Swing HTML in them, JScrollPanes, text wrapping or such.
   
   Vertically centering the icon seems like a simple and safe way to make things look OK in all cases.
   
   (Even in the screenshots you shared the top-aligned icon looks mis-aligned to me; it would need more top margin. Very hard to get this right for all dialogs.)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


Re: [PR] Improve vertical alignment of DialogDisplayer icon (question mark, warning symbol etc.) [netbeans]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1764687468

   just my opinion but I am not convinced that the icon position needs to be adjusted. If you run a picture search for "error dialog", or take a look at the examples I posted somewhere above, you will see that it is fairly common that the icon is anchored in the NW corner.
   
   NB has many layout bugs though, some dialogs might be too large and need to be adjusted so that the components don't float around, some might contain hidden components which break the layout manager (see screenshot of #6355).
   
   (and yes building NB takes about 7,5 mins on my PC I built ~2016 -> there must be something wrong)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


Re: [PR] Improve vertical alignment of DialogDisplayer icon (question mark, warning symbol etc.) [netbeans]

Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net closed pull request #5335: Improve vertical alignment of DialogDisplayer icon (question mark, warning symbol etc.)
URL: https://github.com/apache/netbeans/pull/5335


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


Re: [PR] Improve vertical alignment of DialogDisplayer icon (question mark, warning symbol etc.) [netbeans]

Posted by "Chris2011 (via GitHub)" <gi...@apache.org>.
Chris2011 commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1764612330

   So reopening it?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


Re: [PR] Improve vertical alignment of DialogDisplayer icon (question mark, warning symbol etc.) [netbeans]

Posted by "eirikbakke (via GitHub)" <gi...@apache.org>.
eirikbakke commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1764701505

   @mbien I think this was all discussed before, but if you prefer I can just leave this unmerged.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


Re: [PR] Improve vertical alignment of DialogDisplayer icon (question mark, warning symbol etc.) [netbeans]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on PR #5335:
URL: https://github.com/apache/netbeans/pull/5335#issuecomment-1764770874

   lets take a look at another dialog which displays a panel with sub-optimal layout management:
   ![warning-before](https://github.com/apache/netbeans/assets/114367/f0ff8166-3567-46d3-821c-6ccf51830ede)
   ->
   ![warning-after](https://github.com/apache/netbeans/assets/114367/a6d9a765-f2e8-4d58-813e-540ba519ce86)
   all I did was to quickly fix the content which used grid bag layout, the dialog is unchanged. It used empty panels for padding, couldn't properly calculate its default size and the gaps were not set for the purpose of it being included into a dialog etc
   
   `netbeans/ide/projectui/src/org/netbeans/modules/project/ui/problems/BrokenReferencesAlertPanel.java`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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