src/java.desktop/share/classes/javax/swing/plaf/basic/BasicListUI.java
changeset 50917 55a43beaa529
parent 48276 34f0232538f6
equal deleted inserted replaced
50916:2f9a0c4fcf58 50917:55a43beaa529
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
  2654             }
  2654             }
  2655             else if (propertyName == "cellRenderer") {
  2655             else if (propertyName == "cellRenderer") {
  2656                 updateLayoutStateNeeded |= cellRendererChanged;
  2656                 updateLayoutStateNeeded |= cellRendererChanged;
  2657                 redrawList();
  2657                 redrawList();
  2658             }
  2658             }
  2659             else if (propertyName == "font") {
  2659             else if (propertyName == "font"
       
  2660                     || SwingUtilities2.isScaleChanged(e)) {
  2660                 updateLayoutStateNeeded |= fontChanged;
  2661                 updateLayoutStateNeeded |= fontChanged;
  2661                 redrawList();
  2662                 redrawList();
  2662             }
  2663             }
  2663             else if (propertyName == "prototypeCellValue") {
  2664             else if (propertyName == "prototypeCellValue") {
  2664                 updateLayoutStateNeeded |= prototypeCellValueChanged;
  2665                 updateLayoutStateNeeded |= prototypeCellValueChanged;