DevCharly commented on PR #6391:
URL: https://github.com/apache/netbeans/pull/6391#issuecomment-1707019514

   > How can I change this?
   
   In class `FlatLafPrefs` the parameter `true` here:
   
   
https://github.com/apache/netbeans/blob/cacb91cf7312fbe08211193abc0fda332a9346fe/platform/o.n.swing.laf.flatlaf/src/org/netbeans/swing/laf/flatlaf/FlatLafPrefs.java#L63
   
   and here
   
   
https://github.com/apache/netbeans/blob/cacb91cf7312fbe08211193abc0fda332a9346fe/platform/o.n.swing.laf.flatlaf/src/org/netbeans/swing/laf/flatlaf/FlatLafPrefs.java#L67
   
   I would suggest to add a field to that class and use it instead of passing 
`true` to `get/putBoolean()`. E.g.:
   
   ~~~java
   private static final boolean DEF_USE_WINDOW_DECORATIONS = 
SystemInfo.isWindows_10_orLater;
   
   static boolean isUseWindowDecorations() {
       return prefs.getBoolean(USE_WINDOW_DECORATIONS, 
DEF_USE_WINDOW_DECORATIONS);
   }
   
   static void setUseWindowDecorations(boolean value) {
       putBoolean(USE_WINDOW_DECORATIONS, value, DEF_USE_WINDOW_DECORATIONS);
   }
   ~~~
   


-- 
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