Chris2011 opened a new issue, #4359:
URL: https://github.com/apache/netbeans/issues/4359

   ### Apache NetBeans version
   
   Apache NetBeans 14
   
   ### What happened
   
   When I open a file with a filename includes spaces e.g. "For home.txt" and 
set the option to show the parent folder name in tab, the filename is stripped 
after the space which looks weird and not correct. I expect to see the full 
name, because afaik NetBeans has no max-width for tabs shown which is good, due 
to seen the full filename.
   
   
![image](https://user-images.githubusercontent.com/795658/178142087-2a9f1f64-55f2-47f2-8587-2808d9819c9e.png)
   
   It seems that this sometimes happens for files with lower case name included.
   * Desktop\For home.txt - stripped
   * Desktop\test test.txt - stripped
   * Desktop\Binwalk Firmware.txt - not stripped
   
   Also it is not happen when the parent folder name has also spaces "Test 
Test\test test.txt" - not stripped
   
   ### How to reproduce
   
   * Open a file which includes a space in the name of the file, not in the 
folder
   * Open tools -> options -> appearance -> document tabs -> and set option 
"show parent folder name in tab title"
   * Click apply
   * Tab in the background updates and show now folder name and filename is 
striped.
   
   ### Did this work correctly in an earlier version?
   
   No
   
   ### Operating System
   
   Windows 11
   
   ### JDK
   
   OpenJDK 14
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   Until 12.6 I can reproduce, before I don't have an instance anymore to check 
it. I thought that this was working long time ago but I can't really remember. 
Also it has nothing todo with FlatLaF. I changed to Windows LaF and it still 
happens.
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to